Select to view content in your preferred language

printing tool issue error 400

923
3
05-04-2023 12:42 PM
FabioNeiraAlzate
New Contributor II

Hello everyone 

I'm have a issue using the "printing tools" tool and exporting a web map with an arcgis online map base in my sites of linux in arcgis server 10.7.1 stand alone.

I have requested technical support from ESRI and it is not yet known why it generates the following error:

{
 "error": {
  "code": 400,
  "extendedCode": -2147467261,
  "message": "Unable to complete operation.",
  "details": [
   "Error executing tool. Export Web Map Task : Failed to create layer from service at https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer.\nFailed to execute (Export Web Map).\nFailed to execute (Export Web Map Task)."
  ]
 }
}
this is the json request
 
{"mapOptions":{"showAttribution":true,"extent":{"xmin":-8415451.698050573,"ymin":694906.2940994969,"xmax":-8415119.119653983,"ymax":695106.2940994969},"spatialReference":{"wkid":102100,"latestWkid":3857}},"operationalLayers":[{"id":"bg","title":"bg","opacity":1,"minScale":0,"maxScale":0,"url":"https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"},{"id":"map_graphics","opacity":1,"minScale":0,"maxScale":0,"featureCollection":{"layers":[{"layerDefinition":{"name":"polylineLayer","geometryType":"esriGeometryPolyline"},"featureSet":{"geometryType":"esriGeometryPolyline","features":[{"geometry":{"paths":[[[-8415351.698050573,695006.2940994969],[-8415219.119653983,695015.8478744875],[-8415216.1343992,694953.737278673],[-8415348.712795785,694950.1556804749]]]},"symbol":{"color":[0,87,164,100],"width":3.0,"type":"esriSLS","style":"esriSLSSolid"}}]}}]}}],"exportOptions":{"outputSize":[1028,644],"dpi":96}}
 

Format PNG8

Layout Template MAP_ONLY

I think it is possible some blocking by the network or antivirus to url with external sources to the sites that are in linux but I don't know how to do said verification.

 

 

0 Kudos
3 Replies
Scott_Tansley
MVP Regular Contributor

You may need some help from your network team, but I'd suggest you have a forward proxy that either needs rules to allow your server to go to the internet and/or you need to tell your ArcGIS Server that there is a forward proxy it needs to communicate via:

https://enterprise.arcgis.com/en/server/10.7/deploy/linux/using-a-forward-proxy-server-with-arcgis-s...

 

Scott Tansley
https://www.linkedin.com/in/scotttansley/
FabioNeiraAlzate
New Contributor II

Hello Scott

The documentation shows how it would be with an already federated environment, I would like to know what it would be like for an arcgis server stand alone. What variations would it have?

Thanks

0 Kudos
Scott_Tansley
MVP Regular Contributor

They're the same parameters for if it's federated or not. 

Yes, the example includes portal.domain.com, but anything that is internal to your organisation that will not need proxying would need to be listed there.

Scott Tansley
https://www.linkedin.com/in/scotttansley/
0 Kudos