One of my users has a simple SharePoint 2010 library where they store PDFs with some metadata. Problem is, when someone tries to rename the file, by editing the Name
field, SharePoint gives an error that the new name is invalid. Strangely, once the error message is close and the page refreshed, the name has changed despite the error saying the opposite.
The same behavior occurs in Explorer View.
There are no special characters in the file names, nor is the filename too long. Versioning is disabled, checking out files is not required.
Log files:
03/29/2016 15:58:54.51 w3wp.exe (SPSTSTWF02:0x154C) 0x19CC SharePoint Foundation Database d0d6 High System.Data.SqlClient.SqlException: Arithmetic overflow error for data type tinyint, value = 256. at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlDataReader.HasMoreRows() at System.Data.SqlClient.SqlDataReader.ReadInternal(Boolean setTimeout) at System.Data.SqlClient.SqlDataReader.NextResult() at Microsoft.SharePoint.SPSqlClient.ExecuteQueryInternal(Boolean retryfordeadlock) at Microsoft.SharePoint.SPSqlClient.ExecuteQuery(Boolean retryfordeadlock) 19495cb1-9004-444f-a736-265a1d3d766c
03/29/2016 15:58:54.51 w3wp.exe (SPSTSTWF02:0x154C) 0x19CC SharePoint Foundation General 8kh7 High Invalid file name. The file name you specified could not be used. It may be the name of an existing file or directory, or you may not have permission to access the file. 19495cb1-9004-444f-a736-265a1d3d766c
03/29/2016 15:58:54.51 w3wp.exe (SPSTSTWF02:0x154C) 0x19CC SharePoint Foundation Runtime tkau Unexpected System.Runtime.InteropServices.COMException: Invalid file name. The file name you specified could not be used. It may be the name of an existing file or directory, or you may not have permission to access the file. at Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) at Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, Boolean bPreserveItemUIVersion, Boolean bUpdateNoVersion, Int32& plID, String& pbstrGuid, Guid pbstrNewDocId, Boolean bHasNewDocId, String bstrVersion, Object& pvarAttachmentNames, Object& pvarAttachmentContents, Object& pvarProperties, Boolean bCheckOut, Boolean bCheckin, Boolean bMigration, Boolean bPublish, String bstrFileName, ISP2DSafeArrayWriter pListDataValidationCallback, ISP2DSafeArrayWriter pRestrictInsertCallback, ISP2DSafeArrayWriter pUniqueFieldCallback) 19495cb1-9004-444f-a736-265a1d3d766c