Upload file to sharepoint with metadata found Error while trying to set metadata

I try to upload file into sharepoint document library with metadata , but it has error

activity: UiPath.MicrosoftOffice365.Activities.Files.UploadFile
Upload File: Error while trying to set metadata (Hint: Metadata can be set only for a DriveItem stored in a SharePoint Document Library.)

how i find the root cause or how can i fix it ?

ps. program upload complete if i remove metadata.

Hi @chakhrit_kru-usaha,

Cloud you please share the content of the DataTable variable holding the metadata & the type of the respective field on the Document Library ? This will help us assist you further.

Thanks & Regards,
Nithin

2 Likes

Hi is it resolved?

Hi @Nithin_P

Even I am facing the same issue , I am passing metadata in the form of 2 column ,
Display name as string and value as object.
Is that compulsory Do we need to set all the meta data. Because few fields are in the form of choice, before they used to set in the form of dictionary and value as string<> .
Still facing the issue.

image

Thanks &Regards,
Sanjay

I’m running into this issue with choice field that has “Allow multiple selections” set to Yes in Sharepoint field settings. I cannot pass in multiple values when needed for this one field.
image
when I switch the Yes to No, I am able to add a single value to dtMetadata Value column, but that would not satisfy the business need.
Does anyone know how to send in an array to the Value column in metadata?

Kind regards,
Megan