The web_map_as_json parameter sent to the print service from the Print Widget contains the drawn graphics (as a featureCollection) and is identical whether using the ArcGIS Server print service or the Esri default. This means it is probably not an issue with the Print Widget or Experience Builder, as it's sending the right info in the request to the print service.
When I use the ArcGIS Server print service and set the layout at MAP_ONLY, the graphics appear on the print. This suggests the print service is capable of printing the graphics.
When I use a custom template with the ArcGIS Server print service, the graphics don't appear. This suggests the issue could be something to do with the template.
It's not to do with the Pro version that the layout was saved with. I tried saving a copy of one of the templates used in the service, opening in the latest version of Pro and then saving over the top of the existing layout (pagx) file. This makes no difference as it still doesn't print the graphics.
Printing from Map Viewer (with graphics) also has the same issue. The graphics are printed with the MAP_ONLY option, but not with a custom template.
Published a completely new test print service with the latest version of Pro and the newly saved template above, but this also makes no difference.
Checked settings of the template in Pro and can see no settings relating to display of graphics.
Is anyone else able to print graphics from the Experience Builder print widget when using a custom template via an ArcGIS Server print service?
We are using ArcGIS Pro 3.6.2 and ArcGIS Server 11.5 (with all patches installed) all on a windows server.
It should work. However we won't know what exactly going on unless we take a look. Can you pls reach out to Esri Support and an analyst will help you identify the issue and resolve it.
Also 'custom print service' could mean two things (a) print service published from ArcGIS Pro by sharing Export Web Map gp tool with some layout templates or (b) an arcpy based print service where the backend business logic is tailored towards some custom workflows.
Thank you.
This is a standard ArcGIS Server print service published from ArcGIS Pro (with custom templates/layouts) and not a python "custom" print service.
The customer is raising with Esri support, but unfortunately our experience with raising issues like this is that it takes too long to resolve via that route. Hence we are asking here if anyone else has had similar and perhaps resolved the issue.
I think the layout maybe the issue.
Could you please check these in the layout?
Thanks,
A
Thanks for the suggestions...
The map frame isn't named WEBMAP_MAP_FRAME. I have just tested naming it that and republishing, but the same issue exists. The docs also suggest that naming the map frame like that is only required if there are multiple map frames. In this case there is only one map frame in the layout, so it shouldn't be required.
We're experiencing the exact same issue and have tried many different things with no success. I suspect it's also how the layout is configured due to some tests successfully displaying the drawn graphics at one point, but I unable to reproduce the same results. I'll be following up with an Esri technical resource (I hope soon) and I'll report back any progress we make.
We are also facing this issue, so far as @JohnFannon has discovered MAP_ONLY seems to work. I've tried ArcGIS Pro 3.5.5 and 3.6 with no luck so I don't think its version related.
Just as a follow up, this is currently with Esri UK support.
After some further testing on our part, we have found that (in our case at least) removing the dynamic text element containing service layer credits from the layout(s) and republishing the service results in graphics displaying on the prints - though we still have issues with text based graphics.
This looks very much like a bug and just waiting on Esri to confirm.
We are potentially experiencing a similar issue in Enterprise 10.9. When using the draw widget circle, square or triangle tool - it draws a small concentric shape in the middle. Then when we try to use the Print widget, there is an error trying to print.
Just had confirmation from Esri UK that the following bugs have been raised:
Defect #: BUG-000184015
Synopsis : ArcGIS Enterprise 11.5 Custom print layouts with service layer credits fail to print sketch layers when used in ArcGIS Online.
Defect #: BUG-000184021
Synopsis : ArcGIS Enterprise 11.5 custom print services fail to print text sketch elements when used in ArcGIS Online.
They have also stated that the issue could not be reproduced in a print service published to ArcGIS Enterprise v12, so that may be an option if you are willing/able to upgrade.