The specified path, file name, or both are too long

Hi, so I have a bot that runs every morning, and works with the same files everyday. It makes copies of files. But this morning I got this message for one of the files:

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.

The bot was running fine with this same file all previous days, I don’t see what can be the issue.
Anyone knows how to fix this?

What steps did you do to troubleshoot the problem before asking here?

Cheers

@jadbenn - can you share the full file path?

Hi, for problems concerning path too long issues, I suggest you to try the new long path tool. This can help you with all kinds of path too long cases,

I have facing the same problem then someone suggested me LongPathTool. You should try this