2

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

  • Can the user download the file? – Trevor Seward Mar 23 '16 at 19:13
  • yes they can! no issue downloading. – DFranco Mar 23 '16 at 20:26
  • Can you do a Set-SPLogLevel -TraceSeverity VerboseEx -Identity Database, have the user repro, run Clear-SPLogLevel, then Merge-SPLogLevel for the period of time the user was repro'ing, and finally update your question with that log file? – Trevor Seward Mar 24 '16 at 3:07
  • Thanks Trevor. In SP Central Admin, what level of logs should be turned on to get this level of detail? – DFranco Mar 24 '16 at 15:03
  • 1
    Thanks, but there should be additional logging besides what you posted, in addition, the format here isn't the best. Could you host the actual log file on a file service (OneDrive, Dropbox, etc.) and provide the link instead? Can you also provide the source name of the file and destination name of the file, as well as the name of the Document Library in which they reside? – Trevor Seward Mar 29 '16 at 23:01
0

One thing it could be: the new file name matches a file with the same URL in the recycle bin. So, the file can actually be renamed, but its name conflicts with the name of a recycled file.
Note: this idea has been inspired by reading the first comment at: http://sharepointmalaya.blogspot.fr/2011/02/delete-corrupted-list-using-stsadm.html

  • Good idea! Sadly it didn't help me. :( – DFranco Mar 30 '16 at 14:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.