Mike Fechner
375 posts
Registered:
14 Sep 2016
22 May 2021
in reply to
Markus Grigoleit
Link to this post
It is expected that the DELETE request reads the record first. That's a FetchData request. We need to obtain the current values of the record so that it's available in validation etc.. The whole CUD (create, update, delete) operations rely on a before-buffer. And as RESTful does not provide the before buffer with the request, we need to built that from the current DB record while processing the request.
With the error 11913 - that's typically happening, when in ReceiveData (or another method) you are modifying a data-bound temp-table field. That will make the deleted record's before-buffer values appear different from the values's in the DB, thus the ProDataset will consider them as changed by another user.
You could try to change the value of the temp-table buffer's MERGE-BY-FIELD property (https://docs.progress.com/ru-RU/bundle/openedge-developer-studio-help/page/MERGE-BY-FIELD-attribute.html). This could be set in an SaveChanges override in your Data Access class.