Hoppa till huvudinnehållet

Serialization error inside the TemplateReport activity

Kommentarer

3 kommentarer

  • Permanently deleted user
    Hi Chris,

     

    Are you writing any script in the Report Template?

     

    Regards,

     

    Mohammad Ashraf
    0
  • Hilary Barr
    Was this issue ever resolved? I am experiencing the same error while working with bitmaps and template reports. 
    0
  • Permanently deleted user
    Hi all, 

     

    I would try to avoid sending bitmap and report data between the server and client.  It often causes serialization errors, but even it didn't, there's usually no need for the user to interact with that data at that point. Normally the user needs access to the download link for the completed report, but not the report data itself.  So sending the data back and forth would slow the workflow down anyways.

     

    The solution is usually to use variable scoping.
    • Move all activities that generate bitmaps, datatables, datasets (and anything that belongs in between them) together inside a ServerScope activity.  Typically the last two activities inside ServerScope will be TemplateReport and CreateTempFile.
    • Then select the ServerScope activity, and open the Variables pane.  Change the Scope property of any bitmap, datatable, or dataset type variables to the ServerScope.  Make sure you don't change the scope of the variable that holds the url string for the report
    • All client-side activities should go either before or after this ServerScope sequence.  "Client-side activities" are ones usually found in the "Common Client" and "Common Viewer" sections of your toolbox, and they usually have a "debug" checkbox in their properties panel.  The ServerScope activity will show you a warning icon if you try to put client-side activities in it, which will help you maintain this rule.
    0

Du måste logga in om du vill lämna en kommentar.