Share via

SharePoint List URL limited to 255 characters but links from Copy Link button in SharePoint are consistently greater than 255 characters

Joe 126 Reputation points
2022-12-28T19:44:30.117+00:00

Added a URL field in a Teams/SharePoint list and as I was testing the use of this list I found an error message stating "URL may not contain more than 255 characters". The URL in question is coming from the Teams/SharePoint "Copy link" selection. From Teams the link is 500+ characters and from SharePoint direct the link is 264 characters. Why is this limit lower than what is generated as a link in Teams and SharePoint and is there a plan to remove this limit in the future?

I've found a workaround to use the Multiline field but that seems like a very unnecessary step for such a straightforward application.

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

Answer accepted by question author
  1. Jinwei Li-MSFT 4,741 Reputation points Microsoft External Staff
    2022-12-29T08:04:43.217+00:00

    Hi @Joe ,

    As per my tests, this problem cannot be reproduced from my end, I did not receive this error when I click "Copy Link" copy to the URL field. If using another language, you may have more than 255 characters in the link.

    Currently, there is no official article says to remove this restriction and limitation. You could make your suggestion in this feedback portal to improve user experience.

    This is screenshot about my test.
    274761-image.png

    No error reported.
    274735-image.png

    Different apps and Office versions have different limits, and the combination of limitations may be unique to your setup.

    The entire decoded file path, including the file name, can't contain more than 400 characters for SharePoint Online. The limit applies to the combination of the folder path and file name after decoding.
    The URL field in a SharePoint list or library that you used single line of text column or hyperlink column have 255 characters limit. This is by design.

    I have found this official article to show you character restrictions and limitations in SharePoint for you reference, hope it would help you.

    Thanks for your understanding and support!


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.