<?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: MDK Client Initial load of data sync error in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557924#M4708564</link>
    <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;sopizaken&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;thanks for your attachment. But there is no response in it. Please  check Log Message Header and Message Body  option in the Mobile Network Trace page.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2030524-networktrace.png" /&gt;&lt;/P&gt;&lt;P&gt;Please capture it again and attach it.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
    <pubDate>Fri, 11 Mar 2022 05:20:57 GMT</pubDate>
    <dc:creator>bing_fang</dc:creator>
    <dc:date>2022-03-11T05:20:57Z</dc:date>
    <item>
      <title>MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaq-p/12557913</link>
      <description>&lt;P&gt;Hello experts,&lt;/P&gt;
  &lt;P&gt;We have created an mdk project and connected it to our backend with thousands of data. When we deployed the app in Mobile Services Client, we are encountering a sync error after a couple of minutes (gateway timeout error) because of the bulk data:&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2025522-sync-error.png" /&gt;&lt;/P&gt;
  &lt;P&gt;Would you know how to load big data like this? Appreciate any inputs you may have.&lt;/P&gt;
  &lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 08:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaq-p/12557913</guid>
      <dc:creator>sopizaken</dc:creator>
      <dc:date>2022-02-25T08:49:18Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557914#M4708554</link>
      <description>&lt;P&gt;How many records are you expecting in the EquipmentDataSet?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 19:51:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557914#M4708554</guid>
      <dc:creator>bill_froelich</dc:creator>
      <dc:date>2022-02-25T19:51:52Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557915#M4708555</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;bill.froelich&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Around 50,000 records&lt;/P&gt;</description>
      <pubDate>Sat, 26 Feb 2022 15:51:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557915#M4708555</guid>
      <dc:creator>sopizaken</dc:creator>
      <dc:date>2022-02-26T15:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557916#M4708556</link>
      <description>&lt;P&gt;I would suggest checking the logs of the backend odata server.  Also check the Mobile Services logs to see if there is anything more that might be helpful.  It also looks like there is more to the MDK Client error that might also be helpful so I would suggest checking the MDK client log as well.&lt;/P&gt;&lt;P&gt;I have loaded much more data than that into offline MDK apps so there should be no issue with loading that much data.  Other than the time it might take.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 05:02:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557916#M4708556</guid>
      <dc:creator>bill_froelich</dc:creator>
      <dc:date>2022-02-28T05:02:40Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557917#M4708557</link>
      <description>&lt;P&gt;Hi Bill,&lt;/P&gt;&lt;P&gt;Thank you for your response. May I know how you implemented the big bulk of data? Did you just load the service without any filters or increased some timeout sessions in the backend?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 07:50:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557917#M4708557</guid>
      <dc:creator>sopizaken</dc:creator>
      <dc:date>2022-02-28T07:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557918#M4708558</link>
      <description>&lt;P&gt;In my cases I just call the service without any filters to retrieve all the records.  I would recommend starting with checking the service logs to see if there are any errors.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 17:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557918#M4708558</guid>
      <dc:creator>bill_froelich</dc:creator>
      <dc:date>2022-02-28T17:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557919#M4708559</link>
      <description>&lt;P&gt;According to the error message, it looks like the 504 code is from the backend server. You can use pagination mechanism to return the big data to avoid wait for long time without data.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 02:08:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557919#M4708559</guid>
      <dc:creator>bing_fang</dc:creator>
      <dc:date>2022-03-11T02:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557920#M4708560</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;bing.fang&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;I have tried to use $top and $skip in the queryoptions on InitializeOffline.action, but it is not working. It always returns a single record, regardless of the value assigned to $top, e.g. $top=5 returns 1, $top=100 still returns 1 record. But in gateway client, i can get the correct number of records when i try to use the $top. Would you know how to fix this issue?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 03:14:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557920#M4708560</guid>
      <dc:creator>sopizaken</dc:creator>
      <dc:date>2022-03-11T03:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557921#M4708561</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;bill.froelich&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;The only error in the logs is the same as above, its a timeout error.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 03:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557921#M4708561</guid>
      <dc:creator>sopizaken</dc:creator>
      <dc:date>2022-03-11T03:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557922#M4708562</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;sopizaken&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;I am a little confused. I guess that after you adding $top and $skip, there is no  504 issue and this issue is that the data downloaded is not correct. &lt;/P&gt;&lt;P&gt;About 504 issue. I mean that your backend server need support pagination mechanism. For example. If there  are too many records for Entity Customers.  When accessing /Customers, the response only return a part of data and add a next link in the end of the body. Then mobile server will continue to get the content of next page until no next link in the response body. The mobile service will send many requests to fetch all content.&lt;/P&gt;&lt;P&gt;About you said there is only a record after add $top and $skip.  Please capture the network trace in the Mobile service's cockpit and attach the network trace file which is very useful to check the root cause.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Mar 2022 03:37:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557922#M4708562</guid>
      <dc:creator>bing_fang</dc:creator>
      <dc:date>2022-03-11T03:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557923#M4708563</link>
      <description>&lt;P&gt;&lt;A href="https://answers.sap.com/storage/temp/2032496-tracelog.txt" data-attachment="2032496"&gt;tracelog.txt&lt;/A&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;bing.fang&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;"&lt;/EM&gt;&lt;EM&gt;I guess that after you adding $top and $skip, there is no 504 issue and this issue is that the data downloaded is not correct." &lt;/EM&gt;- yes this is correct,&lt;/P&gt;&lt;P&gt;Regarding the 504 issue, our backend is already supporting the pagination mechanism. That's why when we run the top and skip in gateway client, it is returning the correct number of records.&lt;/P&gt;&lt;P&gt;I have attached the network trace for the single record returned after adding $top=10 and $skip=1.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 04:02:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557923#M4708563</guid>
      <dc:creator>sopizaken</dc:creator>
      <dc:date>2022-03-11T04:02:02Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557924#M4708564</link>
      <description>&lt;P&gt;Hi &lt;SPAN class="mention-scrubbed"&gt;sopizaken&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;thanks for your attachment. But there is no response in it. Please  check Log Message Header and Message Body  option in the Mobile Network Trace page.&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2030524-networktrace.png" /&gt;&lt;/P&gt;&lt;P&gt;Please capture it again and attach it.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 05:20:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557924#M4708564</guid>
      <dc:creator>bing_fang</dc:creator>
      <dc:date>2022-03-11T05:20:57Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557925#M4708565</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;bing.fang&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for this, now i know where to see the retrieved data. I rerun the trace and saw that it is correctly returning the number of records. However in the display of the listpicker, there's still only one record displayed. I have not added any filter with the query options, i just specified the service and the entityset. I removed my rule first but it is still displaying a single record:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2032500-image.png" /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 06:58:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557925#M4708565</guid>
      <dc:creator>sopizaken</dc:creator>
      <dc:date>2022-03-11T06:58:42Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557926#M4708566</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;bing.fang&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;We have fixed the issue i just raised regarding the single record by adding some more key fields on the entityset. The question is, are we supposed to add the $top and $skip on the initializeOffline.action or where are we supposed to use it? Because when i tried to scroll down the list, it didn't load the next results.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 07:39:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557926#M4708566</guid>
      <dc:creator>sopizaken</dc:creator>
      <dc:date>2022-03-11T07:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557927#M4708567</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;bill.froelich&lt;/SPAN&gt; , this should be about MDK's UI issue. Please help to add comments.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 07:46:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557927#M4708567</guid>
      <dc:creator>bing_fang</dc:creator>
      <dc:date>2022-03-11T07:46:53Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557928#M4708568</link>
      <description>&lt;P&gt;The query options for initialize offline typically would not use $top or $skip.  Most of the time you would retrieve all the records (no query options) or use a $filter to restrict based on some criteria.  This action simply populates the offline db files.  Then in your application when displaying a list MDK will automatically use $top and $skip to read / page the data as needed when scrolling an Object Table or List picker for example.&lt;/P&gt;&lt;P&gt;You can also use them in the app if needed (typically in conjunction with filters and other criteria)&lt;/P&gt;</description>
      <pubDate>Fri, 11 Mar 2022 14:27:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557928#M4708568</guid>
      <dc:creator>bill_froelich</dc:creator>
      <dc:date>2022-03-11T14:27:15Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557929#M4708569</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;bill.froelich&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Is it possible for the user to always connect online and just define the specific items to be downloaded offline once he has loaded the records he wanted to use offline? As i understood from the mdk offline template, it always calls the initializeOffline.action which includes the defining requests for the selected odata entities.&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 07:30:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557929#M4708569</guid>
      <dc:creator>sopizaken</dc:creator>
      <dc:date>2022-03-15T07:30:47Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557930#M4708570</link>
      <description>&lt;P&gt;Rachel,&lt;/P&gt;&lt;P&gt;I am not sure I fully understand your question but yes, you can add defining requests after the store is initially populated.  What doesn't currently exist yet is a remove defining request option in MDK.  &lt;/P&gt;&lt;P&gt;One approach would be to display an online list of items and allowing the user to mark the ones they then download offline for further processing.  This assumes you have a backend service design that supports some kind of user selection storage and linking that when downloading the data.  Having the backend handle the filtering for hte current user avoids issues with the defining requests on the client.  Initially the equipment list (for example based on your screenshot) would be empty if the user has not selected equipment to download from on online lookup.  Once the user selects what to download when they perform a delta sync the Equipment set would now return data since the user specified one or more items to download.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Mar 2022 18:02:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557930#M4708570</guid>
      <dc:creator>bill_froelich</dc:creator>
      <dc:date>2022-03-21T18:02:26Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557931#M4708571</link>
      <description>&lt;P&gt;Hi  &lt;SPAN class="mention-scrubbed"&gt;bill.froelich&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thank you so much for your response, this gives me other options to implement data fetching in our app. Regarding your first suggestion, how do we add defining requests after the store is initially populated? Currently, we have this equipment list data set in our defining request in the InitializeOffline.action, i have defined a query option for this to first get the 10,000 records. After this defining request, i wanted to call another defining request (thru custom code) that will get the next 10,000 records, then after this call another one until we get all the records.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Mar 2022 06:59:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557931#M4708571</guid>
      <dc:creator>sopizaken</dc:creator>
      <dc:date>2022-03-23T06:59:04Z</dc:date>
    </item>
    <item>
      <title>Re: MDK Client Initial load of data sync error</title>
      <link>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557932#M4708572</link>
      <description>&lt;P&gt;Normally you would just request all the equipment records and let Mobile Services retrieve the data.  Your odata service can do paging to return a subset and allow Mobile Services to request additional data automatically until all the data is downloaded.&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2022 04:32:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/mdk-client-initial-load-of-data-sync-error/qaa-p/12557932#M4708572</guid>
      <dc:creator>bill_froelich</dc:creator>
      <dc:date>2022-04-01T04:32:28Z</dc:date>
    </item>
  </channel>
</rss>

