Hi there,
I am trying to deploy a cap service in BTP but for some reason it is failing to deploy the db-deployer.
This cap project is simply a table that I want to deploy in the instance already created in the btp subaccount.
steps that I follow:
1-

2-
We can see the gen folder that contains the view and the table that I want to deploy
3-
4 - See the cf logs:

5- Download the cf dmol


When I look at the logs generated by the cf dmol , I see that they appear as csv files which do not exist, such as Books or files that I do not know their origin. ( this instance of hdi-container is shared with other applications) but I do not know why I get this here, when I just want to deploy my events table.
I have searched in the cap documentation but it is limited, I have followed all the steps to be performed to the letter. But I don't know if I am missing something.
Has anyone else had something similar happen or know how to fix it?
I would appreciate it.
Request clarification before answering.
You may want to try to undeploy any existing .hdbtabledata and .csv files. It seems that they existed in one of the older versions of your application, but have been deleted in the meanwhile.
Note: The HDI deployer doesn't undeploy any files by default - you have to list the files that you want to get rid of in the undeploy.json file in order to keep your CDS model in-sync with the persistence.
E..g. if you rename an entity, you have to undeploy the outdated HANA artefacts. During development you may want to use the autoundeploy parameter or corresponding generic wildcards, but this is not recommended in productive scenarios in order to avoid data loss by mistake.
I would suggest to add the following entries to the db/undeploy.json file and retry deployment.
[
"src/gen/**/*.hdbtabledata",
"src/gen/**/*.csv"
]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
The HDI deployer implements a delta deployment mechanism. It checks the HDI container for the files that have been deployed and the files that are contained in the current deployment set. The deployment shows that the .hdbtabledata and .csv files existed in your HDI container and now have been undeployed.
The Capire documentation Make the Object Known to CDS might be helpful if you want to define facade entities for existing database objects.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.