Cannot serialize the DataTable. DataTable name is not set. Document Understanding using local resources

So i use document understanding from cloud.UiPath, the template before is using the document from storage bucket, and now i use local source but when “Wait for Validation Task and Resume” got this error
(System.Exception: Cannot serialize the DataTable. DataTable name is not set. —> System.InvalidOperationException: Cannot serialize the DataTable. DataTable name is not set. at System.Data.DataTable.WriteXmlSchema(XmlWriter writer, Boolean writeHierarchy)
at System.Data.DataTable.System.Xml.Serialization.IXmlSerializable.WriteXml(XmlWriter writer)
at )

I saw from other post is that error means datatable’s name not assigned yet, but when i use the document from storage bucket there’s no assigning datatable’s name, and still got it right

@Aran_Brekkie,

This is the cause of the issue.

Can you elaborate more?, because the scope for wait validation task and resume is not in the another workflow

@Aran_Brekkie

Check if you have any variables with datatype other than this.

Text, True or False, Number, Array, Date and Time. Data Table and GenericValue variables.

This is when make the validation task, so i assume the datatable is inside the document data

@Aran_Brekkie

  1. You should sue parallel for each instead of for each when you use persitent or wait related activities
  2. All variables used in the same scope of wait activity should be serializable meaning they should be simple datatypes

Please check best practices

cheers

I figured it, it’s because i use “wait for validation” in another workflow, when i use it in the same workflow, it works

1 Like