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,

1 Like