Object is already deleted
No edit summary
(Automatically adding template at the end of the page.)
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
If you get the error message "Object is already deleted" in the client or in logs, your EAL are trying to delete an object that has already been deleted.
If you get the error message <code>"Object is already deleted"</code> in the client or in logs, your EAL is trying to delete an object that has already been deleted.


How can one even try to delete an deleted object? An object in an ECO-space is not removed from the ECO-space until it's saved. Until then the object is still there and can be accessed though an earlier obtained reference.
How can one even try to delete a deleted object? An object in an ECO space is not removed from the ECO space until it's saved. Until then, the object is still there and can be accessed through an earlier obtained reference.


Do something like this to avoid this situation
Do something like this to avoid such a situation:
  object.existing.whenTrue(object.delete)
  object.existing.whenTrue(object.delete)
See also: [[OCLOperators existing]]
[[Category:OCL]]
{{Edited|July|12|2024}}

Latest revision as of 15:44, 10 February 2024

If you get the error message "Object is already deleted" in the client or in logs, your EAL is trying to delete an object that has already been deleted.

How can one even try to delete a deleted object? An object in an ECO space is not removed from the ECO space until it's saved. Until then, the object is still there and can be accessed through an earlier obtained reference.

Do something like this to avoid such a situation:

object.existing.whenTrue(object.delete)

See also: OCLOperators existing

This page was edited 98 days ago on 02/10/2024. What links here