SharePoint: what does “System.Runtime.InteropServices.COMException (0x81071003)” mean

sharepoint

Hallo,

i've got some code that imports documents into a SharePoint (WSS 3.0 SP1) document-library.
That code works most of the time without any problems, but sometimes the document is not imported into the document-library and i get this nasty exception instead.

Microsoft.SharePoint.SPException: Unable to update the information in the Microsoft Office document myFileName. ---> System.Runtime.InteropServices.COMException (0x81071003): Unable to update the information in the Microsoft Office document myFileName.
bei Microsoft.SharePoint.Library.SPRequestInternalClass.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, 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)
bei Microsoft.SharePoint.Library.SPRequest.AddOrUpdateItem(String bstrUrl, String bstrListName, Boolean bAdd, Boolean bSystemUpdate, Boolean bPreserveItemVersion, 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)

What does this exception mean? And why does it occur only sometimes?

Thanks!

P.S.: I asked this question originally on ServerFault, here is the link

Best Answer

Well the exception is raised by a COM assembly which has been wrapped by .Net code (hence the COMException).

Without seeing the code that causes the exception its hard to say why its being caused as COMExceptions are invariable non-specific.

There seems to be some more information here: http://mqsharepoint.blogspot.com/2007/06/exception-0x81071003-unable-to-update.html

Related Topic