cancel
Showing results for 
Search instead for 
Did you mean: 

Offline MDK data synchronisation error

Girish_KR
Explorer
0 Kudos

H,

I am getting the below error in MDK application, while trying to initialise ODATA local storage.

Error: [-10340] The download failed due to an error on the server: -857 (SERVER_SYNCHRONIZATION_ERROR) ([-10225] Message: User exception: [-100000] An unexpected error occurred while converting the OData metadata to the Offline OData client database metadata: An exception occurred.

Error caused by: An exception occurred.) : Error: [-10340] The download failed due to an error on the server: -857 (SERVER_SYNCHRONIZATION_ERROR) ([-10225] Message: User exception: [-100000] An unexpected error occurred while converting the OData metadata to the Offline OData client database metadata: An exception occurred. Error caused by: An exception occurred.)

Regards,

Girish

View Entire Topic
Girish_KR
Explorer
0 Kudos

metadata.xmlThis was mainly a metadata issue.
We had a metadata with two schemas like:
<?xml version='1.0' encoding='UTF-8'?>

<edmx:Edmx xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" Version="1.0"> <edmx:DataServices m:DataServiceVersion="1.0" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <Schema Namespace="com.app.demo.entity" xmlns="http://schemas.microsoft.com/ado/2008/09/edm"> </Schema> <Schema Namespace="com.app.demo.edm" xmlns="http://schemas.microsoft.com/ado/2008/09/edm"> </Schema> </edmx:DataServices></edmx:Edmx>
</xml>

Later we combined the two into a single schema

<edmx:Edmx xmlns:edmx="http://schemas.microsoft.com/ado/2007/06/edmx" Version="1.0"> <edmx:DataServices m:DataServiceVersion="1.0" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"> <Schema Namespace="com.app.demo.entity" xmlns="http://schemas.microsoft.com/ado/2008/09/edm"> </Schema> </edmx:DataServices></edmx:Edmx>
</xml>
Let me know if this helps.

sopizaken
Participant
0 Kudos

Hi Girish,

Thank you for your inputs. I have checked our metadata structure and saw that we only have one schema. I think our problem is about the bulk of data that we are retrieving on initial load. I have already set a "top" filter in my list on initial load of the app, but it seems like it still gets all the data. Do you have any idea how to limit the data pull from the backend on initial load of the mdk project on a device?