1

When inspecting features in my featureclass, I am checking to see if a feature has an OID using the HasOID property. Even though the feature(s) clearly has an ID on visual inspection (via ArcMap), the property is returning false. When inspecting the value for the objectID it is reporting nothing. The featureclass is stored in an SDE instance on SQL Server. The ObjectID exists in the featureclass and is populated when viewing in ArcMap.

closed as off-topic by Vince, Fran Raga, BBG_GIS, LaughU, Ian Turton Jun 11 at 8:31

This question appears to be off-topic. The users who voted to close gave these specific reasons:

  • "When seeking help to debug/write/improve code always provide the desired behavior, a specific problem/error and the shortest code (as formatted text, not pictures) needed to reproduce it in the question body. Providing a clear problem statement and a code attempt helps others to help you." – Ian Turton
  • "This problem cannot or can no longer be reproduced. Changes to the system or to the asker's circumstances may have rendered the question obsolete, or the question does not include a procedure to enable potential answerers to reproduce the same symptoms. Such questions are off-topic as they are unlikely to help future readers, but editing them to include more details can lead to re-opening." – Vince, Fran Raga, BBG_GIS, LaughU
If this question can be reworded to fit the rules in the help center, please edit the question.

0

The ObjectID wasn't found in my feature, because when querying the featureclass prior to viewing the features, I removed the objectid from the subfields list. Added it back in and it worked fine.

Not the answer you're looking for? Browse other questions tagged or ask your own question.