“Unable to complete this operation. Please contact your administrator” Error when trying to upload a file in SharePoint
I was troubleshooting an issue with uploading files to SharePoint Site. When I tried uploading a file to the document library, I got this error:
Enabled Stack Trace and Disabled Custom error tags in web.config to reveal the actual error:
Unable to complete this operation. Please contact your administrator. at Microsoft.SharePoint.Library.SPRequestInternalClass.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object varFile, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage)
at Microsoft.SharePoint.Library.SPRequest.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object varFile, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32 iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage)
Solution:
- Usually You will see this error when SQL Server is running out of disk space. So take a look at your DB Servers disk space first!
- Verify that the site collections did not get locked and site quotas are correct
- Check the database and the data file is on unrestricted growth.
- In case, You are using SQL Server Express edition – it supports 4GB Max! SQL Server 2008 R2 Express Edition the limit is upped to 10GB
- Verify that the user have enough permissions to do what they are trying to do.
- In my case, the problem was: Transaction logs were huge because they weren’t being cleared out properly during the backup! Truncated the transaction log as per Truncate and Shrink SharePoint Transaction Logs, Databases and the issue got resolved!
- Last but not least: Perform the DBCC Checkdb and ensure your content database is in good state.
Generally, It’s a good practice to have a Disk-space monitoring system(Such as SCOM or your own script to monitor the disk space) in place in order to avoid such issues.