Good Stuff to Know About SharePoint Files, Folders, URLs, Sites and the Like

You may also like...

9 Responses

  1. Fredrik M says:

    Could you tell me, why Sharepoint does not allow hyphen in document library?

    Is there some kind of WHY?

  2. Zubair Alexander says:

    Hi Fredrik,

    That’s a good question and I don’t know the answer.

    Hyphens are allowed in URLs so you would think they should not be a problem in a Document Library name. By “not allowed” I mean that you are able to create Document Libraries with hyphens (even commas) but in the URL SharePoint removes the hyphen (for whatever reason) but leaves the hyphen in the title name.

    If I find the answer to your question I will post it here.

  3. Gold says:

    Good article. I added you in the ‘Liked’ category.. thanks for sharing the article!

  4. Will says:

    Good article , I added you in the ‘Liked’ category.. thanks for sharing the article!

  5. Phil says:

    Great post. While doing some SharePoint development, I hit this brick wall with a hyphen in a document library name and thought my code was wrong. Little did I know that this was by design. Thanks. You’ve saved me hours, if not days, of debugging time.

  6. Zubair Alexander says:

    Phil,
    I am glad I was able to save you some debugging time.

  7. Tusar says:

    Is there any work around to allow Link list items to be more than 256 characters?

  8. Zubair Alexander says:

    I am not aware of any workaround to allow Link list to be more than 256 characters.

  9. Ved says:

    Did anybody come to know why “Hyphens” are not allowed in List/Library name. Why it is removed by SharePoint if used. On the other note, I see an inconsistency in this behavior. In one environment, it removes “Hyphen” in the document library name but when I check the same behavior in other environment it works fine. It doesn’t remove “Hyphen” in document library name. Strange!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

6 + 17 =