cancel
Showing results for 
Search instead for 
Did you mean: 

SAP CAP Error - No database credentials provided

Ramjee_korada
Active Contributor
0 Kudos
2,723

Dear Experts,

I am trying to build a basic CAP application in the trial account but am getting error [ No database Credentials Provided ] while retrieving the data from the HANA cloud. But it works fine with the SQLite database.

I see that its binding and deployment are successful.

I could see the tables and its data in HANA Database Explorer.

I have tried multiple times with "cds init appname" and creating a CAP project from a template.

Checked the tutorial also - https://developers.sap.com/tutorials/hana-cloud-cap-create-project.html

Can you please suggest on how to troubleshoot this error?

Accepted Solutions (0)

Answers (3)

Answers (3)

Jagtar
Participant
0 Kudos

This problem occurs due to binding missing in from your local project to database .

Soultion

you need local env file in your project which hold all detail to connect your local project with hana db , connectivity service etc

Step to solve this problem execute below steps

Sep1. Login to cloud foundry and select with your organization and space

Jagtar_0-1739425682203.png

Step 2. Expand service folder as shown in above screen shot and right click on each service and click on bind a service to a locally run application.

Jagtar_1-1739426018402.png

Step 3.open terminal and run cds watch . now you connected with hana database

 

 

 

anuradha_gurram
Explorer
0 Kudos

Simple check with the HANA cloud instances started or not . if not then go and start HANA DB instances from SAP BTP subaccount and related spaces(DEV, QA) of your instances then SAP HANA cloud or  SAP HANA Cloud Central Then run command cds watch --profile hybrid into BAS terminal of you project folder.

Ramjee_korada
Active Contributor
0 Kudos

The below solutions look to be working. I will try with different apps.

https://cap.cloud.sap/docs/advanced/hybrid-testing
https://answers.sap.com/answers/13779599/view.html