on 08-02-2021 6:34 AM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
User | Count |
---|---|
75 | |
10 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.