Skip to main content

SQL Query task - Cannot serialize the DataTable

Comments

9 comments

  • Permanently deleted user

    I managed to get this working by adding a AddToDataSet task under the SqlQuery task.

     

    0
  • Ryan Kelley

    Dan,

    You need to do a data table assign like so:

    With the Assign Activity: dataTable.TableName = variable

    The variable can be a string. Make sure you give it a name under Default. ex: "myTable"

    0
  • Permanently deleted user

    Thanks Ryan. That makes complete sense.

    My next thought is that this should never work if the data table name is not assigned. However, i created the workflow below which runs perfectly even through the data table name is not assigned.

    /customer/servlet/servlet.FileDownload?file=00P6000000e889qEAA

    Is it possible that assigning a name to the data table is done in the background as part of the AddToDataSet task?

    0
  • Permanently deleted user

    I am starting to figure out the sql query workflow activity and I really need a complete workflow example so I can parse out the values from the table and use them in the workflow.  Can anyone provide some simple workflow snippet of athe sqlquery and getting the results?

    J

    0
  • Permanently deleted user

    Hi Dan,

    How Can I set DataTableName ?

    As you know, using Assign activity, it does not allow us to set the property of Table name the DataTable.TableName level

     

    Thanks,

    Hamid

    0
  • Permanently deleted user

    Hi Hamid

    you  should be able to use in an Assign activity:

    myDataTable.DataTableName = "TheTableName"

    Regards

    Ralph

    0
  • Permanently deleted user

    Thanks

    but I got this Error :

    /customer/servlet/servlet.FileDownload?file=00P6000000e88POEAY

    0
  • Permanently deleted user

    Hamid,

    The correct property is "tablename". See https://support.geocortex.com/using-a-workflow-to-generate-a-multi-layer-report-with-map-1 for an example of how table names are set (screenshot below).

    /customer/servlet/servlet.FileDownload?file=00P6000000e88PTEAY

    Hope his helps,

    --Alejandro

    0
  • Permanently deleted user

    That will teach me to rely on my memory ;-)

    Ralph

    0

Please sign in to leave a comment.