File name 255 characters

File name 255 characters

Anonymous
Not applicable
19,326 Views
6 Replies
Message 1 of 7

File name 255 characters

Anonymous
Not applicable

Hi everyone,

 

Facing an issue when trying to open a file with 73 characters. Despite having 73, revit shows me a message saying that "The full file name cannot be longer than 255 characters".

 

I am sure that there is no more than that (I´ve counted using word app) but the error persists, only when I change the file name to shorter it works.

 

Does anyone have any idea why this error shows up?

 

Thanks in advance

Accepted solutions (2)
19,327 Views
6 Replies
Replies (6)
Message 2 of 7

ToanDN
Consultant
Consultant
Accepted solution

The 255 character limitation is for the entire file name and folder path.

Message 3 of 7

syman2000
Mentor
Mentor
Accepted solution

This is windows limitation. So your solution is rename the file or placed it where the file path is less than 255 characters.

 

https://answers.microsoft.com/en-us/windows/forum/windows_10-files/256-character-limit-still-exists-...

Check out my Revit youtube channel - https://www.youtube.com/user/scourdx
Message 4 of 7

alt
Explorer
Explorer

Beginning with Windows 10, Windows allows paths to exceed 255 characters; refer to MAX_PATH setting in Windows, which is an "opt-in" setting.

 

 

Message 5 of 7

Burak_Baran
Contributor
Contributor

I had worse problem and when i clicked the file I had windows black screen for a second and in each time I click to file explorer collapsed ,the solution is go to revit ,zip the file in revit file browser screen than go to your zipping program than change name of file in zip file browser than it will be working.

0 Likes
Message 6 of 7

Fox4445
Contributor
Contributor

Same problem in Maya but makes sense to add this here. It seems for me the limit is 247 characters, from the beginning of D:\... to the end of .mb

Interestingly, in Windows File Explorer, if you try to rename a file that is less than the limit it won't let you type beyond the limit. However, you can save with a longer file name in Maya, at which point it will also crash Maya, but it will still show the longer file name in File Explorer as if it has saved properly, and then you can make it even longer in File Explorer. BUT you won't be able to open it again in Maya until you reduce the file name below the limit again.

This was causing me such a headache. I was wondering if something in my file was corrupt, or wondering if it was something to do with instanced geometry or the hypershade. I even renamed all the placement nodes and bump nodes and changed Maya switch nodes to aiSwitch nodes incase there was an incompatibility issue. I even exported what I thought was the problem mesh as OBJ and FBX and tried exporting/reimporting. I couldn't work out why I could make instances of the problem mesh in a simple scene and save it and reopen it with no problems, yet the same mesh in my actual scene file wouldn't save after instancing. I also tried Mesh>Cleanup and File>Optimise Scene Size. Sometimes it would crash while saving and sometimes crash when opening. Sometimes it would save and reopen (must have been just on or below the limit) but then when I saved my next iteration with a slightly longer file name it would.... crash!..... making me think it was something to do with the work I had just done. Now I know, it is just the filename length. I must have been unwittingly saving my files just under or just over the character limit, not realising that that was the deciding factor in  causing the crashes.

Perhaps other Autodesk programs have the same problem. It would be good if they warn you about file name length at the time of saving. I will submit a request/idea for improvement... but in the Maya forum 🙂

0 Likes
Message 7 of 7

Simon_Weel
Advisor
Advisor

Interestingly, in Windows File Explorer, if you try to rename a file that is less than the limit it won't let you type beyond the limit. However, you can save with a longer file name in Maya

It's a problem with File Explorer. Windows is capable of creating very long file names / paths (> 256 characters) for quite some time - I believe since XP. Most applications have no problem with those long names. But for some inexplicable reason, Microsoft can't figure out how to make File Explorer to handle those file names / paths.... 

If you google the problem, you'll find lots of hits about MAX_PATH and how to 'fix' it, but this has nothing to do with the problem. It's just File Explorer having this problem - not Windows.

Some alternatives to File Explorer don't have this problem, unless they use File Explorer as the underlying 'engine'.

0 Likes