<?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 ArcGis Esri Featured Layer Not loading, Failed to load layer in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-esri-featured-layer-not-loading-failed-to/m-p/1168069#M77148</link>
    <description>&lt;P&gt;Hi all i am facing error in arcgis esri feature layer Here is the code i also read the arcgis api documnetation but never found any solution about this error,&lt;/P&gt;&lt;PRE&gt;`import FeatureLayer from "@arcgis/core/layers/FeatureLayer"
import GraphicsLayer from "@arcgis/core/layers/GraphicsLayer"

export default class MyLayer {
  constructor(contourServiceUrl, apiToken) {
    this.layer = new FeatureLayer({
                      apiKey: apiToken,
                      url: contourServiceUrl,
                      minScale: 5000,
                      maxScale: 0,
                      labelingInfo: [{
                        // autocasts as new LabelClass()
                        symbol: {
                          type: "text",  // autocasts as new TextSymbol()
                          color: "white",
                          font: {  // autocast as new Font()
                            size: 8,
                            weight: "bold"
                          }
                        },
                        labelPlacement: "center-along",
                        labelExpressionInfo: {
                          expression: "$feature.contourelevation"
                        }
                      }]});

                      this.graphicLayer = new GraphicsLayer()
                   }
                  }`&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;PRE&gt;The Error&lt;/PRE&gt;&lt;DIV class=""&gt;&lt;P&gt;**[esri.layers.FeatureLayer] #load() Failed to load layer (title: 'New paltz ny contours', id: '180673c6dc2-layer-1')**&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 26 Apr 2022 19:21:10 GMT</pubDate>
    <dc:creator>abdulqayyum</dc:creator>
    <dc:date>2022-04-26T19:21:10Z</dc:date>
    <item>
      <title>ArcGis Esri Featured Layer Not loading, Failed to load layer</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-esri-featured-layer-not-loading-failed-to/m-p/1168069#M77148</link>
      <description>&lt;P&gt;Hi all i am facing error in arcgis esri feature layer Here is the code i also read the arcgis api documnetation but never found any solution about this error,&lt;/P&gt;&lt;PRE&gt;`import FeatureLayer from "@arcgis/core/layers/FeatureLayer"
import GraphicsLayer from "@arcgis/core/layers/GraphicsLayer"

export default class MyLayer {
  constructor(contourServiceUrl, apiToken) {
    this.layer = new FeatureLayer({
                      apiKey: apiToken,
                      url: contourServiceUrl,
                      minScale: 5000,
                      maxScale: 0,
                      labelingInfo: [{
                        // autocasts as new LabelClass()
                        symbol: {
                          type: "text",  // autocasts as new TextSymbol()
                          color: "white",
                          font: {  // autocast as new Font()
                            size: 8,
                            weight: "bold"
                          }
                        },
                        labelPlacement: "center-along",
                        labelExpressionInfo: {
                          expression: "$feature.contourelevation"
                        }
                      }]});

                      this.graphicLayer = new GraphicsLayer()
                   }
                  }`&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;PRE&gt;The Error&lt;/PRE&gt;&lt;DIV class=""&gt;&lt;P&gt;**[esri.layers.FeatureLayer] #load() Failed to load layer (title: 'New paltz ny contours', id: '180673c6dc2-layer-1')**&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 26 Apr 2022 19:21:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/arcgis-esri-featured-layer-not-loading-failed-to/m-p/1168069#M77148</guid>
      <dc:creator>abdulqayyum</dc:creator>
      <dc:date>2022-04-26T19:21:10Z</dc:date>
    </item>
  </channel>
</rss>

