Why is FeatureLayerView trying to execute on my non-spatial (Table) FeatureLayer for Esri JS 4.11?

3112
1
Jump to solution
06-13-2019 01:44 PM
DavidWilson3
Occasional Contributor

"[esri.views.2d.layers.FeatureLayerView2D] #resolve() Failed to resolve layer view" comes up in my console when I am simply creating a table FeatureLayer, after looking at documentation I would have assumed that the API would have known that it does not need to display graphics for this FeatureLayer because it has none. I am creating it as shown here in Esri documentation: 

// Non-spatial table in San Francisco incidents service.

const table = new FeatureLayer({

url: "https://sampleserver6.arcgisonline.com/arcgis/rest/services/SF311/FeatureServer/1"

});

0 Kudos
1 Solution

Accepted Solutions
ReneRubalcava
Frequent Contributor

Don't add it to the map, you can just query it directly. If you add it to the map, we try to draw it, but can't.

The error from the FeatureLayerView is

  1. message: "table feature layer can't be displayed"
  2. name: "featurelayerview:table-not-supported"

Support for this in some form will be coming in a future release.

View solution in original post

1 Reply
ReneRubalcava
Frequent Contributor

Don't add it to the map, you can just query it directly. If you add it to the map, we try to draw it, but can't.

The error from the FeatureLayerView is

  1. message: "table feature layer can't be displayed"
  2. name: "featurelayerview:table-not-supported"

Support for this in some form will be coming in a future release.