Hi,
There are two managed metadata columns MMC1 and MMC2 in a content type. Both MMC1 and MMC2 column allow multiple value selection.
I have to copy values from document "Doc1" and update the field values for document "Doc2", on upload of Doc2.
I am using the ItemAdding event to achieve this.
For MCC2 it works fine
When the "Doc1" has single value for MMC1 it throws the below specified COM exception and document "Doc2" is not uploaded to the list.
[COMException (0x81072114): <nativehr>0x81072114</nativehr><nativestack></nativestack>Invalid look-up value.
A look-up field contains invalid data. Please check the value and try again.]
Microsoft.SharePoint.Library.SPRequestInternalClass.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object punkFile, Int32 cbFile, Object punkFFM, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32
iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, Byte partitionToCheck, Int64 fragmentIdToCheck, String bstrCsvPartitionsToDelete, String bstrLockIdMatch, String bstEtagToMatch, Int32 lockType,
String lockId, Int32 minutes, Int32 fRefreshLock, Int32 bValidateReqFields, Guid gNewDocId, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage, String& pEtagReturn, Byte& piLevel, Int32& pbIgnoredReqProps)
and when "Doc1" has multiple values or MMC1, it throws the below COM exception and document "Doc2" is not uploaded to the list.
Exception Details: System.Runtime.InteropServices.COMException: <nativehr>0x81020030</nativehr><nativestack></nativestack>The URL 'Shared Documents/TestDoc4.docx' 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.
Stack Trace:
[COMException (0x81020030): <nativehr>0x81020030</nativehr><nativestack></nativestack>The URL 'Shared Documents/TestDoc4.docx' 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.]
Microsoft.SharePoint.Library.SPRequestInternalClass.PutFile(String bstrUrl, String bstrWebRelativeUrl, Object punkFile, Int32 cbFile, Object punkFFM, PutFileOpt PutFileOpt, String bstrCreatedBy, String bstrModifiedBy, Int32 iCreatedByID, Int32
iModifiedByID, Object varTimeCreated, Object varTimeLastModified, Object varProperties, String bstrCheckinComment, Byte partitionToCheck, Int64 fragmentIdToCheck, String bstrCsvPartitionsToDelete, String bstrLockIdMatch, String bstEtagToMatch, Int32 lockType,
String lockId, Int32 minutes, Int32 fRefreshLock, Int32 bValidateReqFields, Guid gNewDocId, UInt32& pdwVirusCheckStatus, String& pVirusCheckMessage, String& pEtagReturn, Byte& piLevel, Int32& pbIgnoredReqProps) +0
What does this error mean? How to resolve this issue?
Thanks in advance,
dhijit