Hi Jasena,
Please make sure you are not committing the objects any where else(check events). If you are still facing this error you are recommended to user rollback activity it will prevent the objects from committing and rollback into previous state.
Hope this helps!