Wednesday, February 22, 2012

"The file name you specified is not valid or too long" with SharePoint 2010 Mapped Drives

Ran into an issue today with using mapped drives in Windows 7 and a SharePoint 2010 Document Library. Making new files worked just fine, but when trying to move files between folders I was getting the error: "The file name you specified is not valid or too long".

Long story short, it turns out the WebDAV support in Windows 7 doesn't seem to like certain characters in paths, specifically space in this case (although I assume there are others). In this case it didn't like that the Document Library was at:
http://sharepoint/docs/Documents%20And%20Things

This is with WebClnt.dll 6.1.7601.21728, which is the most recent I could track down.

The work around is to rename the document library. Since you can't do this directly from the SharePoint web interface, I had to do it using SharePoint Workspaces. Once the library was renamed, it's working properly now.

1 comment:

Anonymous said...

Thanks for this! Saved me a lot of research!