printing tool issue error 400 and extended code -2147467261

763
1
05-04-2023 12:10 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.

{
 "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
1 Reply
FabioNeiraAlzate
New Contributor II

Arcgis server 10.7.1

0 Kudos