Skip to Content

Mobile Development Kit Client - Error with Odata metadata on app update

Hello experts,

We are trying to get a MDK app running that accesses an OData service on our SAP back-end using mobile services in Cloud Foundry. So, we connected our CF account to the cloud connector and created a destination for our back-end in the CF also.

In Mobile services we created a Hybrid App and connected it to our OData service, see steps below:

When I ping or test the OData service it returns no errors.

At this point I have the feeling that my configuration on Mobile Services side is quite ok. We followed the steps on the tutorials for MDK, so the NEO instance has a destination that points towards the mobile-services on CF. We then follow the steps in following tutorial:

When we then open the app on the mobile phone we get following issue:

Any idea what might be causing this?

Thanks in advance!

Kind regards,


Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    Posted on Jul 17, 2020 at 06:27 PM

    The issue was that in the metadata of the service I used, there was a reference towards another service. So we had two options:

    1. Enable ignoreAllReferences in the CDSL options of the service in the MDK project
    2. Modify the rewrite urls in the destination in Mobile services

    I tested option 1 and this worked for my case

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 23, 2020 at 12:07 PM

    Robin Panneels

    Couple of things you can look into:

    1. In Mobile Network trace feature in Mobile Services cockpit > select Log message (header & body) and start recording
    2. Reproduce the issue on client side.
    3. Switch back to MS cockpit, stop recording and check if you find anything relevant in the trace file.

    Are you trying it on MDK public store client (check once if you have already updated it to 4.2.1)? If so, you can connect your Android device to PC and can access ClientLog.txt file via the Android Studio> View menu > Tools Window > Device File Explorer>data>data>>files>ClientLog.txt , there you may find some more info.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Apr 23, 2020 at 12:16 PM


    I would start by checking the Mobile Services logs for your application to see if there is a more descriptive error message. In Mobile Services go to Analytics > Logs and see if there is more detail related to the error.

    Additionally, I would try accessing your application API url for that destination in the browser to confirm you can retrieve the metadata. So for your example it would be https:// -$metadata?auth=uaa just to verify it is accessible (I would guess it is).


    Add a comment
    10|10000 characters needed characters exceeded