cancel
Showing results for 
Search instead for 
Did you mean: 

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

03-20-2025 9:29 AM
Pratibha_Salunke Discoverer
2099 views 4 comments
0 Likes
SAP Managed Tags
Labels
SAP Cloud Application Programming Model
Subscribe

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)?

 

 

 

 

 

 

0 Likes
View Entire Topic
AngusFreil
Associate
Associate
0 Likes

There are illegal characters being used:

  • xsappname "TESTAPP-Qorix India Pvt Ltd_qorix-yfvzj2ew_ext-dev":

Empty space would be deemed an illegal character