Skip to Content
0
Aug 17, 2020 at 06:29 PM

Problem in cds deploy --to hana in CAP with cf cli v7.0 or higher

313 Views

A colleague of mine ran into a deployment problem when using

 cds deploy --to hana

the error he received was

[ERROR] [cds.deploy] - Services not found 

at HanaDeployer._getCfServiceName (/usr/local/lib/node_modules/@sap/cds-dk/node_modules/@sap/cds/bin/deploy/to-hana/hana.js:229:15)
at processTicksAndRejections (internal/process/task_queues.js:97:5) 
at async HanaDeployer.deploy (/usr/local/lib/node_modules/@sap/cds-dk/node_modules/@sap/cds/bin/deploy/to-hana/hana.js:41:27)
at async Object.deploy (/usr/local/lib/node_modules/@sap/cds-dk/bin/deploy/index.js:83:5)

He is using @sap/cds 4.1.5.

After digging into it we found that the new (V7.0) CF command line utility is not using -s but -e to show marketplace services.

Line 19 in cfUtil.js has the following:

const marketplaceCmd = await runCommand('cf', ['marketplace', '-s', serviceName], logger);

I don't know offhand how to check on the local cf version, but this line needs a revision. :) Do you need us to create a ticket for this?