Execution of report containing a subreport with a map fails when called from the Report Workflow activity
I have created a report with a subreport containing a mainmap control. When calling this report from the Silverlight Viewer everythings works as expected. When calling the main report from the workflow activity "report", the executuion fails. In the logfile I get a "Object reference not set to an instance of an object." - I have tracked down the issue being related to the Mainmap control in the subreport.
Is their a limitation using this activity with reports containing subreports? As I see it I need a subreport in order to use the mainmap control(?)
Thanks,
Sune
-
Hi Sune,
You need to create an image for the mainmap control and add it to the datatable for the sub report.
if you need similar example, see the code gallery for "Using a Workflow to Generate a Multi-Layer Report with Map " -Using a Workflow to Generate a Multi-Layer Report with Map
regards,
Edmond
0 -
So I guess this means I cannot use the more simple "Report" activity but need to use the "Template report" activity?
Best regards
0 -
Hi Sune,
You can use the simple Report activity. You would only need to use the TemplateReport activity if you were also displaying data from multiple layers in one report.
I've put together a very simple workflow that will run against the Charlotte sample site.(https://support.geocortex.com/Data/Sites/1/media/forumfiles/mainmapreport.zip) You can download it here. The mapMainReport was added to the Zip Codes layer.
-Victoria
0 -
Hi Victoria,
I have the same issue as Sune. I have tried your example with the Charlotte site and it worked. But when I tried to modify the workflow for my site and layer I got an workflow error. When calling this report from the Silverlight Viewer everythings works as expected.
Are maybe some additional configurations needs to do?
Thanks,
Khalid
0 -
Hi Khalid,
Is the only change you made to the workflow? Can you post you modified workflow and report files so we can try to troubleshoot what the problem might be? If you take the subreport out of the main report, does it run from the workflow?
-Victoria
0
Please sign in to leave a comment.
Comments
5 comments