Skip to main content

DictionaryToDataTable<String,Object> - is it asynchronous or synchronous ?

Comments

3 comments

  • Ryan Cooney
    The Dictionary To DataTable activity is synchronous. Also activities in a Sequence will always run synchronously regardless of whether individual activities are sync or async.

     

    Your workflow fails when you add the Alert because the Alert activity runs in the client/viewer application rather than on the server. This means that the workflow must save the state of all the variables currently in scope (serialization), unload the workflow, and transfer the saved state and the Alert instruction to the viewer. Once the viewer completes the Alert control is transferred back to the server where it attempts to rehydrate the state of the variables (deserialization). Objects like DataTables, Dictionaries and Bitmaps don't necessarily survive the serialization/deserialization process.

     

     

     

    I prefer to do debugging like this using the Log activity rather than with Alert. Since Log runs on the server it avoids introducing unexpected consequences of client/server communication.

     

    --Ryan
    0
  • Tom Neer
    Ryan your response needs to be added to the Knowledge Base. 
    0
  • Permanently deleted user
    Thanks Ryan for the great response, it makes sense now.
    0

Please sign in to leave a comment.