on 2020 Dec 16 2:06 PM
Hi everybody,
I'm following the DAT160 workshop. Unfortunately, although I checked everything regarding the trial environment, hana db, npm modules etc, I still keep getting the following error.
[ERROR] [cds.deploy] - Service key is missing mandatory field 'schema'. Make sure you are not using a managed service.
Anyone got an idea? DB is up and running and I've connected with the CF environment. Hope you can help!
Thanks!
Laurens
Request clarification before answering.
Hi thomas.jung ,
I have a similiar issue with the small difference that I have to provide the key before deploying to hana cloud since hana cloud already exists but is not accessible directly to us developers by the customer. I just have the name and the corresponding key which I have to reference. This is what I am getting after npm run hana or when I try to deploy to cloud foundry:
Service broker error: Service broker hana-broker failed with: Failed to select a database for instance XX, because of: Multiple databases are available, exact id needs to be specified via parameter 'database_id' (available ids: [8485f48c-0753-48c7-b51e-eef988192cc2, 44ddcccf-5f73-4d5c-8b97-f107e1716271]) FAILED [ERROR] [cds.deploy] - Create request failed at Function.createService (/home/user/projects/app-39818-arbeitskleidung/node_modules/@sap/cds/bin/deploy/to-hana/cfUtil.js:96:33) at process._tickCallback (internal/process/next_tick.js:68:7)
In mta.yaml I provided:
config: database_id: "47ddcccf-5f73-4d5c-9b97-g107e1716271"
schema: app-XXX-schema
Still no success...
BR
Rufat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't think the cds deploy will read that from the mta.yaml. You need to pass it in direct to the cds deploy command (or create a script in the package.json). The database id needs to be supplied via the database specific parameters on the cds deploy --to hana:<database specific parameters>. See cds help deploy. Or create the HDI container service instance manually before you run the cds deploy and pass the database id in via parameters there like so: cf create-service hana hdi-shared hana-opensap-cloud-2020-db -c '{"database_id": "XXXX"}'
So the answer is: make sure to have unique names regarding hana db, schema's etc etc. Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
60 | |
8 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.