<?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 Error 404 &amp;amp;quot;Invalid layer ID specified&amp;amp;quot; while adding a layer to a map in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-404-amp-quot-invalid-layer-id-specified-amp/m-p/88571#M8072</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting this error: "NetworkError: 404 Invalid layer ID specified. - URLTOSERVER/rest/services/CTPAA1/MapServer/export?dpi=96&amp;amp;transparent=true&amp;amp;format=png8&amp;amp;layers=show%3A&amp;amp;bbox=568849.9066358025%2C5057036%2C776368.0933641975%2C5156571&amp;amp;bboxSR=25832&amp;amp;imageSR=25832&amp;amp;size=1351%2C648&amp;amp;f=image" when I try to add an ArcGISDynamicMapServiceLayer to a map. I notice that the layers parameter points to "show:", but I can't understand why (if I use a real layer id, such as "layers=0", it works). This layer contains only raster data (TIF images) and it's finally added to the map, but I get the error when I load it for the first time and when I try to show/hide it. I don't have problems while adding other layers to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why this strange behavior?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcGIS Server 10 SP4 and 2.6 version of JavaScript library.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much for your support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Jun 2012 11:27:32 GMT</pubDate>
    <dc:creator>AntonioFittipaldi</dc:creator>
    <dc:date>2012-06-20T11:27:32Z</dc:date>
    <item>
      <title>Error 404 &amp;quot;Invalid layer ID specified&amp;quot; while adding a layer to a map</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-404-amp-quot-invalid-layer-id-specified-amp/m-p/88571#M8072</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm getting this error: "NetworkError: 404 Invalid layer ID specified. - URLTOSERVER/rest/services/CTPAA1/MapServer/export?dpi=96&amp;amp;transparent=true&amp;amp;format=png8&amp;amp;layers=show%3A&amp;amp;bbox=568849.9066358025%2C5057036%2C776368.0933641975%2C5156571&amp;amp;bboxSR=25832&amp;amp;imageSR=25832&amp;amp;size=1351%2C648&amp;amp;f=image" when I try to add an ArcGISDynamicMapServiceLayer to a map. I notice that the layers parameter points to "show:", but I can't understand why (if I use a real layer id, such as "layers=0", it works). This layer contains only raster data (TIF images) and it's finally added to the map, but I get the error when I load it for the first time and when I try to show/hide it. I don't have problems while adding other layers to the map.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why this strange behavior?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm using ArcGIS Server 10 SP4 and 2.6 version of JavaScript library.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you so much for your support.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2012 11:27:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/error-404-amp-quot-invalid-layer-id-specified-amp/m-p/88571#M8072</guid>
      <dc:creator>AntonioFittipaldi</dc:creator>
      <dc:date>2012-06-20T11:27:32Z</dc:date>
    </item>
  </channel>
</rss>

