Zum Hauptinhalt gehen

Cannot serialize the Datatable. The Datatable name is not set

Kommentare

4 Kommentare

  • Ryan Cooney
    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.
    The first option is the easy/lazy way. The second option is usually much better because it is more efficient.

     

    --Ryan
    0
  • Permanently deleted user
    Srikanth,  you can also check the Adv. Workflow training material as there is a section on this issue.

     

    Regards,

     

    Wayne
    0
  • Srikanth Pilli
    Thanks Wayne.

     

    I totally forgot to look into the course notes.

     

    Now, the workflow works perfectly.

     

    Thanks

     

    Srikanth
    0
  • Permanently deleted user
    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.

     

    User-added imageUser-added image

     

     
    1

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.