Getting Error- For Each UI Element: Source data was modified, for each operation can not continue

Trying to extract links of exhibitors using For each UI Element activity but got this error,
Need help!!

Hi @Anas_Sharafudeen ,

You are editing the data which you are looping, so it is giving this error. You can copy that data of list of items which you are looping to another variable and edit that. Issue will be resolved.

Hope it helps.

@Anas_Sharafudeen

You need to make the selector as dynamic, as this is in the loop
Check the Selector of the element is valid when it is getting loop

Hope this may help you

Thanks,
Srini

When i try to make selector more dynamic target changes but i have done validity checks its fine.

Hi,

How about the following?

Sample20230409-2aL.zip (7.5 KB)

Note: the above sample is set limitations 10 elements in ForEachUiElement. Please set “Unlimit” if you need to get all links.

Regards,

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.