Cannot upload or edit document in SharePoint 2007/2010


Today I was called by a company who have encountered an interesting issue regarding a SharePoint environment within their organization. They reported that “it is not possible to edit / save files to SharePoint 2007” and were getting the following error:

[Update 31-1-2012]
Before further reading, check if it is not a simple free space issue with on your database server.

This occurs in every situation:
• At all users, even systemaccount
• At all sites
• From every client
• At all webapplications and also at different content databases.

They reported that
• We cannot create files
• We cannot upload files
• We cannot overwrite files
• We can edit file properties
• We can delete files to bin
• We can delete files entirely
• We can restore files form bin

There seems to be no error at SQL server, no low diskspace, no databaselimit reached.

VERBOSE LOGGING:
ISPExternalBinaryProvider::StoreBinary failed. Error 0x80004005.

The URL ‘Shared Documents/file.xlsx’ 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.

Application error when access /_layouts/Upload.aspx, Error=The URL ‘Shared Documents/file.xlsx’ 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. 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)

The client reported the issue started after upgrade of CommVault Simpana Agent’s from version 8 to 9. They have removed all the agents, rebooted both servers. This did not resolve the issue.

Somehow it looks like that there is an issue with the External Storage provider while the client did not use that kind of functionality of CommVault. To check if an External storage (RBS) provider is configured you can run the following Powershell script.

 [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SharePoint')
 $farm = [Microsoft.SharePoint.Administration.SPFarm]::Local
 $farm.ExternalBinaryStoreClassId

Which resulted in the following results.

So it clearly looks like some kind of external storage provider is configured. The next step was to check if the component was successfully registered in the Component Services.

· Go to Administrative tools
· Go to Component Services
· Open DCOM Config
· Find the given GUID

Unfortunately the given ID was not found, thus SharePoint could not contact the DCOM object to store document.

To resolve the issue the External Storage (RBS) provider we need to reset the configuration.

 [System.Reflection.Assembly]::LoadWithPartialName('Microsoft.SharePoint')
 $farm = [Microsoft.SharePoint.Administration.SPFarm]::Local
 $farm.ExternalBinaryStoreClassId = [system.guid]::empty
 $farm.Update()

After these lines you have to IISRESET and restart the SPTimerV3

References
http://msdn.microsoft.com/en-us/library/bb802799.aspx

Advertisements

About Cloud Architect Joran Markx
I have been working on Microsoft Technology since 2003. In addition to (lead) developer and software architect, I am certified Microsoft Specialist and active in design and implementation of Hybrid Cloud platforms. In 2011 I have achieved a Master of Science in IT Management. This made me capable to solve complex issues from the business in an efficient and structured way. As Cloud Architect I am working on various challenging projects with a variety of clients. Within my organisation I fullfill a leading role when it comes to internal development and sharing of knowledge. My goal is to provide reliable and predictable services to our clients with a strong focus on the results achieved for the organisations I am working for.

2 Responses to Cannot upload or edit document in SharePoint 2007/2010

  1. Tom says:

    Holy schnikeys Joran. Thank you. Thank you. Thank you.

  2. Rik says:

    I agree with Tom… saviour.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: