Sharepoint file name restrictions

Hi
Is there any way in Sharepoint 2010 to get it to allow filenames beginning with "." and/or containing the "_" and "&" character within a document library? 
Any solution welcome except renaming all documents containing such characters as this is not really an option as this is an enterprise wide issue for 3,000 users. I do find it frustrating in 2013 that we seem to be still limited by MS DOS file naming
convention.

No, there is code within SharePoint that specifically checks for, and rejects these characters.  It cannot be overridden.
http://support.microsoft.com/kb/905231
Trevor Seward, MCC
Follow or contact me at...
&nbsp&nbsp
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

Similar Messages

  • Mac file name restrictions/special characters

    What are the Mac OS file name restrictions? What are the special characters to avoid?
    Is this a legitimate file name? Are the colons allowed?
    /Users/Joe/Desktop/MyDocument 3:2:06.xls
      Windows XP Pro  

    Thanks, Sagesse. I'm new to the Mac OS. Is it tied to Unix in such a way that the colons are allowed?
    A user tried to provide a file with a name similar to that in my original post (e.g. "name 3:4:07.rtf") using a web form, and I'm at a loss as to how they could have saved it with the colons. Thank you for your assistance.

  • Why are certain characters invalid in SharePoint file names/folders?

    Hello. I know which characters are not accepted in file names, but someone asked me today why that was and I was stumped! Does anyone know?

    They are usually invalid because the have a special meaning to the operating system or to URLs. For example the slash "/" is not allowed because it is used as a seperator in a URL.  (http://yourserver/yousite/somepage.htm).
    Greater than (>) and less than (<) are not allowed as they are used to redirect output from a DOS command to a file ( DIR *.doc > listofwordfiles.txt )
    So each reserved character has a special use somewhere... in DOS, in HTTP, in SharePoint, etc.
    Mike Smith TechTrainingNotes.blogspot.com
    my SP customization book

  • Idoc file name restricted to 100 characters

    The file name (include Directory Path) for Idocs seems limited to 100 characters (it truncates).
    Can anyone confirm this?
    Is there a workaround (other than changing to a shorter path)?
    Thanks,
    Matt.

    Hi Matt
    Please refer to the following link.
    https://www.sdn.sap.com/irj/sdn/collaboration
    Award Points if useful
    Regards
    Inder

  • SharePoint 2010, Visual Studio 2010, Packaging a solution - 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.

    Hi,
    I have a solution that used to contain one SharePoint 2010 project. The project is named along the following lines:
    <Company>.<Product>.SharePoint - let's call it Project1 for future reference. It contains a number of features which have been named according
    to their purpose, some are reasonably long and the paths fairly deep. As far as I am concerned we are using sensible namespaces and these reflect our company policy of "doing things properly".
    I first encountered the following error message when packaging the aforementioned SharePoint project into a wsp:
    "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."
    I went through a great deal of pain in trying to rename the project, shorten feature names and namespaces etc... until I got it working. I then went about gradually
    renaming everything until eventually I had what I started with, and it all worked. So I was none the wiser...not ideal, but I needed to get on and had tight delivery timelines.
    Recently we wanted to add another SharePoint project so that we could move some of our core functinality out into a separate SharePoint solution - e.g. custom workflow
    error logging. So we created another project in Visual Studio called:
    <Company>.<Product>.SharePoint.<Subsystem> - let's call it Project2 for future reference
    And this is when the error has come back and bitten me! The scenario is now as follows:
    1. project1 packages and deploys successfully with long feature names and deep paths.
    2. project2 does not package and has no features in it at all. The project2 name is 13 characters longer than project1
    I am convinced this is a bug with Visual Studio and/or the Package MSBuild target. Why? Let me explain my findings so far:
    1. By doing the following I can get project2 to package
    In Visual Studio 2010 show all files of project2, delete the obj, bin, pkg, pkgobj folders.
    Clean the solution
    Shut down Visual Studio 2010
    Open Visual Studio 2010
    Rebuild the solution
    Package the project2
    et voila the package is generated!
    This demonstrates that the package error message is in fact inaccurate and that it can create the package, it just needs a little help, since Visual Studio seems to
    no longer be hanging onto something.
    Clearly this is fine for a small time project, but try doing this in an environment where we use Continuous Integration, Unit Testing and automatic deployment of SharePoint
    solutions on a Build Server using automated builds.
    2. I have created another project3 which has a ludicrously long name, this packages fine and also has no features contained within it.
    3. I have looked at the length of the path under the pkg folder for project1 and it is large in comparison to the one that is generated for project2, that is when it
    does successfully package using the method outlined in 1. above. This is strange since project1 packages and project2 does not.
    4. If I attempt to add project2 to my command line build using MSBuild then it fails to package and when I then open up Visual Studio and attempt to package project2
    from the Visual Studio UI then it fails with the path too long error message, until I go through the steps outlined in 1. above to get it to package.
    5. DebugView shows nothing useful during the build and packaging of the project.
    6. The error seems to occur in
    CreateSharePointProjectService target called at line 365 of
    Microsoft.VisualStudio.SharePoint.targetsCurrently I am at a loss to work out why this is happening? My next task is to delete
    project2 completely and recreate it and introduce it into my Visual Studio solution.
    Microsoft, can you confirm whether this is a known issue and whether others have encountered this issue? Is it resolved in a hotfix?
    Anybody else, can you confirm whether you have come up with a solution to this issue? When I mean a solution I mean one that does not mean that I have to rename my namespaces,
    project etc... and is actually workable in a meaningful Visual Studio solution.

    Hi
    Yes, I thought I had fixed this my moving my solution from the usual documents  to
    c:\v2010\projectsOverflow\DetailedProjectTimeline
    This builds ok, but when I come to package I get the lovely error:
    Error 2 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. C:\VS2010\ProjectsOverflow\DetailedProjectTimeline\VisualDetailedProjectTimelineWebPart\Features\Feature1\Feature1.feature VisualDetailedProjectTimeline
    Now, the error seems to be related to 
    Can anyone suggest what might be causing this. Probably some path in an XML file somewhere. Here is my prime suspect!
    <metaData>
    <type name="VisualDetailedProjectTimelineWebPart.VisualProjectTimelineWebPart.VisualProjectTimeline, $SharePoint.Project.AssemblyFullName$" />
    <importErrorMessage>$Resources:core,ImportErrorMessage;</importErrorMessage>
    </metaData>
    <data>
    <properties>
    <property name="Title" type="string">VisualProjectTimelineWebPart</property>
    <property name="Description" type="string">My Visual WebPart</property>
    </properties>
    </data>
    </webPart>
    </webParts>
    .... Unless I can solve this I will have to remove the project and recreate but with simple paths. Tho I will be none the wiser if I come across this again.
    Daniel

  • How to keep original Uploaded File Name in SharePoint Document Library?

    HI,
    I have document library. After Uploaded the file in document library. I want to keep the file name in some other filed.
    Why because in future i may change the file name in document library so in order to know the original name of the file.
    I want to do without any workflow. Is there any other default column like that?
    How could i achieve it?
    Thanks & Regards
    Poomani Sankaran

    Hello,
    Here is list of operations for file element, and you can save it in library column:
    http://social.technet.microsoft.com/wiki/contents/articles/22156.sharepoint-2010-a-complete-list-of-spfile-operations-using-ecma-script.aspx
    http://sprider.org/2011/12/13/sharepoint-ecmascript-to-adddeleteupdateget-list-items/
    Hemendra:Yesterday is just a memory,Tomorrow we may never see
    Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Sharepoint Workflow : how to get document full path + file name into variable?

    Hi,
    Anybody knows how to get document full path + file name into a variable in Sharepoint 2010 workflow?
    Example http://sp1:80/InvoiceQueue/Shared Documents/123.pdf
    I am using List Workflow which links to a document library.

    Hi SAMSUNG,
    According to your description, my understanding is that you want to get the full path of a document in a list workflow.
    You can set the variable to the Enconded Absolute URL of the document. The screenshot is my testing. In my testing (in the red area), when the title of a document was equal to the tile of the current item, set a variable to the Enconded Absolute URL of the
    document. I used ‘Log to history list’ to check the value of the variable in Workflow History .
    I hope this helps.
    Thanks,
    Wendy
    Wendy Li
    TechNet Community Support

  • Sharepoint document library file name column in content database?

    Hi,
    How to get a sharepoint document library file name column in content database?
    Thanks
    Poomani Sankaran

    You're not supposed to develop any solutions accessing the content database directly. It's not supported. Document Library Filename is stored in LeafName column, table: AllDocs.
    2.2.6.1 AllDocs Table
    This post is my own opinion and does not necessarily reflect the opinion or view of Slalom.

  • How to rename the SharePoint Document Library existing file name using Web service

    Hi,
    How to rename the SharePoint Document Library existing file name using SharePoint Web service.
    Is it possible. How could i do it?
    Thanks & Regards
    Poomani Sankaran

    Hi,
    Lists.UpdateListItems Method
    would be helpful for your requirement.
    Here is a blog with code demo for your reference:
    http://blogs.msdn.com/b/knowledgecast/archive/2009/05/20/moss-using-the-list-web-service-to-rename-a-file.aspx
    Best regards,
    Patrick
    Patrick Liang
    TechNet Community Support

  • Long file name document is not uploading in SharePoint Document library?

    Hi,
    My pdf file name length is more than "90" character. I could not upload this file by using "Open with explorer" option.
    Could any one tell me the way to upload kind of files?
    Thanks & Regards
    Poomani Sankaran

    There is a limitation set by Microsoft on the URL path length of 256 characters, refer - https://technet.microsoft.com/en-in/library/ff919564(v=office.14).aspx
    This restriction is with IE browser and you will not see this in other browsers.

  • Some chinese character file name not uploading in SharePoint Document Library?

    Hi
    Some Chinese character pdf file name not uploading in SharePoint Document Library. I am getting following error.
    1. File not found error if i would upload using file browse option in Doc Lib.
    2. Can't read from the source file or disk. if i would tried to copy and paste using "Open with explorer" options.
    File name is "LA(未签署).pdf"
    Note: This file has been converted from "TIFF" to "PDF".
    Thanks & Regards
    Poomani Sankaran

    Hi Poomani,
    For troubleshooting your issue, please let's verify the followings:
    Whether other pdf file which are not converted from "TIFF" and contain Chinese char could be uploaded into the SharePoint Document library.
    Whether other pdf file which are converted from "TIFF" and don't contain Chinese char could be uploaded into the SharePoint Document library.
    Please upload these pdf files into other libraries, compare the result.
    Please check the log file to find more information about this issue. The path of the log file is:
    C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14\LOGS.
    Best Regards,
    Wendy
    Wendy Li
    TechNet Community Support

  • Sharepoint 2010 -Script to get file name from Document Library

    Hi 
    can anybody send be script that works in "SharePoint 2010 management Shell" to get list of file names in document library.
    Thank

    See my updated answer. The double quotes need to be removed. Also note that you need to use $item.File.Name
    and not $item.Name to get the name of the files.
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • WCF Service and Sharepoint Form library : How i can read a access a form libray and query a item from file name and read form xml in WCF service ?

    WCF Service and Sharepoint Form library : How i can read or access a form libray and query a item from file name and read form xml in WCF service ?
    Ahsan Ranjha

    Hi,
    In SharePoint 2013, we can take use of REST API or Client Object Model to access the SharePoint objects like Form Library.
    SharePoint 2013 REST API
    http://msdn.microsoft.com/en-us/library/office/dn450841(v=office.15).aspx
    http://blogs.technet.com/b/fromthefield/archive/2013/09/05/working-with-sharepoint-list-data-odata-rest-and-javascript.aspx
    SharePoint 2013 Client Object Model
    http://msdn.microsoft.com/en-us/library/office/fp179912(v=office.15).aspx
    http://msdn.microsoft.com/en-us/library/office/jj193041(v=office.15).aspx
    With the retrieved file, we can then use XmlDocument object to parse it and get the values you want:
    http://weblogs.asp.net/jimjackson/opening-and-reading-an-xml-file-in-a-document-library
    http://stackoverflow.com/questions/1968809/programatically-edit-infopath-form-fields
    Best regards
    Patrick Liang
    TechNet Community Support

  • When saving to SharePoint 2010, we want Word to use document title for file name

    We have a template and custom Document information Panel.
    In the panel we select a few values to filter the selection list of document numbers. After selection of document number the title is populated from an external list of document numbers with titles.
    On initial save, the suggested file name provided by word is not the title that is already populated. If we cancel, and click save a second time the title is now the suggested file name.
    Is there a workaround or fix for this issue either for sharepoint or word? To make it use the title information on the initial save attempt?
    Thanks in advance,
    Chris.

    Hi  Chris,
    Do you use SharePoint Designer Workflow to get and  populate the document’s file name?
    If so, the  issue is caused by  delayed Workflow.
    For a workaround, you can create an event  receiver  with ItemAdding method for getting and populating the document’s file name.
    For more information, you can refer to the article:
    http://msdn.microsoft.com/en-us/library/gg749858(v=office.14).aspx
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • Restricting length of file name of the file to be uploaded in file browse.

    Hi,
    I have got a file browse item. When the file name is more than 74 characters, it goes to an error page. Can this be avoided?
    To prevent this, I tried using a javascript
    function doSubmitWithProgress()
    if (document.getElementById('P202_FILE_INPUT').value.length > 70){
    alert('File name should be less than 70 characters in length.');
    object.focus();
    else
    {$x_Hide('wwvFlowForm');
    $x_Show('InProgress');
    doSubmit('UPLOAD_FILE');
    But this is considering the path of the file as well and hence causing an issue.
    So could you please help me out with this issue.
    If there is a way to avoid going to error page if file name is big that would be great. Otherwise, if there is a way to check just the length of the file name and trigger an alert if it is more than 70 characters, that would help me too.
    Thanks,
    Vignesh

    The issue is that this code
      // Now create an array that contains the individual pieces of
      // the file name split on the "/" boundaries
      var myArray  = fileName.split('/');has the wrong path separator for Windows. Use backslash instead:
      // Now create an array that contains the individual pieces of
      // the file name split on the "\" boundaries
      var myArray  = fileName.split('\\');double backslash is necessary because '\' is the JavaScript escape character, so it needs to be doubled to indicate that that is the character we want.
    However, also be aware that for security/privacy reasons recent versions of browsers do not expose the file path via the .value method. Firefox, Safari and Chrome only provide the filename. IE6 & IE7 yield the path in Windows format. IE8 and Opera, in an effort not to "break the web" (i.e. to bend over backwards to keep poorly coded and non-interoperable Windows sites working) have adopted an irritating approach of replacing the path with a wholly imaginary "C:\fakepath\".
    So your validation may have to cope with up to 3 scenarios, depending on the browsers that need to be supported: only get the filename (FF/Safari/Chrome); get the full path (IE6/7/8 in some security configurations/older versions of all browsers); get a fake path (Opera/IE8 in other security configurations).
    For more information see:
    http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2009-March/018980.html
    http://blogs.msdn.com/ie/archive/2009/03/20/rtm-platform-changes.aspx
    (In 2009 MS are still concerned that pathname segments are limited to 8 characters?)

Maybe you are looking for

  • Safari won't open a new tab

    I'm using Safari 5.0.5 and when I hit command+T or when I right click on a link to open in a new tab, it doesn't open a new tab, it gives me a white page and the URL reads the same page I was previously on. I can't find anything that explains why it

  • Can't download 8.1.7 jdbc driver - urgent

    I am trying to download the JDBC 8.1.7 driver, but when I follow the links I end up at http://otn.oracle.com/software/tech/java/sqlj_jdbc/htdocs/jdbc817.html, with no way to get at the driver. Please help!!

  • Search of PDF content not working within SharePoint 2003

    Unable to get any search results for filenames that include underscores and any PDF document content. Confirmed that search is working correctly otherwise. PDF file types have been included in the SharePoint search. Was using ifilter 6.0 installed on

  • Finish painting before Robot captures screen

    Hi. I have a little math practice program on a JFrame. When a child gets a problem right, I use Robot to capture a screen shot and then use that image on a new JFrame as a backdrop for crazy effects. My problem is that I want all swing painting on th

  • Monitor sleep question

    I've just moved to a G5 from my G3. Temporarily I'm using the Sony trini tube from my G3 until I get an LCD. With the G3, the trini passed thru and was powered by the G3. Sleep ran fine. With the G5 (dualie 2G) it sleeps OK, but it is very slow to wa