Using the Template Report Activity - how to
I am trying to run the sample work flow Using the Template Report Activity that I downloaded from the code gallery(essential 3.14 version). I named this workflow sample.xaml. I configured the following parameters in essential mananger by adding properties for this workflow.
MapServiceID = "2"
LayerName = The layer name ("ZipCodes")
ReportFileName = "MyReport.pdf"
GeocortexRESTUri = "http://localhost/Geocortex/Essentials/REST/"
ReportTemplateFile = "{RootUri}/Templates/code-galleryTemplateReportWorkflow_3_14/sample.xaml"
Somehow when i try to run this workflow, i got error:"Unhandled exception:' One or more errors occurred." in activity '1.55:Query Parcel Layer'. I did not modify any value in activity Query Parcel layer. How can I trouble shoot this error?
Thank you and regards,
-
Did you set the LayerName parameter to "ZipCodes" or to "The layer name ("ZipCodes")"? This property needs to just be the name of the layer that you are querying, so it should just be "ZipCodes", or whatever the actual name is of the layer in your site.
The where clause of the QueryParcelLayer activity also assumes that the field that is used in the query is named "ZIP", so if this is different for your service, you will need to update that activity to use the correct field name.
-Victoria
0 -
Also, please note that ReportTemplateFile requires the full path to the RPX (not XAML) report file.
ReportTemplateFile = "{RootPath}\\Templates\\code-galleryTemplateReportWorkflow_3_14\\sample_report.rpx"
Hope this helps,
-Alejandro
0 -
I finally got this to work by changing the following two properties in manager.
GeocortexRESTUri = "http://localhost/Geocortex/Essentials/REST/SITENAME/"
ReportTemplateFile = the physical path fo the file on the server where Geocortext site is hosted. "c:\.....", somehow "{RootUri}/Templates/code-galleryTemplateReportWorkflow_3_14/sample.xaml" does not work.Thank you!
0
Please sign in to leave a comment.
Comments
3 comments