cancel
Showing results for 
Search instead for 
Did you mean: 

Remove failed requests in Offline Mobile Development Kit app

07-02-2025 10:21 AM
722 views 1 comments Go to solution
0 Likes
SAP Managed Tags
Labels
BTPmdkmobile services
Subscribe

Hi ,
I am currently developing an MDK application with Offline capabilities. For example, I can trigger a CreateEntity request which will create a request in backend. Once triggered, it saves locally and will be sent to backend on sync. But sometime the created entity might end up with error (may be made to fail due to business scenario). So, in that case the data will be still in local storage, which will anyway fail in subsequent syncs. Is there a way to remove those data if they fail from local storage, so that they will not be sent again in next syncs.

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

robinkuck
Product and Topic Expert
Product and Topic Expert

Hi @akhthaaralibadhusha,

Yes this is possible. For all failed requests during offline synchronization, a new entity will be added in the ErrorArchive entity set. If you execute a delete action on that specific ErrorArchive entity, the request which fails will be removed from the list of pending requests for the next offline synchronization. 

This is documented with sample implementation for our native SDKs, but is also applicable for MDK applications: https://help.sap.com/doc/f53c64b93e5140918d676b927a3cd65b/Cloud/en-US/docs-en/guides/features/offlin... 

Answers (0)