Sharepoint File Metadata Update/Upload

hi, I’m trying to upload a file together with its metadata “DocType” column. However, Im getting “error while trying to set metadata (Hint: Metadata can be set only for a DriveItem UiPath”.

DocType is a Managed Metadata

My metadata datatable:

Name (String) Value (Object)
DocType Order

I tried using update metadata but Im getting an issue when converting it to a data row “An unspecified error has occurred.”.

Column in Sharepoint is a Tag type and can only select 1 type.

I tried getting the file metadata for specific DocType column

DataRow 
{
  HasErrors=false,
  ItemArray=object[1] 
  {
    
    [{
      "Label":"Application","TermGuid":"xxxx-das123","WssId":3
    }] 
  },
  RowError="",
  RowState=Added,
  Table=[DataTable] 
}