Alert throwing error Cannot serialize DataTable but Title and Text only strings
When I add an Alert to my workflow I am getting the following error:
Aborted Exception: 'Cannot serialize the DataTable. DataTable name is not set.'
The alert Title and Text are both set to "Test" so there is no DataTable.
Anybody ever seen an error like this before?
0
-
Apparently all I had to do was post this and the solution would become evident to me.
We use a software package named Elements from Novotx. They have a workflow activity named Tools_Database_GetDatatable that does not set the DataTable name.
The solution was to use an Assign activity and set the DataTable name.
For example, I used the Activity Tools_Database_GetDataTable to perform a Select. The ReturnTable property was set to a table variable I named QueryResults. So I needed an Assignment activity that set QueryResults.TableName = "Results". Now the Alert no longer gives an error.
Not sure why an alert using text would try to find the TableName of variable it is not using??0 -
This is a serialiation issue.
In most cases, you will have to explicitly set your DataTable to Nothing (or ensure it is out of scope) before using a client-side activity like an Alert.0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
2 kommentarer