Datastore exception: -- Critical Exception: Cannot aquire the lock.

Hi all,

Below error is thrown while trying to retrieve a newly added key from the datastore using Note that old key values are fetched without issues. Not sure whether the key got added properly. – Critical Exception: Cannot aquire the lock.

IS_DATASTORE table needs to be checked for any locks?

Please provide your suggestions to fix this.

The “Cannot acquire the lock” error usually means the entry you are trying to lock has already been locked. You can use the service to view all locks.

Try an explicit unlock ( if that helps. I guess you are the only user using the data store.

If using storage, it is a best practice to do an explizit unlock at least after put, update and get as most of these services might omit an implizit unlock.