Hi,
I am currently experiencing an issue with a Feature Service when creating a large number of features.
I have an attribute rule on a field named UID, which calls a sequence to generate a unique identifier using the following expression:
'S' + NextSequenceValue('s100.seq_UID')
This works perfectly in both file geodatabases and enterprise geodatabases. However, when working with a branch-versioned enterprise geodatabase published as a Feature Service, the UID field is often empty immediately after calling CreateRow() and attempting to read the value from the returned feature:
var feature = featureClass.CreateRow(buffer);
var name = Convert.ToString(feature["UID"]);
The UID field does appear to be populated at some point, but it is not available in the returned feature object at the time I need it. Unfortunately, I require the UID value immediately within my code workflow.
Could you please advise why this behavior occurs in a branch-versioned Feature Service environment, and how I might implement a reliable solution?
Any suggestions would be greatly appreciated.
Best regards,
Jens Christiansen