@Version preventing the update

With the @Version annotation, the database detects that the value being stored by the current process is stale and prevents the update. How can I convey the message to user saying that your transaction is failed? How many ways I can do this in Appian?

OriginalPostID-246389

  Discussion posts and replies are publicly visible

Parents
  • @dastagirid You may handle the error gracefully by making use of the 'onError' in the a!writeToDataStoreEntity(). Or you may place an timeout exception on the Write to Data Store Entity Smart Service and generate a task to User notifying about the exception. But is there a guarantee that the write to data store fails only because of the stale value associated with the field that has @Version annotation? If you are looking for locking concept, search the forum posts and you will be able to find some creative approaches formulated by @stefanh.
Reply
  • @dastagirid You may handle the error gracefully by making use of the 'onError' in the a!writeToDataStoreEntity(). Or you may place an timeout exception on the Write to Data Store Entity Smart Service and generate a task to User notifying about the exception. But is there a guarantee that the write to data store fails only because of the stale value associated with the field that has @Version annotation? If you are looking for locking concept, search the forum posts and you will be able to find some creative approaches formulated by @stefanh.
Children
No Data