cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

I'm trying to enable offline OData in an Android Application. I created the application via the creation wizard in Android Studio and everything worked fine with the online OData. Then I followed this guide:

https://developers.sap.com/hk/tutorials/cp-sdk-android-wizard-app-offline.html#db432312-0f49-4553-b3...

but I encounter this problem: on the first launch the offline data store in created according to the backend data, nevertheless If I try to edit a record and then closing the app, when i open it again the edited record is still there even if there was no change on the backend data, like the app is not actually refreshing the offline store but just showing a saved copy of it.

Can anyone help?

0 Likes
View Entire Topic
Dan_vL
Product and Topic Expert
Product and Topic Expert
0 Likes

I would suggest examining the ErrorArchive after attempting to do an upload. I assume it will contain an entry on the failed upload.

There are further details on this topic at

Step 5: Display ErrorArchive details

and

Accessing the ErrorArchive

If you wish to discard the local change that is failing to be synced to the backend, the following topics describe how to do this.

Reverting an Error State

It is also possible to try this out using ILOData (an interactive tool used to issue OData commands in a console). This is described in the following link.
Step by Step with the SAP Cloud Platform SDK for Android — Part 6c — Using ILOData

Hope that helps,

Dan van Leeuwen