Skip to Content

Kapsel store flush/refresh doesn't clear local records

Aug 27, 2017 at 09:05 PM


avatar image


We are working on a hybrid offline application for sales order creation. We have been successful in posting batch requests using content-id against the offline store and flushing the request queue. The issue is that after refresh, we have duplicate records:
1) Created in the local store 2) The actual order .

I have a few doubts on our implementation :-
1) Is store.refresh supposed to match the order with the locally created record and delete it ?
2) Is auto deletion supported for batch with content-id ? Does the batch process method need to give a certain response for this deletion?
The backend has DELETE entity implemented.
3) We have a PI server in between gateway and ECC, hence we may not always get the response immediately.
4) Is it a good practice to perform a local DELETE request after a refresh ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

0 Answers