Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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!

share|improve this question
    
This probably belongs on stackoverflow.com –  Alex Angas Jul 27 '09 at 15:48
    
I asked the question on StackOverflow: stackoverflow.com/questions/1221160 –  user10082 Aug 3 '09 at 8:09
    
Please migrate it to SO! –  please delete me Aug 3 '09 at 8:11
add comment

2 Answers 2

Probably more appropriate for StackOverflow, but in summary it means that there is an issue with the .NET code that is communicating with Office (very crude explanation).

0x81071003 is a HRESULT code from a COM method which I'm guessing is called internally in the SP API. Check the doc that you're feeding to SP when this exception is thrown, and maybe try to upload it manually to see if a more specific error is given.

share|improve this answer
add comment

Here is the same issue reported on social.technet.microsoft.com

Will this solution work for you ?

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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