Hi Team,
I have created a process for Invoice Processing for a web-based application using “For Each UI Element Activity”. In the application when any invoice is processed it gets stored in the different bucket and automatically gets removed from the current bucket. I have created an automation for processing the invoice, but it is able to process only single invoice and after that it reflects the below mentioned error as the UI Element is constantly keep on changing.
Request to please assist on this issue.
Thank you in advance for the support.
Below is the snapshot for the reference:
Below is the error log for the reference:
24.4.0-beta.16568+Branch.release-v24.4.0.Sha.2580fa6cf8d62c2ce32ffb80535a02af198eb1da.2580fa6cf8d62c2ce32ffb80535a02af198eb1da
Source: For Each UI Element
Message: Source data was modified, for each operation can not continue.
This is likely due to changes in the target application while the For Each UI Element activity executes.
Exception Type: UiPath.UIAutomationNext.Exceptions.SourceDataModifiedException
UiPath.UIAutomationNext.Exceptions.SourceDataModifiedException: Source data was modified, for each operation can not continue.
This is likely due to changes in the target application while the For Each UI Element activity executes. at UiPath.UIAutomationNext.Activities.Helpers.UiNodeInfoEnumerator.MoveNext()
at UiPath.Shared.Activities.Business.ForEachEnumeratorExtensions.IterateAndReturnIfActionExecuted[T](Variable1 enumeratorVariable, NativeActivityContext context, ActivityInstance completedInstance, Boolean exitLoop, Action
1 doAction, Action1 completedAction, Action
1 exitAction)
at UiPath.Shared.Activities.Business.ForEachEnumeratorExtensions.Iterate[T](Variable1 enumeratorVariable, NativeActivityContext context, ActivityInstance completedInstance, Boolean exitLoop, Action
1 doAction, Action1 completedAction, Action
1 exitAction)
at UiPath.UIAutomationNext.Activities.NForEachUiElement.ExecuteForEach(NativeActivityContext context, ActivityInstance completedInstance)
at System.Activities.Runtime.ActivityCompletionCallbackWrapper.Invoke(NativeActivityContext context, ActivityInstance completedInstance)
at System.Activities.Runtime.CompletionCallbackWrapper.CompletionWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)
— End of stack trace from previous location —
at UiPath.UIAutomationNext.Activities.NApplicationCard.OnFault(NativeActivityFaultContext faultContext, Exception propagatedException, ActivityInstance propagatedFrom)
at System.Activities.Runtime.FaultCallbackWrapper.FaultWorkItem.Execute(ActivityExecutor executor, BookmarkManager bookmarkManager)