"The URL is invalid" error message when you upload a file to a SharePoint list
Problem
When you upload a file to a SharePoint Online or SharePoint 2013 list, you receive the following error message:
The URL <file name> is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web.
Note
The placeholder <file name> represents the name of the file that you uploaded to the SharePoint list.
Solution
To work around this issue, remove the Version column from the list of Indexed Columns for the list that has this issue. To do this, follow these steps:
Browse to the list where the issue exists.
In the ribbon, click the Library tab, and then click Library Settings.
In the fields list, click Indexed Columns.
In the Indexed Columns list, click Version.
Click Delete, and then click OK.
Upload any files that you previously experienced the issue with.
More information
This issue occurs when the Version column is configured as an Indexed Column.
Still need help? Go to SharePoint Community.
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for