cancel
Showing results for 
Search instead for 
Did you mean: 

MDK: Service open failed, failed to retrieve metadata

former_member321811
Participant
0 Kudos

Hi,

I just created a new MDK app using the new templates (Base and List Detail, using annotations) and I have the following error when I start the app on the emulator:

CONSOLE ERROR file:///app/utils/Logger.js:53:24: [error] MDKClientLogger - Startup - failed to execute startup handler '/ExpensesListDetail/Actions/Service/CreateService.action' error is 'Error: Service open failed, failed to retrieve metadata'

I don't know if the issue is with is the app metadata or the OData service metadata but I recorded a network trace and the request to get the service metadata seems to be fine (status 200 and the metadata is in the response). I can get the data when I test the destination in the Mobile Services cockpit and I don't have any error when I create the app in the Web IDE.

My service was developed using the Cloud Application Programming Model (Java OData v2). I have another app with a very similar service and it works just fine. The main difference is that the new service has more annotations because I'd like to use them to build the MDK app.

What I could I do to find the issue and fix it?

Cheers,

Pierre

former_member321811
Participant
0 Kudos

I just removed every annotation from my service and the error just disappeared. I hope this is bug and not that the MDK only support annotations defined in a separate file.

sue.vickers do you know if this is a known issue?

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

Pierre,

Can you send me a copy of your $metadata for the service with the annotations? I would be interested in checking further on our support here.

Also, just for reference MDK 3.1.1 has been released and you may want to try with this release to see if it behaves any differently. Just be sure to check the dependency installer as a number of the dependencies have changed versions with this release.

--Bill

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

pdominique

Were you able to resolve your issue? If so, please post an answer so others might benefit from your findings.

Accepted Solutions (0)

Answers (0)