cancel
Showing results for 
Search instead for 
Did you mean: 

Problem Statement: Unable to Deploy CAPM Project on Cloud Foundry – Service Instance Not Found

Pratibha_Salunke
Discoverer
0 Kudos
167

Dear Exports,

I have developed an SAP CAPM (Cloud Application Programming Model) application that facilitates salary uploads from Excel to SAP Public Cloud. I followed the official SAP tutorials to develop and deploy my application:

SAP CAPM Introduction Tutorial

Deploy to Cloud Foundry Tutorial

I successfully generated the TESTAPP_1.0.0.mtar file and attempted to deploy it using:

cf deploy /home/user/projects/TESTAPP/mta_archives/TESTAPP_1.0.0.mtar -f

However, the deployment fails with the following error:

Error monitoring creation or update of services: Error creating service "TESTAPP-auth" from offering "xsuaa" and plan "application": Error creating application null (Error parsing xs-security.json data: Inconsistent xs-security.json: Invalid xsappname "TESTAPP-Qorix India Pvt Ltd_qorix-yfvzj2ew_ext-dev": May only include characters 'a'-'z', 'A'-'Z', '0'-'9', '_', '-', '\', and '/'.)

Pratibha_Salunke_0-1742458227015.png

Project Setup Details

  • I have not created any entities under the db folder. Instead, my project consists of:
    • Service definitions (.cds and .js files) under the srv folder
    • Fiori app under the app folder
  • I successfully generated the .mtar file and followed all steps mentioned in the SAP tutorial.
  • Deployment fails during the xsuaa service creation

Actions Performed:

     1. Updated mta.yaml as per the tutorial.
     2. Added the required build script in TESTAPP/APP/Project1/package.json.
     3. Successfully generated the .mtar file.
     4. Attempted deployment via cf deploy, but encountered the above error


Questions:

 

  1. How can I correctly format the xsappname in xs-security.json to avoid invalid characters?
  2. What are the best practices for deploying a CAPM project to CloudFoundry with xsuaa authentication?
  3. What is the best way to handle space-containing organization names in the xsappname field?
  4. Does my project require a db folder with entities for successful deployment, or can I deploy only with services(srv) and a Fiori app(app)?

 

 

 

 

 

 

View Entire Topic
martinstenzig
Contributor
0 Kudos

Your error message seems to indicate that your xs-security.json file is not correct. Can you check if it exists and if you are pointing to the correct one in your mta.yaml? 

Pratibha_Salunke
Discoverer
0 Kudos
Thank you for your suggestion! I have checked my xs-security.json and mta.yaml files and ensured that the xsappname is the same in both. The TESTAPP-auth service was successfully generated. However, I am still facing the following error during deployment: Error uploading content module "TESTAPP-app-deployer" in service "TESTAPP-html5-repo-host": Operation 'Upload File' to the URL 'https://html5-apps-repo-dt.cfapps.ap10.hana.ondemand.com/v2/files/upload' failed. Remote server responded with HTTP status code 500, error message: 'Upload application content failed { CODE: '1001' } validation error: Could not find applications in the request.', error type 'Bad Request'
martinstenzig
Contributor
0 Kudos
This is a different error. This one has to do the HTML5 app repo upload. You might have to go back to the tutorial and check the steps around assembling the HTML5 component and upload.