Arcade. "Objects in this class cannot be updated outside an edit session"

395
1
04-20-2022 01:22 AM
EloyBonillaPerez
New Contributor II

Good morning,
I have an attribute rule (arcade) which copies data from one layer to another when some condition is met. I had to change the target layer to version it and since then I am getting the error "Objects in this class cannot be updated outside an edit session". I have found some topicks about this in python, but I need a way to work it out in arcade. The point seems to be to get the most recent instance of the table, but I have not been able to find how to do it. Any ideas?
Thanks a lot in advance

0 Kudos
1 Reply
KimGarbade
Occasional Contributor III

Sounds like the user connection you are using to try to edit the database doesn't have permission to edit.  You could try switching to a different user or granting edit permission to the current user (could also be you are trying to edit a private or ptotected version). If the database is branch versioned you need to edit through a feature service (but I think you would get a different error). 

0 Kudos