I have wrapped up a data collection project and am now looking at the reporting functions. The sample reports were decent and worked fine, including a map. However I wanted to change the format as well as adjust the map itself using my own template.
I found that I am unable to create a report with a map using $location or $shape. Neither an unmodified template or an otherwise empty document with "${location}" work.
Any ideas what could be causing the error?
An error occurred when rendering by the report engine. Failed to print map for ${location|mapSettings:"---------------------------------”:1000| size:600:600}. Error: Failed to print map: {"name":"request:server","message":"Error","details":{"url":"-------------------------------------","requestOptions":{"query":{"f":"json","returnExtentOnly":true,"returnCountOnly":true,"objectIds":"66","spatialRel":"esriSpatialRelIntersects"},"responseType":"json"},"ssl":false,"httpStatus":400,"messages":["This operation is not supported."],"raw":{"code":400,"message":"","details":["This operation is not supported."]}}}
Solved! Go to Solution.
I remembered that I recently turned "Enable Sync" on as part of a recent tweak to the form.
After I turned sync off the map appears in the reports as expected.
I remembered that I recently turned "Enable Sync" on as part of a recent tweak to the form.
After I turned sync off the map appears in the reports as expected.
Hi Henry,
Where in the form did you turn on 'Enable sync'?
I'm running across a similar issue this morning where I'm unable to print off any reports.
Thanks.
Hi David,
This isn't a setting in the form, it's in the hosted feature layer used by the form. You should be able to find it in your ArcGIS Online content in a folder "Survey-..." This will look familiar if you are used to working with hosted feature layers.
Hi Henry,
Thanks for your suggestion. Just tried this and no success, unfortunately. It must be something to do with the batch report option as when the report is printed on an 'individual feature' the output is fine.
Cheers, David.