Add Feature Activity and ObjectiDs
I'm using the Add Feature activity in a workflow to add features to a point layer. The feature is added just fine, but I've noticed that the OBJECTIDs are not sequential. In fact, the newest record is sometimes even added somewhere in the "middle" (if sorting on OBJECTID). Is this normal behavior? I'm accustomed to the OBJECTID being the next number in the sequence. If it should not be doing this, any ideas why it is skipping around when assigning the OBJECTID?
Thank you,
Stephanie
0
-
Hey Stephanie,
I looked on our layers that are being edited through Geocortex HTML Viewer. They are non-versioned sde feature classes.
I am also seeing the behaviour you mentioned. One one layer, the ObjectIDs seem to be increasing by 400 for each feature.
This doesn't answer your question, but tells you I am seeing the same thing.
Carmen0 -
Thank you, Carmen! I'm relieved to know it's not just us. I do find the non-sequential OBJECTIDs a bit disturbing though...I'm so used to that field also offering some sense of chronological order. 0 -
Hi Carmen and Stephanie,
The Add Features activity just sends a request to your ArcGIS server REST endpoint using the applyEdits method. Even if you try to specify which ObjectIds to use, ArcGIS Server will ignore the instructions and handle assigning ObjectIds itself.
Carmen's observation is answered hy Esri here (http://support.esri.com/technical-article/000012312) , but I'm not certain about Stephanie's. It might be something that you would want to test manually on the ArcGIS REST endpoint or ask Esri about.
Hope that helps,
Amanda0 -
Oh, so just reading that article the maximum size of objectID is 2,147,483,648 , and so far in my test workflow my IDs are already up to 20,000 with only about 67 features!! The intention of my site is to collect data from staff accross the state (ie about 400 users) so given I have conusumed so many IDs already it wont take long to hit the 2,147,483,648 mark. Should I be utilising some alternative to ArcSDE geodatabase? 0 -
Hi Justin,
I did some looking into your question, but couldn't find an answer on the Esri KBA. I'd suggest reaching out to their support team for a recommendation on that.
Thanks,
Danny0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
5 kommentarer