Skip to main content

Hello,

I am trying to migrate PDFs with the FileCopy writer. I have destination path and file names with lengths from 260 - 300+. They fail, but if I change the path to be shorter they all succeed.

Am I mistaken in thinking that FileCopy limited to 256 as its max pathname character count? Is there a way around this? Has anyone else run into this issue?

Additional info:

FME(R) 2019.0.0.0 (20190328 - Build 19238 - WIN64)

Windows 10

 

Thank you for your advice,

Andy

It's a limitation in Windows, most likely.

See https://stackoverflow.com/a/265782


It may be a Windows limit actually, Windows 10 had a 260-character path limit up until a few years ago, it can be removed but that requires action.

Assuming it is only a Windows limitation, would you be able to create a share for the folder?

In that case you can use the share as the base folder, using UNC path names, like:

\\\\<server>\\<share>\\<file name>

Hope this helps as a work around.


Assuming it is only a Windows limitation, would you be able to create a share for the folder?

In that case you can use the share as the base folder, using UNC path names, like:

\\\\<server>\\<share>\\<file name>

Hope this helps as a work around.

Thank you! I ended up being able to map the first 76 characters to Network Drive X:/. This brought my longest pathname down to 232 characters, allowing me to write everything in their proper destination folders. Thanks again for everyone's input!


Reply