Object reference not set to instance-Unattended automation

Hi ,

I am trying to run a process in unattended automation .while running unattended automation I am getting "Object reference not set to instance " .but when the same code is running in attended automation it is working fine so I am not able to recreate this scenario . Can you please help me what is causing this issue .

This error comes before reading “initialize setting” workflow.

@tharani.natarajan

The “Object reference not set to an instance” error typically occurs when a variable or object is not properly initialized in your unattended automation, so ensure that all variables and objects are correctly initialized before running the process in unattended mode.
or
2.unattended automation may result from missing environment variables or unavailability of resources specific to unattended mode; ensure all dependencies are appropriately configured for unattended execution.

cheers…!

Hi @tharani.natarajan

This error occurs when you try to access or manipulate an object that is not initialized. This error usually happens when you attempt to use an object variable without assigning an actual object to it

@tharani.natarajan

Object reference not set to an instance of an object normally occurs when a variable is null. **Try putting a message box before the activity that breaks, run in debug with the locals panel pinned, and look for a null variable involved in the activity once you've reached the message box** .

Hope this helps!

During debug there isnt any issue …only during unattended this issue occurs .

Hi,

Could you please tell us after which activity or where exactly this error came.

Thanks,
Sandhiya P

Hi @tharani.natarajan ,

Could you confirm on the argument values being used in the workflow or if provided default values in the Variable or Arguments Panel ?

in debug mode i am not getting any errors .but while i run the same in unattended i get this issue

@tharani.natarajan ,

We did ask you to confirm on the arguments and variables or default values being passed to the Main workflow, Was this checked ?