SubReport on Report (rpx)
Hello,
I have a report on a feature layer which works fine. I have placed a MainMap and some label controls.
When I click on a feature on the map, a pdf is correctly generated (map + attribute values).
When I place a SubReport control an error is generated: "Workflow error - Error running report".
When I set the Tag of the subreport control to the filename of subreport, I get the same error.
Am I missing something? Can anybody help me?
Regards, Paulus
-
Hi Paulus,
Does the report work if you run it from outside a workflow?
You should be able to navigate to the REST endpoint for the report, something like:
Click the "run" link and enter values that should return results.
If it works with the endpoint, but not in Workflow, then there is likely some problem with the way you are preparing the inputs for the "Report" workflow activity. If it does not run from the REST endpoint then there is some problem with your RPX file or the way things are arranged within it.
I was able to invoke the Low Income report for the Charlotte sample site from within a workflow, so it should be fairly simple to do.
Regards,
-Malcolm
0 -
Hello Malcolm,
Thanks for your advise.
When I try your suggestion I get the following error:
Specified datatable 'SubReport1' does not exist in the dataset.
It looks like I cannot add a dummy subreport without any linked data. For the test, I only use label controls with no datafield property.
Probably when I use linked data, the subreport will work. That's what I'm going to try next, thanks!
Regards, Paulus
0
Please sign in to leave a comment.
Comments
2 comments