My layer looks like this:
Drawing Info:
Renderer:Unique Value Renderer:
Field 1: BLPU_CLASS
Field 2: null
Field 3: null
Field Delimiter: ,
Default Symbol: N/A
Default Label: null
UniqueValueInfos:
- Value: CM03
Label: Hospital
Description:
Symbol:
- Value: CX01
Label: Police Station
Description:
Symbol:
- Value: CX02
Label: Fire Station
Description:
Symbol:
Transparency: 0
Labeling Info:
When using the feature layer like so:
var layer = new FeatureLayer({
url: "https://.../arcgis/rest/services/External_Maps/All_Data_Points/MapServer/6",
title: "...",
visible: false
});
I get this error in my console:
[esri.layers.FeatureLayer] [outFields] Invalid field: BLPU_CLASS
This occurs for any layer like above, with multiple symbol types on the layer. They appear in the layerlist but nothing is shown when I toggle the layer in question. Layers that only have one symbol type work fine as intended.