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!

link|improve this question

40% accept rate
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
feedback

3 Answers

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.

link|improve this answer
feedback

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

Will this solution work for you ?

link|improve this answer
feedback

I got same problem it is working for most of the documents.The problem happened for some documents.Those documents i can upload manually .Please let me know the solution of this problem.

Case #: suppose if the client has more files like that , i can not open and save it back for all this files.Please let me know the any alternative solution for this...Urgent!

Message: Unable to update the information in the Microsoft Office document SD/No Prog/ALFxy/GANDALF FW Functional View - epsg1051945.vsd. StackTrace: at 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) at Microsoft.SharePoint.SPListItem.AddOrUpdateItem(Boolean bAdd, Boolean bSystem, Boolean bPreserveItemVersion, Boolean bNoVersion, Boolean bMigration, Boolean bPublish, Boolean bCheckOut, Boolean bCheckin, Guid newGuidOnAdd, Int32& ulID, Object& objAttachmentNames, Object& objAttachmentContents, Boolean suppressAfterEvents)

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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