Studio cannot rename file if sum of length of old full file path and length of new file name exceeds 258 characters


Studio project: (7.5 KB)

Steps to recreate:

  1. Open the Project panel.
  2. Select the Rename command from the context menu of a file (.xaml or .xlsx).
  3. Add a new letter at the end of the file name, e.g. Y, in the To field.
  4. Press the OK button.

Actual result:

The Rename window disappears, but the file name is not changed.
An error is logged in the current UiPath.Studio.log.


[ERROR] [UiPath.Studio.App.Logging.OutputLogger] [1] Resulting path has to have less than 259 characters: "C:\StudioCannotRenameFileIfSumOf_LengthOfOldFullFilePath_And_LengthOfNewFileName_Exceeds258Characters\AddANewLetterToNameOfThisFileUsingRenameCommand_xxxxxxxxxxxxxxxxxxxxxxxxxY.xaml\AddANewLetterToNameOfThisFileUsingRenameCommand_xxxxxxxxxxxxxxxxxxxxxxxxx.xaml"


  1. Renaming files in File Explorer.
  2. Enabling long paths.


Studio 2022.4.3 - 5/27/2022
Enterprise License
Per-user Installation

License Provider: Orchestrator
Activation ID:

Microsoft Windows 10 Pro 64-bit

This is not a Studio problem. This is standard Windows stuff.

1 Like

@postwick, I’ve added enabling long paths as another workaround for clarity.

I got a word from our team and this will be documented as a limitation for now.

1 Like