cancel
Showing results for 
Search instead for 
Did you mean: 

No database credentials provided in CAPM

12-19-2022 6:06 AM
10131 views 6 comments Go to solution
SAP Managed Tags
Subscribe

HI,

1)Created a CAPM project and scussefully able to deploy in the Hana Data Base

2)while executing the CAPM application in the BAS and getting below error ">No database credentials provided"


1)please find the below package.json

2)

While executing the application and i am getting the below error

3)

Even in the Hana Data also i am not able fetch the Data

Accepted Solutions (1)

Accepted Solutions (1)

Tristan
Participant

Hi DurgaPrasanth,

from the steps you outline it did not see that you did anything with cds bind or similar. When running a cap app from BAS you need to provide the credentials to the HDI container if you want to use it. This can be done via the deprecated default-env.json file or by creating a binding like shown here.

Not being able to see data is probably intended behavior. From the screenshot you provided, we cannot see which user you are signed in as, because by default the db admin can’t see data in the HDI containers. (I’m not 100% sure, but if the steps from the screenshot below don’t work, please try to login to the container with the credentials from the generated service key)


Best Regards and good luck,

Tristan

Answers (4)

Answers (4)

mhdsamsu
Explorer

Locally, if you are using sqllite, you don't need to access hana DB. So, remove below line from package.json or cdsrc.json.

package.json

i remove in .cdsrc.json for trial application

"requires": {

"db": { "kind": "hana-cloud" }
jlong
Product and Topic Expert
Product and Topic Expert
0 Likes

If running `cds run` this will just use the in-memory db though!

Neeraj_Jain1
Active Contributor

Hello DurgaPrasanth vemula,

Please refer below SAP thread.

https://answers.sap.com/questions/13143530/no-database-connection-found-in-cap-project-using.html

Hope it's helps to you

Regards,

Neeraj Jain

anuradha_gurram
Explorer
0 Likes

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.