How to get error occured in the python script by using invoke power shell activity in UIPath

Hi Team,

We have created one python script and we are invoking that python script through ‘invoke PowerShell’ activity of UiPath But, when the python script is failing we are not getting any error message in UiPath. So, please let me know how to call & get error message of Python script in UiPath.

Please let us know asap.

Hi @Smitesh_Aher2

Is there any reason why you wouldn’t use our Python activity package, as per this example?

It has a sample project attached at the bottom for you to try it out.

1 Like

@Smitesh_Aher2

As @loginerror mentioned using python activities is better

If you dont want to then better use try catch in python and write the error to a file or console and then you can get the response or read the file for errors

Cheers