When I am trying to run power shell script from UiPath (Community Edition) using the activity “Run Power Shell Script” and displaying the output in the message box it displays the output as "System.Collection.Generic.List’1[System.String] instead of the number which I am fetching.
Note : When I run the powershell script individually it displays the output correctly but from UiPath I am not able to do so.
In addition, if the command you’re trying to perform can’t be performed it will generate an error. Let’s say you want to close the notepad using a cmd command using the invoke power shell activity and there’s no notepads open it will generate an error. To evade that kind of stuff change the ContinueOnError to true.
The power shell script which I am executing is fetching the ( ex - “Number : 678765376” ) and displaying the output as 678765376
Is there any other way in UiPath in which I can get the number directly from text file.
I have tried Invoke Powershell too … but getting the same error as mentioned earlier “System.Collection.Generic.List’1[System.String]” .
Would be glad if you could help regarding this .
How do I split Number and start date and get the output as 6754807090 and 11/01/2019 respectively in UiPath directly
No problem, that might only work for that example but you can find almost anything in regex. You can search a little bit about it. You can find out more here in this forum or in google. Not only uipath uses regex.
I am using “Run Power shell Script” and have given the path of the script directly.
But still facing issues .
It’s a basic script which I am executing to check if the output gets generated or not but in vain.
why am I getting the output as "System.Collections.Generic.List’1[System.object]