For Each UI Element: The argument of type 'System.Int32' cannot be used ERROR

How can i solve this “For Each UI Element: The argument of type ‘System.Int32’ cannot be used. Make sure that it is declared on an activity.” error?

This means that the For Each UI Element activity is expecting an argument of type System.Object, but the argument that you are passing to it is of type System.Int32.

Change the type argument and give a try

Cheers @Mkary

Hi @Mkary ,
You can convert int32 to String type


my variables like that and i dont have any argument, I’m new at using UiPath and i am confused which one should i change?


i dont have any int :confused:

Click on FOR EACH activity and open PROPERTY panel
There you need to change under the TYPE ARGUMENT
Search for the system.object type and try

@Mkary


when i write system.object it doesnt accept because it is a class name