Error Message: "FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry" I am not clear on what this means or how to fix it.

918
2
04-19-2017 12:09 PM
Highlighted
New Contributor

Trying to simply add a feature layer to a map but am receiving an error:

"FeatureLayer: unable to find field of type 'geometry' in the layer 'fields' list. If you are using a map service layer, features will not have geometry " 

The Url I am pointing to is a feature layer on a server.    I am not clear if this is because I just cannot use the layer due to CORS not enabled or another reason.  thanks in advance.

Reply
0 Kudos
2 Replies
Highlighted
New Contributor II

Did you manage to figure this one out? I am having this issue currently

Reply
0 Kudos
Highlighted
Esri Regular Contributor

It basically means that your might have layer in your map service where the shape field is invisible. Please check the field list in the layer resources and make sure the shape/geometry field is in there...

... if not then you need to republish the service with the shape field visible.

Reply
0 Kudos