Skip to Content
0
Jul 12 at 03:06 PM

Revert ChangeSet in SAP MDK

247 Views

Hi,

I have an app in MDK that uses an Offline Store.

Due to some limitations in the backend, I need to make a list of UpdateEntities actions in a single $batch request. I achieved this using the ChangeSet action.

The problem that I have now is that if the service sends an error on the batch, the ChangeSet is left pending on the offline store, and it tries to send it again every time I sync the app, creating more errors and preventing the submission of new values.

I tried using the undo pending changes to the entities changed within the batch request but I get an error saying that “Nothing can be undone for the given entity.”.

How do I revert the changes made by a Change Set?

Thank you.

Best Regards,

Nuno Oliveira