cancel
Showing results for 
Search instead for 
Did you mean: 

First sync SAP MDK timeout

vhsbc92
Explorer
0 Kudos
321

Hello experts!

I'm facing a problem while the app is trying to retrieve the data and creating the offline data store. This is happening because I have one entity which has 19k registers. To get a better understand,  I forced the service to provide a TOP=1000 registers and it worked very well. That's why I'm pretty confident the problem is timeout, not the odata service.

Now I have to solve the sync problem with all of those 19k registers. First, I thought SAP MDK had a timeout sync but I coudn't find it inside the services, bundle or actions.

Second, I thought SAP MDK does pagination while retrieving the data. So I traced the OData query SAP MDK did, but I didn't see any query options or params like $filter, $top, $skip. So I'm assuming is always a fullsync in this scenario.

Someone can help me to understand if I'm right in these analysis and what can I do to increase the timeout sync in SAP MDK?

I have a delta sync logic, but in this case is the first sync, a full sync to create the offline data store.

View Entire Topic
vhsbc92
Explorer
0 Kudos

Yes, I'm referring to the offline initialization.

Is there a way to increase the timeout?

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
First thing is to understand where the error is occurring? MDK Client, Mobile Services, or Backend?
vhsbc92
Explorer
0 Kudos
The problem is in MDK Client, when I open the app and there is a message "downloading"... After 3 minutes an error appears. If I limit the API to send $top=1000 it works.
bill_froelich
Product and Topic Expert
Product and Topic Expert
What is the exact message? Have you tried turning on Mobile Network Trace in Mobile Services to capture the full traffic?