Export Web Map Task: Failed to create layer from WMS service

4247
17
06-13-2018 01:04 PM
jackcrawford
New Contributor

I'm using Export Web Map Task from a Java app. The request includes MapServer layer from my ArcGIS 10.5 server and a WMS layer from another domain. I'm not sure why ArcGIS cannot create a layer for the WMS request.

ArcGIS is logging the following:

<Msg time='2018-06-13T15:45:59,973' type='SEVERE' code='20010' target='Utilities/PrintingTools.GPServer' methodName='GPServerSync.CheckMessages' machine='WTGGIS1' process='19928' thread='23592' user='anonymous' >Error executing tool. Export Web Map Task : Layer "MC image": Failed to create layer from service at http://<some domain>.com:8080/geoserver/wms?&SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=Postgres%3Abuildings%2CPostgres%3Aparcels%2CPostgres%3Anonnfhl_floodplain&STYLES=&FORMAT=image%2Fpng&TRANSPARENT=true&HEIGHT=653&WIDTH=1448&SRS=EPSG%3A3857&BBOX=-8279556.363820421,4955018.621996873,-8279124.016879315,4955213.89471751.
Failed to execute (Export Web Map).
Failed to execute (Export Web Map Task).</Msg>

The WMS request itself succeeds when executed from a browser.

Attached is the Export Web Map Task Web_Map_as_json. The request specifies:

f=json

Format=PNG8

Layout_Template=MAP_ONLY

Help! Thanks.

0 Kudos
17 Replies
TanuHoque
Esri Regular Contributor

Thanks.

Any chance you can move to 10.6 - as you see it works with 10.6 out of the box print service (that is the one running on the sampleserver6 server).

I will investigate it further to find out what is causing it not to draw.

thanks.

0 Kudos
jackcrawford
New Contributor

We could upgrade however even the sampleserver6.arcgisonline.com is working only sporadically.

0 Kudos
TanuHoque
Esri Regular Contributor

that is weird.

would you mind installing a 10.6 server and apply the following patch and give it a shot off your machine.

ArcGIS Server 10.6 Printing and Script Tool Patch 

I was not able to repro this sporadic nature with the print service running off my machine.

quick question before you upgrade:

1) do you use out of the box print service or you use print service published from ArcMap using your own layout templates?

2) if you do not use the out of the box print service, then do you have portal installed?

0 Kudos
jackcrawford
New Contributor

Request is made from a Java app that is building ExportWebMap task JSON according to the specification here Export Web Map Task—ArcGIS REST API: Services Directory | ArcGIS for Developers  and sending it via HTTP client to ArcGIS server directly. We are not running portal.

0 Kudos
TanuHoque
Esri Regular Contributor

sorry, I guess wasn't clear enough with my first question.

the print service that you use in your JS API app - is that the one that comes with a server install? the print service that gets installed as part of server install, lives inside Utilities folder and the url looks something like this: http://machine/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task 

0 Kudos
jackcrawford
New Contributor

Sorry. I'm clear now. I believe this is out of the box install of the service but I'm checking with my admin to confirm.

0 Kudos
TanuHoque
Esri Regular Contributor

if it is the out of the box print service, then you should be good. you'd not need portal.

just install 10.6 server, start the out of the print service using Manager and give this a shot.

there are many other benefits you'd get from it such as vector tile layer support, supports for JS API smart mapping etc.

What's new in ArcGIS Server 10.6 - Improved Print Service 

0 Kudos
TanuHoque
Esri Regular Contributor

my bad!

what does the url, that you used to add that wms layer in your web app, look like?

does it look like: 

(a) http://<some domain>.com:8080/geoserver/wms, or

(b) http://<some domain>.com:8080/geoserver/wms?&SERVICE=WMS&REQUEST=GetMap&VERSION=1.1.1&LAYERS=Postgre... 

0 Kudos