Skip to Content
Jan 14, 2021 at 08:21 PM

CAP: CDS deploy to hana trial failed. Wrong service type created



Iam following the Tutorial for SCP Onboarding: CAP App from this link

I have trial account. I went through all the steps but when I try to deploy using the following command as per the tutorial:

cds deploy --to hana

I get the following error:

status:    create failed
message:   Failed to open connection to the database, because of: Failed to get connection for database '4e2a51fc-43c2-4c9d-af69-181dfd1ee823' (, because of: SAP DBTech JDBC: Cannot connect to jdbc:sap:// [Object is closed: ConnectionID:0 SessionID:0 on[connected local=/]].
started:   2021-01-14T19:59:06Z
updated:   2021-01-14T19:59:06Z

See image:

It created hana service, but not to hana trial. How can I set the deployment to create the hana trial service, instead of hana?

In the tutorial, creating service to hana will fail and it will automatically create hana trial service. See image: