Data type of item in for each loop for UIelement collection is not recognized in click "Target/Element "property

hi there,
when I try to invoke item in for each loop for an uielement collection variable in click activity- element property, it is not recognized as “Uielement” type as below.

I have tried to convert item from object to “UIelement”, but seems there is grammar error.
I have uploaded the project file, could anyone help me?

Sequence.xaml (12.3 KB)

hello @zangyuchen2008
your xaml file is missing some assembly reference/s…
I edited your xaml for assembly references (via Notepad++) and it worked…
I recommend, try creating a new xaml and check if it works…

let us know even if creating new xaml dont work for your issue…

1 Like

Hello this is a new project I created, still has the same issue.Main.xaml (8.1 KB)

try with this xaml Main.xaml (5.1 KB)

and if you happen to see any error… post error screenshot…

The same error as before

I have found the root cause, the for each activity property-“TypeArgument” should be set as the right one

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