<?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 Export map service returns error in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/export-map-service-returns-error/m-p/603277#M2878</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to export a static image of a map and all its layers, using the ArcGIS REST API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed the DevLabs example here, using Postman:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/labs/rest/export-a-static-image-of-a-map/#related-labs" title="https://developers.arcgis.com/labs/rest/export-a-static-image-of-a-map/#related-labs"&gt;Export a static image of a map | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the response returned after following steps 1-6 exactly as specified is:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "error": {&lt;BR /&gt; "code": 400,&lt;BR /&gt; "extendedCode": -2147467259,&lt;BR /&gt; "message": "Unable to complete operation.",&lt;BR /&gt; "details": [&lt;BR /&gt; "Expected property name; state : inPropertyValue; buffer : :null,\"Format\":null,\"Layout_Template\":null"&lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone advise what I am doing wrong, and why the example given does not work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----- UPDATE:&lt;/P&gt;&lt;P&gt;Figured out why the example doesnt work - In Postman the default Content-Type is form-data, it has to be x-www-form-urlencoded to work correctly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2018 08:11:42 GMT</pubDate>
    <dc:creator>SimonGibbs</dc:creator>
    <dc:date>2018-04-13T08:11:42Z</dc:date>
    <item>
      <title>Export map service returns error</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/export-map-service-returns-error/m-p/603277#M2878</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would like to export a static image of a map and all its layers, using the ArcGIS REST API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have followed the DevLabs example here, using Postman:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/labs/rest/export-a-static-image-of-a-map/#related-labs" title="https://developers.arcgis.com/labs/rest/export-a-static-image-of-a-map/#related-labs"&gt;Export a static image of a map | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, the response returned after following steps 1-6 exactly as specified is:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt; "error": {&lt;BR /&gt; "code": 400,&lt;BR /&gt; "extendedCode": -2147467259,&lt;BR /&gt; "message": "Unable to complete operation.",&lt;BR /&gt; "details": [&lt;BR /&gt; "Expected property name; state : inPropertyValue; buffer : :null,\"Format\":null,\"Layout_Template\":null"&lt;BR /&gt; ]&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone advise what I am doing wrong, and why the example given does not work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----- UPDATE:&lt;/P&gt;&lt;P&gt;Figured out why the example doesnt work - In Postman the default Content-Type is form-data, it has to be x-www-form-urlencoded to work correctly&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 08:11:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/export-map-service-returns-error/m-p/603277#M2878</guid>
      <dc:creator>SimonGibbs</dc:creator>
      <dc:date>2018-04-13T08:11:42Z</dc:date>
    </item>
  </channel>
</rss>

