Hi Experts,
We have requirement to create OData service on existing table in one of the instance. I followed the Devtoberfest videos.
After that I am building new application and I don't have books.hdbtable file in DB folder in my current project MYACMISRV and somehow when I trying to deploy using command:cds deploy --to hana:ACMI_HANA getting below error in bold. Refer below log for more information. Please advise how can I resolve this issue.
Error: "src/gen/books.hdbtable": could not create a compile unit for the file [8211714] at "src/gen/books.hdbtable" (0:0) Error: "src/gen/.hdiconfig": Configuration does not define a build plugin for file suffix "hdbtable" [8210015] at "src/gen/.hdiconfig" (0:0) Error: Preparing... failed [8211602] Preparing the make transaction... ok (0s 85ms) Make failed (3 errors, 0 warnings): tried to deploy 2 files, undeploy 0 files, redeploy 0 dependent files Error: Making... failed [8211605] Error: Starting make in the container "ACMI" with 2 files to deploy, 0 files to undeploy... failed [8214168] Deployment to container ACMI failed - error: HDI make failed
user: MYACMISRV $ cds deploy --to hana:ACMI_HANA
[cds.deploy] - Starting deploy to SAP HANA ... [cds.deploy] - Creating build tasks [cds.deploy] - Running build [cds.deploy] - Using container ACMI_HANA [cds.deploy] - Running 'cf create-service hana hdi-shared ACMI_HANA' with options {} Creating service instance ACMI_HANA in org AP_Inc._explr / space ACMI Dashboard as nonwal@ap.com... OK Service ACMI_HANA already exists [cds.deploy] - Writing /home/user/projects/MYACMISRV/gen/db/default-env.json [cds.deploy] - Writing /home/user/projects/MYACMISRV/default-env.json [cds.deploy] - Writing /home/user/projects/MYACMISRV/package.json [cds.deploy] - Deploying to HANA from /home/user/projects/MYACMISRV/gen/db [cds.deploy] - Using HDI deployer from /home/user/projects/MYACMISRV/node_modules/@sap/hdi-deploy/library.js @sap/hdi-deploy, version 4.0.4 (mode default), server version 4.00.000.00.1615912581 (4.0.0.0), node version 10.23.0, HDI version 1004, container API version 1003 Deployment started at 2021-04-06 21:32:25 Using default environment variables from file "default-env.json" No ignore file at /home/user/projects/MYACMISRV/gen/db/.hdiignore. Collecting files... Collecting files... ok (0s 3ms) 2 directories collected 4 files collected 0 reusable modules collected Target service: ACMI_HANA Session variable APPLICATION is set to "SAP_HDI//". Previous build with request ID 7308 finished at 2021-04-06 21:30:49.825379000 with status Finished and message: Make failed (3 errors, 0 warnings): tried to deploy 2 files, undeploy 0 files, redeploy 0 dependent files. Processing revoke files... Processing revoke files... ok (0s 0ms) Processing grants files... Processing grants files... ok (0s 0ms) Preprocessing files... Preprocessing files... ok (0s 1ms) Connecting to the container "ACMI"... Connecting to the container "ACMI"... ok (0s 103ms) Locking the container "ACMI"... Locking the container "ACMI"... ok (0s 149ms) Synchronizing files with the container "ACMI"... Deleting files... Deleting files... ok Writing files... Writing files... ok Synchronizing files with the container "ACMI"... ok (0s 393ms) Undeploy whitelist file "undeploy.json" not found; an empty whitelist is used and no files will be scheduled for undeploy 2 modified or added files are scheduled for deploy based on delta detection 0 deleted files are scheduled for undeploy based on delta detection (filtered by undeploy whitelist) 0 files are scheduled for deploy based on explicit specification 0 files are scheduled for undeploy based on explicit specification Deploying to the container "ACMI"... Starting make in the container "ACMI" with 2 files to deploy, 0 files to undeploy... Disabling table replication for the container schema "ACMI"... Disabling table replication for the container schema "ACMI"... ok (0s 85ms) Migrating libraries... Migrating libraries... ok (0s 8ms) Making... Preparing... Deploying the configuration file "src/gen/.hdiconfig"... Preparing the make transaction... Deploying the configuration file "src/gen/.hdiconfig"... ok (0s 8ms) Adding "src/gen/ACMI.FSIDATA.hdbview" for deploy... Adding "src/gen/ACMI.FSIDATA.hdbview" for deploy... ok (0s 1ms)Error: "src/gen/books.hdbtable": could not create a compile unit for the file [8211714] at "src/gen/books.hdbtable" (0:0) Error: "src/gen/.hdiconfig": Configuration does not define a build plugin for file suffix "hdbtable" [8210015] at "src/gen/.hdiconfig" (0:0) Error: Preparing... failed [8211602] Preparing the make transaction... ok (0s 85ms) Make failed (3 errors, 0 warnings): tried to deploy 2 files, undeploy 0 files, redeploy 0 dependent files Error: Making... failed [8211605] Error: Starting make in the container "ACMI" with 2 files to deploy, 0 files to undeploy... failed [8214168] Deployment to container ACMI failed - error: HDI make failed [Deployment ID: none]. Deployment ended at 2021-04-06 21:32:27 Error: HDI make failed (2s 29ms) [ERROR] [cds.deploy] - HDI deployment failed with exit code 1 at hdiDeployLib.deploy (/home/user/projects/MYACMISRV/node_modules/@sap/cds/bin/deploy/to-hana/hdiDeployUtil.js:92:35) at ChildProcess.<anonymous> (/home/user/projects/MYACMISRV/node_modules/@sap/hdi-deploy/library.js:101:14) at ChildProcess.emit (events.js:198:13) at maybeClose (internal/child_process.js:982:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
Thanks,
Nikhilesh