2009-08-03 13 views
1

Hallo、SharePoint: "System.Runtime.InteropServices.COMException(0x81071003)"とはどういう意味ですか?

ドキュメントをSharePoint(WSS 3.0 SP1)ドキュメントライブラリにインポートするコードがあります。
そのコードはほとんどの場合問題なく動作しますが、ドキュメントがドキュメントライブラリにインポートされない場合があります。

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) 

この例外は何を意味しますか?それはなぜ時々だけ起こるのですか?

ありがとうございます!

P.S:私はまあ例外が.NETコード(したがってCOMExceptionは)によってラップされたCOMアセンブリにより提起され、ServerFaultの上、もともとhere is the link

+0

重複しています。 Stackoverflowに_migrated_する必要がありますので、回答もここに移動されます! – guerda

+0

質問を編集して、ドキュメントをインポートするコードのスニペットを含めることはできますか?例外の原因となる行を表示してください。 –

答えて

1

賞賛:

はここにいくつかのより多くの情報があるようです!

MS Officeドキュメントをインポートしたときに例外が発生したため、例外を発生させるSharePointの部分がdocument parsing processである可能性がありました。
回避方法として、How to Disable Property Promotion In WSSのJoe Rodgersの後にSPWeb.ParserEnabled Propertyを無効にしました。
これですべての文書がインポートされました。

関連する問題