on 2023 Nov 19 1:07 AM
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?
Request clarification before answering.
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
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.
Step 3.open terminal and run cds watch . now you connected with hana database
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
65 | |
7 | |
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.