Receiving An Error "Path too long" When Using Excel Activities

When using Excel Activities, an error "Path Too Long" is thrown?

Issue Description: In UiPath Studio, when using the Excel Activities, following error "path too long" is thrown.

Screenshot of the error:

Root Cause: Starting with Windows 10, version 1607, MAX_PATH limitations have been removed from common Win32 file and directory functions.

Resolution:

  1. Enable the new long path behavior
  • The registry key Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem\LongPathsEnabled (Type: REG_DWORD) must exist and be set to 1. The key’s value will be cached by the system (per process) after the first call to an affected Win32 file or directory function (see below for the list of functions). The registry key will not be reloaded during the lifetime of the process. In order for all apps on the system to recognize the value of the key, a reboot might be required because some processes may have started before the key was set.


Steps to Follow:

  1. Open "Registry Editor"
  2. Navigate to "Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem"
  3. "LongPathsEnabled" and set to "1" as shown:
  1. If by any chance, see the "LongPathsEnabled" - Create one
  2. Note: This registry key can also be controlled via Group Policy at Computer Configuration > Administrative Templates > System > Filesystem > Enable Win32 long paths > set to Enabled. (as shown):
  1. Up on performing the above changes, restart the machine
  2. Try reproducing the issue. If still facing the issue, follow the below steps.

Contact UiPath Product Support: If issue persists, create UiPath Support Ticket for further troubleshooting with below details,