cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Subscription Failed: SAP CAP Multitenant application.

Syed
Active Participant
0 Likes
1,257

Hi,

I have encountered an issue while subscribing to SAP CAP Multitenant application from my SAP BTP Subaccount. The error message I can see in SAP BTP Subscription Management Dashboard is "Please contact the owner of application/service vendortracker with appName: vendortracker-myOrg. It failed its asynchronous callback and responded with message: Tenant creation failed."

Any assistance please. 

Syed_0-1717678440747.png

Application: vendortracker-mtx > Logs:
Error message: Could not get additional deployment resources.
Syed_1-1717678461026.png

Regards,

Syed

Accepted Solutions (1)

Accepted Solutions (1)

Syed
Active Participant
0 Likes

Hi @jreimann,

{
    "name": "vendortracker",
    "version": "1.0.0",
    "description": "A simple CAP project.",
    "type": "commonjs",
    "repository": "<Add your repository here>",
    "license": "UNLICENSED",
    "private": true,
    "dependencies": {
        "@sap-cloud-sdk/connectivity": "^3.9.0",
        "@sap-cloud-sdk/core": "^1.54.2",
        "@sap-cloud-sdk/http-client": "^3.5.0",
        "@sap-cloud-sdk/mail-client": "^3.9.0",
        "@sap-cloud-sdk/resilience": "^3.4.0",
        "@sap/approuter": "^16.2.1",
        "@sap/cds": "^7",
        "@sap/cds-hana": "^2",
        "@sap/hdi-deploy": "^4.8.0",
        "@sap/xssec": "^3.6.0",
        "axios": "^1.4.0",
        "cors": "^2.8.5",
        "express": "^4.18.2",
        "form-data": "^4.0.0",
        "hdb": "^0.19.6",
        "moment": "^2.29.4",
        "passport": "^0.6.0",
        "util": "^0.12.5",
        "uuid": "^9.0.1",
        "uuid-random": "^1.3.2"
    },
    "devDependencies": {
        "@cap-js/sqlite": "^1.2.1",
        "@sap/cds-dk": "^7.2.0",
        "@sap/ux-specification": "UI5-1.116",
        "@types/uuid": "^9.0.4",
        "@ui5/cli": "^3.9.2",
        "rimraf": "^3.0.2"
    },
    "scripts": {
        "start": "cds-serve",
        "watch-configapp": "cds watch --open configapp/webapp/index.html?sap-ui-xx-viewCache=false",
        "undeploy": "cf undeploy vendortracker --delete-services --delete-service-keys --delete-service-brokers",
        "build": "rimraf resources mta_archives && mbt build --mtar archive",
        "deploy": "cf deploy mta_archives/vendortracker_1.0.0.mtar --retries 1",
        "watch-certificateapp": "cds watch --open certificateapp/webapp/index.html?sap-ui-xx-viewCache=false",
        "watch-configurationapp": "cds watch --open configurationapp/webapp/index.html?sap-ui-xx-viewCache=false",
        "watch-project1": "cds watch --open project1/webapp/index.html?sap-ui-xx-viewCache=false"
    },
    "sapux": [
        "app/configurationapp",
        "app/project1"
    ],
    "cds": {
        "features": {
            "csrf": true,
            "csrfInBatch": true
        },
        "build": {
            "tasks": [
                {
                    "for": "hana",
                    "dest": "../db"
                },
                {
                    "for": "node-cf"
                }
            ]
        },
        "requires": {
            "db": {
                "kind": "hana",
                "credentials": {
                    "database": "vendortracker-hdivendortracker"
                }
            },
            "auth": "xsuaa",
            "mailService": {
                "kind": "rest",
                "credentials": {
                    "destination": "mail_destination",
                    "forwardAuthToken": true
                },
                "csrf": true
            }
          
        }
    }
}

 

Syed
Active Participant
0 Likes

vendortracker > app > xs.app.json

{
    "welcomeFile": "/app/index.html",
    "authenticationMethod": "route",
    "logout": {
        "logoutEndpoint": "/app-logout",
        "logoutPage": "/"
    },
    "routes": [
        {
            "source": "^/app/(.*)$",
            "target": "$1",
            "localDir": ".",
            "cacheControl": "no-cache, no-store, must-revalidate",
            "authenticationType": "xsuaa"
        },
        {
            "source": "^/appconfig/",
            "localDir": ".",
            "cacheControl": "no-cache, no-store, must-revalidate"
        },
        {
            "source": "^/user-api(.*)",
            "target": "$1",
            "service": "sap-approuter-userapi"
        },
        {
            "source": "^/sms-api/(.*)$",
            "target": "$1",
            "destination": "sms-api",
            "csrfProtection": false,
            "authenticationType": "none"
        },
        {
            "source": "^/(.*)$",
            "target": "$1",
            "destination": "srv-api",
            "csrfProtection": false,
            "authenticationType": "xsuaa"
        }
    ]
}

Answers (1)

Answers (1)

Syed
Active Participant
0 Likes

vendortracker > app > package.json

{
  "name": "approuter",
  "dependencies": {
    "@sap/approuter": "^14.0.0"
  },
  "engines": {
    "node": "^18.0.0"
  },
  "scripts": {
    "start": "node node_modules/@sap/approuter/approuter.js"
  }
}