Invoke Power Shell: Runtime Exception

Hello all,

I am trying to run a PowerShell script in UiPath, but i am getting the following error. Does anyone know how to resolve this issue?


Thanks in advance.

This error happens when you have used an undeclared variable in the code. The problem is with your PowerShell script.

Hi @Jagadesh_Munisami ,

Could you please share the script you are trying to run along with the image of the script invocation in the workflow.

Thanks & Regards,

i have the same error ,any solution for it?