<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Question Re: SAP Android SDK - Offline Data Store in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760768#M220388</link>
    <description>&lt;P&gt;Thank you! This was really helpful!&lt;/P&gt;&lt;P&gt;I have another question tough: I am trying to perform an update operation offline in the first place and then to sync my on premise system. When i call the Update... method on my online data provider i catch the http call on my ECC system through a breakpoint. Otherwise when i call the Update operation on my offline data provider and the run the sync operation nothing happens. Am I using this feature in a wrong way? &lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
    <pubDate>Fri, 08 Feb 2019 12:21:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-02-08T12:21:20Z</dc:date>
    <item>
      <title>SAP Android SDK - Offline Data Store</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaq-p/760766</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;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:&lt;/P&gt;
  &lt;P&gt;&lt;A href="https://developers.sap.com/hk/tutorials/cp-sdk-android-wizard-app-offline.html#db432312-0f49-4553-b39a-7794641e9229" target="test_blank"&gt;https://developers.sap.com/hk/tutorials/cp-sdk-android-wizard-app-offline.html#db432312-0f49-4553-b39a-7794641e9229&lt;/A&gt;&lt;/P&gt;
  &lt;P&gt;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. &lt;/P&gt;
  &lt;P&gt;Can anyone help?&lt;/P&gt;</description>
      <pubDate>Wed, 23 Jan 2019 15:31:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaq-p/760766</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-01-23T15:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Android SDK - Offline Data Store</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760767#M220387</link>
      <description>&lt;P&gt;The tutorial mentioned above does not include the steps necessary to perform an upload of the locally modified changes.&lt;/P&gt;&lt;P&gt;Here are a few more resources that do cover this topic.&lt;/P&gt;&lt;P&gt;&lt;A href="https://blogs.sap.com/2018/10/15/step-by-step-with-the-sap-cloud-platform-sdk-for-android-part-6-offline-odata/"&gt;https://blogs.sap.com/2018/10/15/step-by-step-with-the-sap-cloud-platform-sdk-for-android-part-6-offline-odata/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/SAP/cloud-sdk-android-offline-odata"&gt;https://github.com/SAP/cloud-sdk-android-offline-odata&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Dan van Leeuwen&lt;/P&gt;</description>
      <pubDate>Thu, 24 Jan 2019 00:31:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760767#M220387</guid>
      <dc:creator>Dan_vL</dc:creator>
      <dc:date>2019-01-24T00:31:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Android SDK - Offline Data Store</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760768#M220388</link>
      <description>&lt;P&gt;Thank you! This was really helpful!&lt;/P&gt;&lt;P&gt;I have another question tough: I am trying to perform an update operation offline in the first place and then to sync my on premise system. When i call the Update... method on my online data provider i catch the http call on my ECC system through a breakpoint. Otherwise when i call the Update operation on my offline data provider and the run the sync operation nothing happens. Am I using this feature in a wrong way? &lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 12:21:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760768#M220388</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-08T12:21:20Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Android SDK - Offline Data Store</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760769#M220389</link>
      <description>&lt;P&gt;Angelo - I wouldn't expect to see any network traffic when you do the local update.  That's why we call the feature "offline" OData.  But if the local update was successful  you should see network traffic when you do the sync, as long as the offlinedataprovider.upload() method is being called.  Did you put the code to update data to the backend as  Daniel suggested?  You can find this in &lt;A href="https://blogs.sap.com/2018/12/08/step-by-step-with-the-sap-cloud-platform-sdk-for-android-part-6a-syncing-an-offline-store/" target="test_blank"&gt;https://blogs.sap.com/2018/12/08/step-by-step-with-the-sap-cloud-platform-sdk-for-android-part-6a-syncing-an-offline-store/&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 13:53:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760769#M220389</guid>
      <dc:creator>BWomelsdorf</dc:creator>
      <dc:date>2019-02-08T13:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Android SDK - Offline Data Store</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760770#M220390</link>
      <description>&lt;P&gt;Hi Britt,&lt;/P&gt;&lt;P&gt;That's the point. I created a Function Importo on my ECC systen via the SEGW transaction. Then i generated the proxy classes and the method highlighted in screenshot 1 was generated. &lt;/P&gt;&lt;P&gt;This is the declaration of my online and offline service container and data provider&lt;/P&gt;&lt;P&gt;Online:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;myDataProvider = new OnlineODataProvider("ZTESTANGELOSRVEntities", serviceURL + "/" + connectionID , myOkHttpClient);
myServiceContainer = new ZTESTANGELOSRVEntities(myDataProvider);&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Offline:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;myOfflineDataProvider = new OfflineODataProvider(url, offParam, myOkHttpClient, null, delegate);

