Error In 'Wait for form task and continue' Activity With DataTable Variable

How to fix error 'Cannot serialize the DataTable. DataTable name is not set' in 'Wait for form task and continue' activity?

Resolution :

  1. Debug the code and check if there are any DataTable variable is present with table name property as null or empty.
  2. The issue is observed if any of the Datatable's TableName property is not set in the workflow. Set them as shown below. This has to be done to ensure that the Datatable variable can be serialized. Image_2020-07-20_07-13-10.png
  3. Remove all the unused variables of type DataTable.