For each activity

uiautomation

#1

for each loop throws object reference not set .
error:NullReferenceException.


#2

Can you attach workflow or snapshot of workflow.


#3

Datatable


#4

Can’t say much by looking this.
Can you attach workflow.
Looks like Datatable returning null.


#5

Sample.xaml (176.7 KB)


#6

Hi,
two things

  1. You have set "ContinueOnError " property to True which makes data extractor activity to proceed further where your iterating data table.via For each row activity . So please remove it and give a try.

  2. I don’t see any open browser activity .So i guess your opening browser manually and running workflow which . If not which makes data scraping fail.(Hence returning null)

Above are the my assumption. Just try and let me know. apart from that all looks fine for me. :slight_smile:


#7

I have string variable which contains more than 2 lines .i have list of values in datatable.i want to check whether the string contains that any one of the value from datatable.
i have tried using for each loop in if condition :stringVar.contains(dtValue)
but its not working fine it will always goes into else part which means the stringVar does not contains that dtvalue. how to fix this?


#8

Thank you Dhilip