myOfflineServiceContainer = new ZTESTANGELOSRVEntities(myOfflineDataProvider);&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;When i call the updateLifnr method on my online service container everything is fine. On the other hand when i do the same on the offline service container and then perform a sync nothing happens and i get the following error.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;com.sap.cloud.mobile.odata.offline: [AsyncTask #4] [-10028] Error at URL position 1: "UpdateLifnr" is not an entity set in entity container "Z_TEST_ANGELO_SRV_Entities"&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;What am i doing wrong?&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/273614-screenshot-1.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 16:39:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760770#M220390</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-08T16:39:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Android SDK - Offline Data Store</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760771#M220391</link>
      <description>&lt;P&gt;Offline OData has some limitations which include function imports.  &lt;/P&gt;&lt;P&gt;The list of limitations is listed at&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/c2d571df73104f72b9f1b73e06c5609a/Latest/en-US/docs/user-guide/odata/Offline_OData_Version_Support_and_Limitations.html"&gt;Version Support and Limitations&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Feb 2019 18:47:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760771#M220391</guid>
      <dc:creator>Dan_vL</dc:creator>
      <dc:date>2019-02-08T18:47:31Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Android SDK - Offline Data Store</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760772#M220392</link>
      <description>&lt;P&gt;I managed to send updated data to the backend thank you. Now i have the same problem exposed in the original question: when the updated data is sent to the backend if i maually prevent any modifcation on backend data after the sync offline data still show the offline modifications. If I perform a  second download of the offline data the "et_entityset" table sent by the backend contains the correct data while the offline data store contains the old data with the offline modification that i stopped. What can be the cause of this phenomenon?&lt;/P&gt;&lt;P&gt;Thank you very much &lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 10:57:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760772#M220392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-11T10:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Android SDK - Offline Data Store</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760773#M220393</link>
      <description>&lt;P&gt;I'll try to make it more clear because maybe i'm not so good to express myself in english, I am sorry: &lt;/P&gt;&lt;P&gt;when i open the OfflineDataProvider for the first time a call to the backend is peerformed to retrieve the data. &lt;/P&gt;&lt;P&gt;Then if I call the UpdateEntity method on the Offline service container my offline data is successfully updated. &lt;/P&gt;&lt;P&gt;If then I perform a sync my locally updated data is correctly pushed to the backend.&lt;/P&gt;&lt;P&gt;But if i perform a sync but on the backend side something goes wrong and the backend data is not correctly updated, with the download operation after the upload i would expect to see my offline data restored to the ones i had before my update operation on the local data. So if:&lt;/P&gt;&lt;P&gt;Local Data = A ; Backend Data = A&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;P&gt;Local Data = B ; Backend Data = A&lt;/P&gt;&lt;P&gt;Sync&lt;/P&gt;&lt;P&gt;Upload: Local Data = B --&amp;gt; Backend Data = still A because something was wrong&lt;/P&gt;&lt;P&gt;Download: Backend Data = A --&amp;gt; Local Data = i would expect to restore it to A but it stays = B. &lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 16:53:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760773#M220393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-02-11T16:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAP Android SDK - Offline Data Store</title>
      <link>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760774#M220394</link>
      <description>&lt;P&gt;I would suggest examining the ErrorArchive after attempting to do an upload.  I assume it will contain an entry on the failed upload.&lt;/P&gt;&lt;P&gt;There are further details on this topic at&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.sap.com/tutorials/cp-sdk-android-wizard-app-offline.html#2d3ef7f3-7caa-4bce-903c-eec435c100c0"&gt;Step 5: Display ErrorArchive details&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/c2d571df73104f72b9f1b73e06c5609a/Latest/en-US/docs/user-guide/odata/Offline_OData_Handling_Errors_And_Conflicts.html#accessing-the-errorarchive"&gt;Accessing the ErrorArchive&lt;/A&gt;&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.sap.com/doc/c2d571df73104f72b9f1b73e06c5609a/Latest/en-US/docs/user-guide/odata/Offline_OData_Handling_Failed_Requests.html#reverting-an-error-state"&gt;Reverting an Error State&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;A href="https://blogs.sap.com/2018/12/09/step-by-step-with-the-sap-cloud-platform-sdk-for-android-part-6c-using-ilodata/"&gt;Step by Step with the SAP Cloud Platform SDK for Android — Part 6c — Using ILOData&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Dan van Leeuwen&lt;/P&gt;</description>
      <pubDate>Mon, 11 Feb 2019 20:29:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sap-android-sdk-offline-data-store/qaa-p/760774#M220394</guid>
      <dc:creator>Dan_vL</dc:creator>
      <dc:date>2019-02-11T20:29:32Z</dc:date>
    </item>
  </channel>
</rss>

