on 2021 May 14 9:15 AM
Hello Experts, I have created a MDK demo app using WebIde tried to deploy on cloud and mobile service so. Getting below error after deployment on cloud. Please check the below screenshot.
mdk-error.pngFailed to initialize application data service - Error: 500 (); GET /com.sap.edm.sampleservice.v2/?sap-language=en <html><head><title>Error report</title></head><body><h1>HTTP Status 500 - An internal application error occurred. Request: ****mdk-error.png:demoapp</h1></body></html>
From SAP Web IDE, you can deploy the MDK metadata to both Mobile Services NEO and Mobile Services Cloud Foundry to run it in MDK mobile client but for web, you can deploy to BTP Neo only to run it as web application. In the BTP Neo cockpit, you might not be able to connect to Sample backend from Mobile Services CF due to some security/authentication challenges.
In your case,you need to configure a cloud destination in BTP Neo cockpit connecting to Sample backend from Mobile Services Neo.
If you look at the error, you can see that your MDK web application is trying to connect to com.sap.edm.sampleservice.v2 destination during app initialize (look at Error 500 GET/com.sap.edm.sampleservice.v2..) and since it didn't find, it failed. You can double check it in BTP Neo cockpit.
You might have created a MDK project connecting to Mobile Service source Type and might have selected the com.sap.edm.sampleservice.v2 destination and would have deployed the project to Web. If you try to create a new destination com.sap.edm.sampleservice.v2 in the BTP Neo cockpit, it won't allow because cloud destination doesn't support period in it's name. (But Mobile services destination does, you might have already tested your MDK app running in mobile client connecting to the default sample backend destination)
To solve this problem, you can follow below approach -
Hope this helps.
P.S. If you already have a Cloud Foundry account, i recommend you to use BAS for any MDK development.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jitendra Kansal,
do we need to follow same steps in CF environment also, it seems above steps are for Neo environment
for CF environment do we need to follow other steps.
In my case i want to consume S4hana on premise into SAP MDK web app but i am getting below error(snippet)
User | Count |
---|---|
69 | |
12 | |
11 | |
10 | |
9 | |
8 | |
7 | |
6 | |
6 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.