The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters

Hi Team,

There is a use case where we need get the Zip File form location UnZip & move it to done folder, the Zip file is the actual inventory file that will be placed in a shared folder by the business.

There is no specific length of file name, so for few file getting the error as

Invoke Method: The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.

Is there any solution for this problem.

Any suggestion will be helpful.

Thanks in Advance
Harsha

@harshavardhan3457

For this you need to LongPathTool for the resolution

https://longpathtool.com

Hope this may help you

Thanks

hi @Srini84

I cant use any third party tools as per the rules of Organization.

@harshavardhan3457

then might be you have to make logic to calculate the length of the filename and make an exception

OR

you can ask to keep the file name as shorter

Hope this may help you

Thanks

This is a Windows limitation, not a UiPath limitation. You need to organize your folders so you don’t end up with such long paths.