Hello,
I am having trouble understanding the behavior of the printing services with custom report template support released with 11.2
I published a printing service with a layout template (pagx), a report file (rptx) and a report template (rptt). The report is intended to work with single features, i.e., a definition expression is set on the feature layer that serves as the data source for the report.
Using the report template, the field names of the data source have to be specified in the reportOptions to show up in the report. When i execute a print task with a layout template and a report template set, the tool works as intended, I get a two-page pdf with a map and the report for the single selected feature.
When I only specify a report template and set the layout template to MAP_ONLY or nothing, the tool should return a report without map (see https://developers.arcgis.com/javascript/latest/api-reference/esri-rest-support-PrintTemplate.html#report). The service however returns the local path of the pdf on the arcgis server
\\arcgisserver\\directories\\arcgisjobs\\reports\\reporttool_gpserver\\j9300d8c917704b83ae6978b21f3c359e\\scratch\\2a7f372c-b44a-11ee-9509-5c80b6f38693.pdf
When I look into this folder, the pdf is already deleted. The arcgisoutput folder of this service is also empty.
Another issue is that we would ideally use the report file (rptx) instead of the template (rptt), so that we don't have to specify the field names in the request. Using the rptx in the print service, the tool takes forever to complete and eventually times out. During this time we get a lot of requests on the specified feature service and the pdf in the scratch folder of the job get very large, so I can only assume that the definition expression on the feature service is ignored in this case.
Anyone else tried this and experiences the same or can help?