cancel
Showing results for 
Search instead for 
Did you mean: 

Mobile Development Kit Client - Error with Odata metadata service

01-03-2020 5:25 PM
juanforero5 Participant
1614 views 3 comments
SAP Managed Tags
Subscribe

Hi experts, saludos desde Colombia.

I’m trying to deploy my application in the mobile services client in an iOS device, i built my Hana Odata service in HANA WEB-BASED DEVELOPMENT WORKBENCH (.xsaccess , .xsapp and .xsodata file) in the SAP Cloud platform environment (NEO) and then i built the destination in SCP Mobile Services as a SAP Cloud Platform Destination.

I tested if the Odata destination in SAP Mobile Services was ok and the result was successful:

I can see the entities in the database and their information, so I assumed that everything was fine with my Odata service, BUT when i try to run my application offline in the Mobile Services Client, this error always appears:

I have tried to make changes everywhere that influences the mobile destination, but I always get the same.

Please if you could help me or maybe someone who has been through the same problem. I’ll be very greatful.

Accepted Solutions (0)

Answers (1)

Answers (1)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Likes

jdforero

  • Did you already resolve this issue? If not, could you share MDK project ?

In SAP Web IDE, Right click on project and Export.

  • Is OData service mentioned in screenshot still up & running?
  • Make sure that you have "Offline" feature assigned to app configuration in Mobile Services cockpit.
  • Also, set log level to debug and enable event logs in the cockpit : Settings>Log Settings> Offline . Then re-launch the device, if you still see the offline related error, you can check in the logs on server side if there is there any related info.

Regards, JK

rpanneel
Participant
0 Likes

Hi jitendrakumar.kansal

We have a similar issue as jdforero, we coupled an OData service in mobile services CF, we are able to test the OData service in the test tool of mobile services.

In WebIDE the check service also succeeds when we create an online app, but when we deploy and run the application then we also get the alert:

App update failed, will roll back to previous metadata definitions/ Reason/ Error: https://sxxxtrial-01-dev-appID.cfapps.eu10.hana.ondemand.com/appID/$metadata

Is there any documentation on what the exact steps that need to be done to access an on-Premise OData service in MDK?

With the sampleData service everything works like a charm.

Kind regards,

Robin