For Each: Object reference not set to an instance of an object, I have struck here please help me

Hi all, I am trying to do For Each: Object reference not set to an instance of an object.
but still I can’t resolve it, Please help me with this.

Hi @Nikhil_Chowdhary

Do you have any activities below log message which has an error. Please specify or please share the screenshots of workflow. Generally Object reference not set to instance of object error occurs when the value is null.

Regards

When the issue cannot be solved by code review then debug it. Use breakpoint and debugging panels for the variable trace and inspections

Understanding the 6 Debugging Panels of UiPath in the easiest way possible! - News / Tutorials - UiPath Community Forum

There also good courses to this topic in the UiPath Academy

About:
grafik

Have a look at the OOTB functionality:
grafik

My guess here would be that the entire object is null. so not faulty in the underlying activities, but be sure to validate the EUWlist object first of existing and having content.

As for troubleshooting, the null object one is always an anoying one, since it gives little information. Use the debugger tools, breakpoints and apply various writelines in between several actvities to pinpoint the problem.

@Nikhil_Chowdhary

Welcome to the community

Looks like the list you provided in for loop is null…please assign values or initialize that variable

Cheers

This means your variable is not initialized and has no data. Check why EUWList isn’t initialized.