cancel
Showing results for 
Search instead for 
Did you mean: 

Error deployment to container my-hdi-container failed - error: HDI make failed [Deployment ID: none]

11-08-2022 9:41 PM
6718 views 3 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

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.

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

lothar_bender
Product and Topic Expert
Product and Topic Expert

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"
]

Thanks for you help @Lothar Bender,

The problem was solved. I added in the db/undeploy.json all the files that I see in the logs that has problems and now it's working and making the deploy.

Best Regards.

Answers (1)

Answers (1)

lothar_bender
Product and Topic Expert
Product and Topic Expert
0 Likes

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.