<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Error executing tool. Export Web Map Task : Web map has invalid JSON. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task) in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/error-executing-tool-export-web-map-task-web-map/m-p/1290562#M52289</link>
    <description>&lt;P&gt;I believe you need to add some layers to be printed as well as define some exportOptions. There's a good example of WebMapAsJson available in this article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-publish-a-custom-print-service-with-embedded-cre-000026010" target="_blank"&gt;https://support.esri.com/en-us/knowledge-base/how-to-publish-a-custom-print-service-with-embedded-cre-000026010&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the Json:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;{
   "mapOptions":{
      "showAttribution":true,
      "extent":{
         "xmin":-37570328.14272009,
         "ymin":-15552387.679177042,
         "xmax":37570328.14272009,
         "ymax":19552387.679177042,
         "spatialReference":{
            "wkt":"PROJCS[\"WGS_1984_Web_Mercator_Auxiliary_Sphere\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Mercator_Auxiliary_Sphere\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",0],PARAMETER[\"Standard_Parallel_1\",0.0],PARAMETER[\"Auxiliary_Sphere_Type\",0.0],UNIT[\"Meter\",1.0]]"
         }
      },
      "spatialReference":{
         "wkt":"PROJCS[\"WGS_1984_Web_Mercator_Auxiliary_Sphere\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Mercator_Auxiliary_Sphere\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",0],PARAMETER[\"Standard_Parallel_1\",0.0],PARAMETER[\"Auxiliary_Sphere_Type\",0.0],UNIT[\"Meter\",1.0]]"
      },
      "scale":147914381.897889
   },
   "operationalLayers":[
      {
         "id":"defaultBasemap",
         "title":"World Topographic Map",
         "opacity":1,
         "minScale":0,
         "maxScale":0,
         "url":"https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"
      }
   ],
   "exportOptions":{
      "outputSize":[
         670,
         500
      ],
      "dpi":96
   },
   "layoutOptions":{
      "titleText":"",
      "authorText":"",
      "copyrightText":"",
      "customTextElements":[
         {
            "Date":"12/9/2019, 9:17:04 AM"
         }
      ],
      "scaleBarOptions":{
         "metricUnit":"esriKilometers",
         "metricLabel":"km",
         "nonMetricUnit":"esriMiles",
         "nonMetricLabel":"mi"
      },
      "legendOptions":{
         "operationalLayers":[
            
         ]
      }
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 May 2023 08:43:52 GMT</pubDate>
    <dc:creator>A_Wyn_Jones</dc:creator>
    <dc:date>2023-05-18T08:43:52Z</dc:date>
    <item>
      <title>Error executing tool. Export Web Map Task : Web map has invalid JSON. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/error-executing-tool-export-web-map-task-web-map/m-p/1290541#M52287</link>
      <description>&lt;P&gt;Getting error when posting json data in Web Map as Json field.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unable to complete operation.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Error executing tool. Export Web Map Task : Web map has invalid JSON. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please see json data -&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"mapOptions": {&lt;BR /&gt;"extent": {&lt;BR /&gt;"xmin": -12933906.537,&lt;BR /&gt;"ymin": 3993856.886,&lt;BR /&gt;"xmax": -12933371.998,&lt;BR /&gt;"ymax": 3994375.189,&lt;BR /&gt;"spatialReference": {&lt;BR /&gt;"wkid": 102100&lt;BR /&gt;}&lt;BR /&gt;},&lt;BR /&gt;"scale": 1234.5,&lt;BR /&gt;"rotation": -45,&lt;BR /&gt;"spatialReference": {&lt;BR /&gt;"wkid": 102100&lt;BR /&gt;},&lt;BR /&gt;"time": [&lt;BR /&gt;1199145600000,&lt;BR /&gt;1230768000000&lt;BR /&gt;],&lt;BR /&gt;"background": {&lt;BR /&gt;"color": [51, 227, 200, 255]&lt;BR /&gt;}&lt;BR /&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I did validate Json&amp;nbsp;data and found no issues. This format is in sync with&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/exportwebmap-specification.htm" target="_blank"&gt;ExportWebMap specification—ArcGIS Server | Documentation for ArcGIS Enterprise&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 05:27:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/error-executing-tool-export-web-map-task-web-map/m-p/1290541#M52287</guid>
      <dc:creator>VinayV</dc:creator>
      <dc:date>2023-05-18T05:27:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error executing tool. Export Web Map Task : Web map has invalid JSON. Failed to execute (Export Web Map). Failed to execute (Export Web Map Task)</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/error-executing-tool-export-web-map-task-web-map/m-p/1290562#M52289</link>
      <description>&lt;P&gt;I believe you need to add some layers to be printed as well as define some exportOptions. There's a good example of WebMapAsJson available in this article:&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/how-to-publish-a-custom-print-service-with-embedded-cre-000026010" target="_blank"&gt;https://support.esri.com/en-us/knowledge-base/how-to-publish-a-custom-print-service-with-embedded-cre-000026010&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is the Json:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markdown"&gt;{
   "mapOptions":{
      "showAttribution":true,
      "extent":{
         "xmin":-37570328.14272009,
         "ymin":-15552387.679177042,
         "xmax":37570328.14272009,
         "ymax":19552387.679177042,
         "spatialReference":{
            "wkt":"PROJCS[\"WGS_1984_Web_Mercator_Auxiliary_Sphere\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Mercator_Auxiliary_Sphere\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",0],PARAMETER[\"Standard_Parallel_1\",0.0],PARAMETER[\"Auxiliary_Sphere_Type\",0.0],UNIT[\"Meter\",1.0]]"
         }
      },
      "spatialReference":{
         "wkt":"PROJCS[\"WGS_1984_Web_Mercator_Auxiliary_Sphere\",GEOGCS[\"GCS_WGS_1984\",DATUM[\"D_WGS_1984\",SPHEROID[\"WGS_1984\",6378137.0,298.257223563]],PRIMEM[\"Greenwich\",0.0],UNIT[\"Degree\",0.0174532925199433]],PROJECTION[\"Mercator_Auxiliary_Sphere\"],PARAMETER[\"False_Easting\",0.0],PARAMETER[\"False_Northing\",0.0],PARAMETER[\"Central_Meridian\",0],PARAMETER[\"Standard_Parallel_1\",0.0],PARAMETER[\"Auxiliary_Sphere_Type\",0.0],UNIT[\"Meter\",1.0]]"
      },
      "scale":147914381.897889
   },
   "operationalLayers":[
      {
         "id":"defaultBasemap",
         "title":"World Topographic Map",
         "opacity":1,
         "minScale":0,
         "maxScale":0,
         "url":"https://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"
      }
   ],
   "exportOptions":{
      "outputSize":[
         670,
         500
      ],
      "dpi":96
   },
   "layoutOptions":{
      "titleText":"",
      "authorText":"",
      "copyrightText":"",
      "customTextElements":[
         {
            "Date":"12/9/2019, 9:17:04 AM"
         }
      ],
      "scaleBarOptions":{
         "metricUnit":"esriKilometers",
         "metricLabel":"km",
         "nonMetricUnit":"esriMiles",
         "nonMetricLabel":"mi"
      },
      "legendOptions":{
         "operationalLayers":[
            
         ]
      }
   }
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 May 2023 08:43:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/error-executing-tool-export-web-map-task-web-map/m-p/1290562#M52289</guid>
      <dc:creator>A_Wyn_Jones</dc:creator>
      <dc:date>2023-05-18T08:43:52Z</dc:date>
    </item>
  </channel>
</rss>

