<?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: 'This layer is unavailable' message in map, but nothing wrong with layer in ArcGIS Online Questions</title>
    <link>https://community.esri.com/t5/arcgis-online-questions/this-layer-is-unavailable-message-in-map-but/m-p/1240620#M49334</link>
    <description>&lt;P&gt;I noticed that this layer had become unresponsive in an arcade expression as well. After fighting with it for a while, I realized that the layer id had&amp;nbsp;&lt;EM&gt;changed from 0 to 1. &lt;/EM&gt;I changed the layer id to 1 in the arcade expression and it worked.&lt;/P&gt;&lt;P&gt;My guess is that this is why the layer became unresponsive in the map, even though it was still a perfectly fine feature layer. The map was "looking for" layer id 0, and the only layer in that map service now has a layer id of 1.&lt;/P&gt;</description>
    <pubDate>Tue, 13 Dec 2022 15:29:48 GMT</pubDate>
    <dc:creator>RandyMcGregor3</dc:creator>
    <dc:date>2022-12-13T15:29:48Z</dc:date>
    <item>
      <title>'This layer is unavailable' message in map, but nothing wrong with layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/this-layer-is-unavailable-message-in-map-but/m-p/1238366#M49210</link>
      <description>&lt;P&gt;I published over a layer. and now the maps the layer was in are giving me this error message:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="RandyMcGregor3_0-1670345653544.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/57769iC715A2722332D9FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="RandyMcGregor3_0-1670345653544.png" alt="RandyMcGregor3_0-1670345653544.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;There is nothing wrong with the layer. I can open it fine. If I click on the error message it takes me to the layer - and the layer opens perfectly fine. But the map has decided to reject it. I have to reload the layer (again, works fine), symbolize it, redo the labels, etc... I had to do it all from memory because the layer was completely dead - No information available.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are going to have to overwrite this hosted service with some regularity. Any idea what would cause this?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Randy McGregor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 06 Dec 2022 16:59:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/this-layer-is-unavailable-message-in-map-but/m-p/1238366#M49210</guid>
      <dc:creator>RandyMcGregor3</dc:creator>
      <dc:date>2022-12-06T16:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: 'This layer is unavailable' message in map, but nothing wrong with layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/this-layer-is-unavailable-message-in-map-but/m-p/1240620#M49334</link>
      <description>&lt;P&gt;I noticed that this layer had become unresponsive in an arcade expression as well. After fighting with it for a while, I realized that the layer id had&amp;nbsp;&lt;EM&gt;changed from 0 to 1. &lt;/EM&gt;I changed the layer id to 1 in the arcade expression and it worked.&lt;/P&gt;&lt;P&gt;My guess is that this is why the layer became unresponsive in the map, even though it was still a perfectly fine feature layer. The map was "looking for" layer id 0, and the only layer in that map service now has a layer id of 1.&lt;/P&gt;</description>
      <pubDate>Tue, 13 Dec 2022 15:29:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/this-layer-is-unavailable-message-in-map-but/m-p/1240620#M49334</guid>
      <dc:creator>RandyMcGregor3</dc:creator>
      <dc:date>2022-12-13T15:29:48Z</dc:date>
    </item>
    <item>
      <title>Re: 'This layer is unavailable' message in map, but nothing wrong with layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/this-layer-is-unavailable-message-in-map-but/m-p/1242661#M49445</link>
      <description>&lt;P&gt;I overwrote this layer and it is now unresponsive and has to be reloaded. If anyone knows why this is happening and how to prevent it from happening, I would very much appreciate it. This workflow requires periodic updating of a hosted feature layer without disruption.&lt;/P&gt;</description>
      <pubDate>Tue, 20 Dec 2022 13:55:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/this-layer-is-unavailable-message-in-map-but/m-p/1242661#M49445</guid>
      <dc:creator>RandyMcGregor3</dc:creator>
      <dc:date>2022-12-20T13:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: 'This layer is unavailable' message in map, but nothing wrong with layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/this-layer-is-unavailable-message-in-map-but/m-p/1256332#M50243</link>
      <description>&lt;P&gt;Hi.. i have the same problem... but dont understand you WHERE did you change "&lt;SPAN&gt;&amp;nbsp;the layer id to 1 in the arcade expression and it worked."&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;please help me if you can explain where to do this!!&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 08 Feb 2023 22:33:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/this-layer-is-unavailable-message-in-map-but/m-p/1256332#M50243</guid>
      <dc:creator>EmersonCardenasSachica</dc:creator>
      <dc:date>2023-02-08T22:33:54Z</dc:date>
    </item>
    <item>
      <title>Re: 'This layer is unavailable' message in map, but nothing wrong with layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/this-layer-is-unavailable-message-in-map-but/m-p/1256557#M50262</link>
      <description>&lt;P&gt;This thread explains how a feature layer can become unreadable to a map when overwritten. It has to do with the assignment of 'layer id' values,&amp;nbsp;&lt;EM&gt;which can change if you are not careful.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;A href="https://community.esri.com/t5/arcgis-online-questions/map-rejects-hosted-feature-layer-after-overwrite/m-p/1245001#M49584" target="_blank"&gt;https://community.esri.com/t5/arcgis-online-questions/map-rejects-hosted-feature-layer-after-overwrite/m-p/1245001#M49584&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 16:51:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/this-layer-is-unavailable-message-in-map-but/m-p/1256557#M50262</guid>
      <dc:creator>RandyMcGregor3</dc:creator>
      <dc:date>2023-02-09T16:51:10Z</dc:date>
    </item>
    <item>
      <title>Re: 'This layer is unavailable' message in map, but nothing wrong with layer</title>
      <link>https://community.esri.com/t5/arcgis-online-questions/this-layer-is-unavailable-message-in-map-but/m-p/1256565#M50264</link>
      <description>&lt;P&gt;This -&amp;nbsp;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;the layer id to 1 in the arcade expression and it worked." - pertains to data expressions created with Arcade, and is related. In the line below, the bold number is the layer id.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;var features = FeatureSetByPortalItem(arcgisPortal, '7b1fb95ab77f40bf8aa09c8b59045449', &lt;STRONG&gt;0&lt;/STRONG&gt;, ['Name', 'Count'], false);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(Explained here - &lt;A href="https://developers.arcgis.com/arcade/function-reference/portal_functions/#featuresetbyportalitem" target="_blank" rel="noopener"&gt;https://developers.arcgis.com/arcade/function-reference/portal_functions/#featuresetbyportalitem&lt;/A&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Because the feature layer's id changed after an overwrite&amp;nbsp; (unbeknownst to me), this failed. I had to change the "0" to "1" (the new layer id) and it worked, but this would not have been necessary if I had been careful about overwriting the feature layer in the first place.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Long story short, keep your layer ids from changing. This really does, frankly, seem like an unnecessary complication, but it's a fact of life.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Feb 2023 17:12:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-online-questions/this-layer-is-unavailable-message-in-map-but/m-p/1256565#M50264</guid>
      <dc:creator>RandyMcGregor3</dc:creator>
      <dc:date>2023-02-09T17:12:19Z</dc:date>
    </item>
  </channel>
</rss>

