<?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 dynamiclayers (Export Map) does not work in 10.8.1 in ArcGIS REST APIs and Services Questions</title>
    <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/dynamiclayers-export-map-does-not-work-in-10-8-1/m-p/1056488#M3840</link>
    <description>&lt;P&gt;We just migrated ArcGIS Enterprise from 10.5.1 to 10.8.1 and now all our Export Map code that uses dynamiclayers no longer work.&amp;nbsp; We get an http 400 error.&amp;nbsp; If dynamiclayers is not used, everything works fine.&amp;nbsp; We reviewed the changes in between versions and supposedly there was not impact whatsoever on the capabilities and attributes that we've been using.&amp;nbsp; We also went back to the ESRI documentation in&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/export-map.htm" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/export-map.htm &lt;/A&gt;and found that even their own example does not work (see&amp;nbsp;Example 5), it gives the exact same 400 error that we get.&lt;/P&gt;&lt;P&gt;This is the ESRI example that does not work:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/export?bbox=-183.78001472868405,16.300709121618663,-61.406854669684265,74.03030803096895&amp;amp;bboxSR=&amp;amp;layers=&amp;amp;layerDefs=&amp;amp;size=&amp;amp;imageSR=&amp;amp;format=png&amp;amp;transparent=false&amp;amp;dpi=&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;dynamicLayers=[{&amp;quot;id&amp;quot;:101,&amp;quot;source&amp;quot;:{&amp;quot;type&amp;quot;:&amp;quot;mapLayer&amp;quot;,&amp;quot;mapLayerId&amp;quot;:3},&amp;quot;drawingInfo&amp;quot;:{&amp;quot;renderer" target="_blank"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/export?bbox=-183.78001472868405,16.300709121618663,-61.406854669684265,74.03030803096895&amp;amp;bboxSR=&amp;amp;layers=&amp;amp;layerDefs=&amp;amp;size=&amp;amp;imageSR=&amp;amp;format=png&amp;amp;transparent=false&amp;amp;dpi=&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;dynamicLayers=[{"id":101,"source":{"type":"mapLayer","mapLayerId":3},"drawingInfo":{"renderer&lt;/A&gt;": {"type":"simple", "symbol": {"type":"esriSFS","style":"esriSFSSolid","color":[255,0,0,255],"outline":{"type":"esriSLS","style":"esriSLSSolid","color":[0,255,0,255],"width":1}}}}}]&amp;amp;gdbVersion=&amp;amp;f=html&lt;/P&gt;&lt;P&gt;This is our original code that we've used for years and now suddenly won't work:&lt;/P&gt;&lt;P&gt;&amp;amp;dynamicLayers=[{"id": 3,"source":{"type": "mapLayer","mapLayerId": 1},"definitionExpression": "MYID = Poly-600","drawingInfo": {"renderer":{"type": "simple","symbol":{"type" : "esriSFS", "style" : "esriSFSSolid", "color" : [166,36,0,255], "outline" : {"type" : "esriSLS", "style" : "esriSLSSolid", "color" : [110,110,110,255], "width" : 0.5}},"description": ""},"transparency": 75},"showLabels": true,},{"id": 0,"source":{"type": "mapLayer","mapLayerId": 0},"drawingInfo": {"transparency": 65},},{"id": 2,"source":{"type": "mapLayer","mapLayerId": 1},"drawingInfo":{"showLabels": false}}]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We also tried dynamiclayers on a 10.6.1 instance and it still works, but&amp;nbsp; simply couldn't get any proper result on 10.8.1.&amp;nbsp;&amp;nbsp;Would greatly appreciate any assistance.&amp;nbsp; Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 10 May 2021 23:25:05 GMT</pubDate>
    <dc:creator>DeveloperGtinteg</dc:creator>
    <dc:date>2021-05-10T23:25:05Z</dc:date>
    <item>
      <title>dynamiclayers (Export Map) does not work in 10.8.1</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/dynamiclayers-export-map-does-not-work-in-10-8-1/m-p/1056488#M3840</link>
      <description>&lt;P&gt;We just migrated ArcGIS Enterprise from 10.5.1 to 10.8.1 and now all our Export Map code that uses dynamiclayers no longer work.&amp;nbsp; We get an http 400 error.&amp;nbsp; If dynamiclayers is not used, everything works fine.&amp;nbsp; We reviewed the changes in between versions and supposedly there was not impact whatsoever on the capabilities and attributes that we've been using.&amp;nbsp; We also went back to the ESRI documentation in&amp;nbsp;&lt;A href="https://developers.arcgis.com/rest/services-reference/enterprise/export-map.htm" target="_blank"&gt;https://developers.arcgis.com/rest/services-reference/enterprise/export-map.htm &lt;/A&gt;and found that even their own example does not work (see&amp;nbsp;Example 5), it gives the exact same 400 error that we get.&lt;/P&gt;&lt;P&gt;This is the ESRI example that does not work:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/export?bbox=-183.78001472868405,16.300709121618663,-61.406854669684265,74.03030803096895&amp;amp;bboxSR=&amp;amp;layers=&amp;amp;layerDefs=&amp;amp;size=&amp;amp;imageSR=&amp;amp;format=png&amp;amp;transparent=false&amp;amp;dpi=&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;dynamicLayers=[{&amp;quot;id&amp;quot;:101,&amp;quot;source&amp;quot;:{&amp;quot;type&amp;quot;:&amp;quot;mapLayer&amp;quot;,&amp;quot;mapLayerId&amp;quot;:3},&amp;quot;drawingInfo&amp;quot;:{&amp;quot;renderer" target="_blank"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/export?bbox=-183.78001472868405,16.300709121618663,-61.406854669684265,74.03030803096895&amp;amp;bboxSR=&amp;amp;layers=&amp;amp;layerDefs=&amp;amp;size=&amp;amp;imageSR=&amp;amp;format=png&amp;amp;transparent=false&amp;amp;dpi=&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;dynamicLayers=[{"id":101,"source":{"type":"mapLayer","mapLayerId":3},"drawingInfo":{"renderer&lt;/A&gt;": {"type":"simple", "symbol": {"type":"esriSFS","style":"esriSFSSolid","color":[255,0,0,255],"outline":{"type":"esriSLS","style":"esriSLSSolid","color":[0,255,0,255],"width":1}}}}}]&amp;amp;gdbVersion=&amp;amp;f=html&lt;/P&gt;&lt;P&gt;This is our original code that we've used for years and now suddenly won't work:&lt;/P&gt;&lt;P&gt;&amp;amp;dynamicLayers=[{"id": 3,"source":{"type": "mapLayer","mapLayerId": 1},"definitionExpression": "MYID = Poly-600","drawingInfo": {"renderer":{"type": "simple","symbol":{"type" : "esriSFS", "style" : "esriSFSSolid", "color" : [166,36,0,255], "outline" : {"type" : "esriSLS", "style" : "esriSLSSolid", "color" : [110,110,110,255], "width" : 0.5}},"description": ""},"transparency": 75},"showLabels": true,},{"id": 0,"source":{"type": "mapLayer","mapLayerId": 0},"drawingInfo": {"transparency": 65},},{"id": 2,"source":{"type": "mapLayer","mapLayerId": 1},"drawingInfo":{"showLabels": false}}]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We also tried dynamiclayers on a 10.6.1 instance and it still works, but&amp;nbsp; simply couldn't get any proper result on 10.8.1.&amp;nbsp;&amp;nbsp;Would greatly appreciate any assistance.&amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 23:25:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/dynamiclayers-export-map-does-not-work-in-10-8-1/m-p/1056488#M3840</guid>
      <dc:creator>DeveloperGtinteg</dc:creator>
      <dc:date>2021-05-10T23:25:05Z</dc:date>
    </item>
    <item>
      <title>Re: dynamiclayers (Export Map) does not work in 10.8.1</title>
      <link>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/dynamiclayers-export-map-does-not-work-in-10-8-1/m-p/1057238#M3842</link>
      <description>&lt;P&gt;We resolved this issue.&amp;nbsp; Seems like 10.8.1 only accepts encoded URL.&amp;nbsp; So, for instance, to get the ESRI example in their Export Map specification of the REST API, you would now have to pass something like this:&lt;/P&gt;&lt;P&gt;&lt;A href="https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/export?bbox=-183.78001472868405,16.300709121618663,-61.406854669684265,74.03030803096895&amp;amp;bboxSR=&amp;amp;layers=&amp;amp;layerDefs=&amp;amp;size=&amp;amp;imageSR=&amp;amp;format=png&amp;amp;transparent=false&amp;amp;dpi=&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;dynamicLayers=%5B%7B%22id%22%3A101%2C%22source%22%3A%7B%22type%22%3A%22mapLayer%22%2C%22mapLayerId%22%3A3%7D%2C%22drawingInfo%22%3A%7B%22renderer%22%3A+%7B%22type%22%3A%22simple%22%2C+%22symbol%22%3A+%7B%22type%22%3A%22esriSFS%22%2C%22style%22%3A%22esriSFSSolid%22%2C%22color%22%3A%5B255%2C0%2C0%2C255%5D%2C%22outline%22%3A%7B%22type%22%3A%22esriSLS%22%2C%22style%22%3A%22esriSLSSolid%22%2C%22color%22%3A%5B0%2C255%2C0%2C255%5D%2C%22width%22%3A1%7D%7D%7D%7D%7D%5D&amp;amp;gdbVersion=&amp;amp;f=html" target="_blank"&gt;https://sampleserver6.arcgisonline.com/arcgis/rest/services/Census/MapServer/export?bbox=-183.78001472868405,16.300709121618663,-61.406854669684265,74.03030803096895&amp;amp;bboxSR=&amp;amp;layers=&amp;amp;layerDefs=&amp;amp;size=&amp;amp;imageSR=&amp;amp;format=png&amp;amp;transparent=false&amp;amp;dpi=&amp;amp;time=&amp;amp;layerTimeOptions=&amp;amp;dynamicLayers=%5B%7B%22id%22%3A101%2C%22source%22%3A%7B%22type%22%3A%22mapLayer%22%2C%22mapLayerId%22%3A3%7D%2C%22drawingInfo%22%3A%7B%22renderer%22%3A+%7B%22type%22%3A%22simple%22%2C+%22symbol%22%3A+%7B%22type%22%3A%22esriSFS%22%2C%22style%22%3A%22esriSFSSolid%22%2C%22color%22%3A%5B255%2C0%2C0%2C255%5D%2C%22outline%22%3A%7B%22type%22%3A%22esriSLS%22%2C%22style%22%3A%22esriSLSSolid%22%2C%22color%22%3A%5B0%2C255%2C0%2C255%5D%2C%22width%22%3A1%7D%7D%7D%7D%7D%5D&amp;amp;gdbVersion=&amp;amp;f=html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This tools can help encode the URL properly:&amp;nbsp;&lt;A href="https://ascii.cl/url-encoding.htm" target="_blank"&gt;https://ascii.cl/url-encoding.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 16:52:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-rest-apis-and-services-questions/dynamiclayers-export-map-does-not-work-in-10-8-1/m-p/1057238#M3842</guid>
      <dc:creator>DeveloperGtinteg</dc:creator>
      <dc:date>2021-05-12T16:52:42Z</dc:date>
    </item>
  </channel>
</rss>

