Export Web Map Task: Failed to Create layer from service (print widget tool)

179
2
12-08-2021 06:50 AM
LorraineFuller
New Contributor II

I am using the standard web app builder template, with the standard print widget. I don't use any developer tools.

Link to my web app: https://wahkiakum.maps.arcgis.com/apps/webappviewer/index.html?id=cdb4fce60d854694b10f7cff69d557db

 I added Hexagon Imagery Service to web app builder using the add data,URL, WMS, token tool. I shared the layer with everyone. The imagery is working great, I have it turned on by default when the web app loads. It is at the bottom of my layer list and is called 2020 Hexagon Imagery.

Problem: Recently, when trying to use the print widget with the imagery turned on the print widget shows this error:

LorraineFuller_5-1638976944053.png

 

Error executing tool. Export Web map Task: Failed to create layer from service at https://services.hxgncontent.com/streaming/wms.

Failed to execute (Export Web Map).

Failed to execute (Export Web Map Task).

LorraineFuller_0-1638974614082.png

 

When I turn off the 2020 Hexagon Imagery layer and use the print widget it create the pdf without any issues.

Here is a screenshot of my printer widget settings, I haven't modified any of them:

LorraineFuller_0-1638976807046.png

This is the full service URL: 

https://utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%...

 

Here are screenshots of the Hexagon layer information:

LorraineFuller_1-1638976870156.png

LorraineFuller_2-1638976879234.png

LorraineFuller_3-1638976890337.png

LorraineFuller_4-1638976899661.png

 

 

 

Could you help me figure out why the print widget has this error with the hexagon imagery and how to fix it?

Thank you!

0 Kudos
2 Replies
MichaelVolz
Esteemed Contributor

Does the server where ArcGIS Server is installed that is running the printing geoprocessing service have access to that image service URL?  My org has locked down internet access to servers, so certain URLs needed to be whitelisted for the AGS server so that all layers in web apps would print with the ESRI print widget.

0 Kudos
LorraineFuller
New Contributor II

I will ask my IT department and find out.

My imagery provider is also troubleshooting the issue and this is what he found out so far:

I’ve been doing some inspecting within your web map and it appears like the print function from WebMapBuilder is not sending thru the access_token during the print; thus it cannot fulfill the request.  I’m getting some headway searching for “arcgis online cannot print secure services”.  So we’ll see what I can find out!

Here is the JSON payload specifics on the Hexagon layer which were sent from the web map to the generic AGOL print services:

...

{

            "id": "wms_7506",

            "title": "2020 Hexagon Imagery",

            "opacity": 1,

            "minScale": 0,

            "maxScale": 0,

            "url": https://services.hxgncontent.com/streaming/wms,

            "type": "wms",

            "version": "1.1.1",

            "transparentBackground": true,

            "visibleLayers": [

                "HxGN_Imagery"

            ]

        },

...

 

There’s no Access Token parameter in there, so the print function can’t access that layer correctly. 

We need to find a way to append that access token thru to the print service – it appears like it can be done via ArcGIS Enterprise print utilities, but I haven’t found the documentation for ArcGIS Online – from most of the forums it seems like this was solved at some point in the past

0 Kudos