cancel
Showing results for 
Search instead for 
Did you mean: 

Issue during Deploy MDK App in the Dev Space

Angelo_Ab
Explorer
0 Kudos
266

Hi,

i have an issue deploying a MDK Application in Business Application Studio

The App is an Offline App but for particular needs I configure also an online service for particular OData calls.

This is the services:

Angelo_Ab_0-1724880654801.png

The Online Service have the same Service Source Type and the same Destination Name of Offline Service, the only difference is the unchecked Offline flag.

If I deploy the APP to Mobile Service or Cloud all works fine.

When I try to deploy in My Dev Space i have the following errors:

Process exited with code 1

Uncaught VError VError at JsonValidator.validate (/home/user/projects/WebApplicationFactory/somanagement-approuter/node_modules/@sap/approuter/lib/utils/JsonValidator.js:30:5) at validateDestinations (/home/user/projects/WebApplicationFactory/somanagement-approuter/node_modules/@sap/approuter/lib/configuration/validators.js:193:15) at loadDestinations (/home/user/projects/WebApplicationFactory/somanagement-approuter/node_modules/@sap/approuter/lib/configuration/env-config.js:91:14) at load (/home/user/projects/WebApplicationFactory/somanagement-approuter/node_modules/@sap/approuter/lib/configuration/env-config.js:22:28) at module.exports.load (/home/user/projects/WebApplicationFactory/somanagement-approuter/node_modules/@sap/approuter/lib/configuration.js:16:37)

After some research I think the reason of this error is the same name of the Service Source Type and Destination Name for both services in the generated file .project.json

Angelo_Ab_1-1724881017854.png

If I replicate the connection in the Mobile Connectivity with another name, ex: s4-backend-odata-online and change it in the Online Service configuration(ServiceV2_Online.service) the deploy in the dev space works correctly. 

Unfortunately I can't do that because i have(only on Web/Cloud) a 502 Bad Gateway when using the second configured Mobile Connectivity Destination "s4-backend-odata-online" that is a simple copy of s4-backend-odata. But this is another issue.

 

Thank you

 

 

 

Accepted Solutions (0)

Answers (3)

Answers (3)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert

@Angelo_Ab I am able to reproduce the issue with your "not working" scenario. We'll investigate this.

In meanwhile, you can create two destinations in mobile services connectivity and BTP cockpit destination to consume in your MDK project.

For your second destination in BTP cockpit, please make sure to point to the respective URL (under APIs tab) from 2nd destination in mobile services.

 

Angelo_Ab
Explorer
0 Kudos
.
Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

@Angelo_Ab Could you share what exactly you had in the ServiceV2_Online.service before making changes with new destination name? Right click on this file>Open with > Text editor

Angelo_Ab
Explorer
0 Kudos
ServiceV2.service
{
    "DestinationName""s4-backend-odata",
    "PathSuffix""/sap/opu/odata/sap/ZSERVICE",
    "LanguageURLParam""sap-language",
    "OfflineEnabled"true,
    "OfflineOptions": {
        "StoreParameters": {
            "StoreName""soamanagement",
            "EnableRequestQueueOptimization"true
        }
    },
    "SourceType""Mobile",
    "RestService"false
}
 
ServiceV2_Online.service (Deploy Working)
{
    "DestinationName""s4-backend-odata-online",
    "PathSuffix""/sap/opu/odata/sap/ZSERVICE",
    "LanguageURLParam""sap-language",
    "OfflineEnabled"false,
    "SourceType""Mobile",
    "RestService"false
}
 
ServiceV2_Online.service (Deploy Not Working)
{
    "DestinationName""s4-backend-odata",
    "PathSuffix""/sap/opu/odata/sap/ZSERVICE",
    "LanguageURLParam""sap-language",
    "OfflineEnabled"false,
    "SourceType""Mobile",
    "RestService"false
}
 
Thank you,
Angelo.