cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Hybrid Mobile App - What happens on a failed flush()?

former_member239819
Participant
0 Kudos

I have a Hybrid Mobile app developed SAP WEB IDE, SAP Cloud Platform using Hybrid App Toolkit to build through SAP Mobile Services.

Say for example I perform a flush() (Update Online Database with Offline oData) and there's a Network error.

What happens next?

The offline oData has been updated.

The online oData is not updated.

Are the requests still queued, to be flushed on the next flush()?

Accepted Solutions (1)

Accepted Solutions (1)

former_member322772
Active Participant

I think it depends on the error. If there was a network error (e.g. lost connection) then it should stay in the queue. If there is a sync error in the back-end because of conflicting data then it will go to the error archive and the app needs to manage that in some way.

In my experience, I can switch to airplane mode mid-flush, and next time I flush the changes still go to back-end.

Answers (0)