Hi,
I am using the print widget to export the current map but get different results if I use the ArcGIS Online utility service compared to my own ArcGIS Server instance (I have tried both 10.6 and 10.7.1). The map contains a secured wmts. If I use https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task then the job executes sucessfully. When I swop the endpoint to my own ArcGIS Server print service the job fails. I can see from the logs:
Error executing tool. Export Web Map Task : Failed to create layer from service at https://xyz/xyz/xyz/wmts. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task)
I can see the request Web_Map_as_JSON={"operationalLayers":[{"type":"wmts","customLayerParameters":null,"customParameters":{"key":"XXXXXXXXXXXXXXXXXXXXXXXXXXX"} ....etc includes the key but wonder why the arcgis online utility seems successful in using it whilst ArcGIS Server seems to fail to access the layer.
Do I need to upgrade Server to 10.9 or do I need to look at other options such as a custom print task?
Any thoughts would be greatly appreciated.
Dave