I'm trying to publish a web layer, it's a single feature layer in my map. When I go to publish I get an error: "00241 Field Shape_Length cannot be used as display field" - well yes, I know that, but I'm not using Shape_Length, I'm using a text field called "Status". I've tried closing and reopening the map. I've tried changing to a different display field. Same error each time. I'm stumped.
Solved! Go to Solution.
Hey @RickLederer-Barnes ,
I know this is a super old post but I just came across this problem myself. I managed to fix the problem by going into the feature class properties and changed the Display field. Why Shape_Length is the default when it is know that this field cannot be used when publishing services is beyond me. If you change this to any other field you should be good to go.
I hope this helps. Sorry for the super late response.
~Dan
Hey @RickLederer-Barnes ,
I know this is a super old post but I just came across this problem myself. I managed to fix the problem by going into the feature class properties and changed the Display field. Why Shape_Length is the default when it is know that this field cannot be used when publishing services is beyond me. If you change this to any other field you should be good to go.
I hope this helps. Sorry for the super late response.
~Dan
Yes! It did help. Since the error is still common, I would call this timely--or timeless and not late at all.
Thanks Dan, I eventually figured out that was the problem. I am surprised that Shape_Length would be the default over OID, but at least it's an easy fix (once you know where to look)
https://community.esri.com/t5/arcgis-pro-ideas/make-display-field-default-to-objectid/idi-p/1350948 Give this Idea Kudos! It is to make the display field default to ObjectID instead of shape_length.