Invoke Powershell does not work
Issue Description
An error occurs when utilizing the 'Invoke PowerShell' activity in UiPath Studio: "Invoke Power Shell: Could not find a part of the path 'C:\Program Files\UiPath\Studio\ref'".
Root Cause
The problem arises when the system tries to reference a folder labeled 'ref,' despite the actual folder being titled 'refs.'
Resolution
-
Ensure the existence of a folder named 'refs' in the Studio installation directory - Usually, this will be 'C:\Program Files\UiPath\Studio'.
-
Execute the command below in the command prompt to construct a symbolic link (folder):
- cd mklink /D ref refs
- Run the process again. The aforementioned error should not appear.
Further steps if the issue persists:
If the error continues to appear after the above steps, then contact UiPath Support & include the below files/details:
- Diagnostic logs.
- A sample workflow that was in progress when the error was encountered.
- A copy of the Script that was utilized during this process.