Hi everyone,
I'm encountering a problem while using the "edit - deletes" keyword within an enterprise environment, and I was wondering if anyone else has experienced similar issues.
My goal is to delete several intersecting features in another feature class by using this keyword. Like this:
var intersecting_lines = Intersects($feature, line_fs);
var delete_features = [];
for (var line_feature in intersecting_lines) {
var delete_GlobalID = line_feature.globalID;
Push(delete_features, {'globalID': delete_GlobalID});
}
var results = {};
results['edit'] = [
{
'className': 'Line',
'deletes': delete_features,
},
];
// Return the results
return results;
However, as soon as the rule gets triggered, I receive an ERROR message stating "FIDs must not be negative."

I'm a bit confused by this error because when deleting features, it's expected that the corresponding FIDs would also be removed. So, I'm not sure why the error is indicating that the FIDs must not be negative.
Interestingly, the "adds" operations work perfectly fine, which adds to my confusion.
Has anyone else encountered this error before or have any insights on how to resolve it? I have double-checked that the FIDs I'm using are valid and not negative, so this error message is puzzling to me.
Any help or suggestions would be greatly appreciated. Thank you in advance for your assistance!
Best regards,
Stefan
PS: I am also trying to add and delete features at the same time on the line-class. Maybe the error lays in there?