cancel
Showing results for 
Search instead for 
Did you mean: 

Deep structured entity offline capability issue in SAP MDK application

Shankar_1999
Discoverer
0 Kudos
219

Hi Experts,

I'm developing a mobile app using SAP MDK for a client POC with offline-enabled functionality. I'm using SAP CAP as backend service. However, I am encountering the following errors when accessing deep structured entities for offline capabilities:

  • "Delta download for an Offline OData client failed. AdminService.Machines.Machines is not a media entity but is used in defining request {2} which requests stream data"
  • "Failed to initialize application data service - Error- [-10340] The download failed due to an error on the server: -857 (SERVER_SYNCHRONIZATION_ERROR) ([-10225] Message: User exception: [-100036] Failed to build the Offline OData client database.)"

I am not encountering any issues with entities that do not have a deep structure.

Entity Structure:

entity Plant {
  key ID      : UUID;
      plantID : String(10);
      machine : Composition of one Machines on machine.parent = $self;
}

entity Machines {
  key ID                 : UUID;
      makerInfo          : String(200);
  key parent             : Association to Plant;
      lastService        : Date;
      inspectionComments : String(1000);
}

Hi @Jitendra_Kansal , @bill_froelich can you suggest way to resolve this issue.

 

Thank you!

Regards,

Shankar 

Sandra_Rossi
Active Contributor
0 Kudos

Please don't post to Questions about SAP Websites (issue with community Website, etc.) if it's a question about SAP software. Instead, ask in Technology Q&A: https://community.sap.com/t5/technology-q-a/qa-p/technology-questions. Hopefully someone will fix it for you.

Sandra_Rossi_0-1725896371395.png

 

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
Can you share the resulting $metadata of the CAP service?
View Entire Topic
bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

I suspect you want to use "Composition of many Machines" instead of one since I plant would typically have zero, one or more machines.  Using of one restricts there to only being one machine ever at the plant and use of one is discouraged per the compositions CDL doc.  Please verify your use case and update accordingly.

Shankar_1999
Discoverer
0 Kudos
Thank you, the issue has been resolved.