Cannot serialize the Datatable. The Datatable name is not set
Hello,
When I am converting the featurset results of the query task to data table using "Featurset to DataTable" acitivity. I am getting the following error :
"Cannot serialize the Datatable. The Datatable name is not set"
Please provide your inputs on it.
Thanks
Srikanth
0
-
Your workflow currently has the DataTable in scope when it encounters an external activity, like Alert, Display Form or Select Features. Since these external activities run in the web browser rather than on the server the workflow needs to serialize all the variables in scope so that it can send the workflow state to the browser. DataTable does support serialization, but it has an interesting requirement that it must have its TableName set.
You have two options:- Set DataTable.TableName with an Assign activity
- Manage the scope of your DataTable variable such that is no longer in scope when the external activity is encountered.
--Ryan0 -
Srikanth, you can also check the Adv. Workflow training material as there is a section on this issue.
Regards,
Wayne0 -
Thanks Wayne.
I totally forgot to look into the course notes.
Now, the workflow works perfectly.
Thanks
Srikanth0 -
This hung me up for a bit as it's very devil in the details and looks like the "default" specs for DataTable and DataSet have advanced if you use some older templates. Figured I would toss some screenshots from 2018 at this for how I got it working. 
1
Please sign in to leave a comment.
Comments
4 comments