Hi guys,
My entity definition is pretty simple like this:
using { Currency, managed, sap, cuid } from '@sap/cds/common';
namespace sap.capire.backend;
entity Contracts : managed, cuid {
name : localized String(128);
}
and the admin-service.cds is
using { sap.capire.backend as my } from '../db/schema';
service AdminService @(_requires:'admin') {
entity Contracts as projection on my.Contracts;
}
When I ran cds build/all, then .hdiconfig content is generated like this:
{
"file_suffixes": {
"csv": {
"plugin_name": "com.sap.hana.di.tabledata.source"
},
"hdbafllangprocedure": {
"plugin_name": "com.sap.hana.di.afllangprocedure"
},
"hdbanalyticprivilege": {
"plugin_name": "com.sap.hana.di.analyticprivilege"
},
"hdbcalculationview": {
"plugin_name": "com.sap.hana.di.calculationview"
},
"hdbcds": {
"plugin_name": "com.sap.hana.di.cds"
},
"hdbcollection": {
"plugin_name": "com.sap.hana.di.collection"
},
"hdbconstraint": {
"plugin_name": "com.sap.hana.di.constraint"
},
"hdbdropcreatetable": {
"plugin_name": "com.sap.hana.di.dropcreatetable"
},
"hdbflowgraph": {
"plugin_name": "com.sap.hana.di.flowgraph"
},
"hdbfulltextindex": {
"plugin_name": "com.sap.hana.di.fulltextindex"
},
"hdbfunction": {
"plugin_name": "com.sap.hana.di.function"
},
"hdbgraphworkspace": {
"plugin_name": "com.sap.hana.di.graphworkspace"
},
"hdbhadoopmrjob": {
"plugin_name": "com.sap.hana.di.virtualfunctionpackage.hadoop"
},
"hdbindex": {
"plugin_name": "com.sap.hana.di.index"
},
"hdblibrary": {
"plugin_name": "com.sap.hana.di.library"
},
"hdbmigrationtable": {
"plugin_name": "com.sap.hana.di.table.migration"
},
"hdbprocedure": {
"plugin_name": "com.sap.hana.di.procedure"
},
"hdbprojectionview": {
"plugin_name": "com.sap.hana.di.projectionview"
},
"hdbprojectionviewconfig": {
"plugin_name": "com.sap.hana.di.projectionview.config"
},
"hdbreptask": {
"plugin_name": "com.sap.hana.di.reptask"
},
"hdbresultcache": {
"plugin_name": "com.sap.hana.di.resultcache"
},
"hdbrole": {
"plugin_name": "com.sap.hana.di.role"
},
"hdbroleconfig": {
"plugin_name": "com.sap.hana.di.role.config"
},
"hdbsearchruleset": {
"plugin_name": "com.sap.hana.di.searchruleset"
},
"hdbsequence": {
"plugin_name": "com.sap.hana.di.sequence"
},
"hdbstatistics": {
"plugin_name": "com.sap.hana.di.statistics"
},
"hdbstructuredprivilege": {
"plugin_name": "com.sap.hana.di.structuredprivilege"
},
"hdbsynonym": {
"plugin_name": "com.sap.hana.di.synonym"
},
"hdbsynonymconfig": {
"plugin_name": "com.sap.hana.di.synonym.config"
},
"hdbsystemversioning": {
"plugin_name": "com.sap.hana.di.systemversioning"
},
"hdbtable": {
"plugin_name": "com.sap.hana.di.table"
},
"hdbtabledata": {
"plugin_name": "com.sap.hana.di.tabledata"
},
"hdbtabletype": {
"plugin_name": "com.sap.hana.di.tabletype"
},
"hdbtextconfig": {
"plugin_name": "com.sap.hana.di.textconfig"
},
"hdbtextdict": {
"plugin_name": "com.sap.hana.di.textdictionary"
},
"hdbtextinclude": {
"plugin_name": "com.sap.hana.di.textrule.include"
},
"hdbtextlexicon": {
"plugin_name": "com.sap.hana.di.textrule.lexicon"
},
"hdbtextminingconfig": {
"plugin_name": "com.sap.hana.di.textminingconfig"
},
"hdbtextrule": {
"plugin_name": "com.sap.hana.di.textrule"
},
"hdbtrigger": {
"plugin_name": "com.sap.hana.di.trigger"
},
"hdbview": {
"plugin_name": "com.sap.hana.di.view"
},
"hdbvirtualfunction": {
"plugin_name": "com.sap.hana.di.virtualfunction"
},
"hdbvirtualfunctionconfig": {
"plugin_name": "com.sap.hana.di.virtualfunction.config"
},
"hdbvirtualpackagehadoop": {
"plugin_name": "com.sap.hana.di.virtualpackage.hadoop"
},
"hdbvirtualpackagesparksql": {
"plugin_name": "com.sap.hana.di.virtualpackage.sparksql"
},
"hdbvirtualprocedure": {
"plugin_name": "com.sap.hana.di.virtualprocedure"
},
"hdbvirtualprocedureconfig": {
"plugin_name": "com.sap.hana.di.virtualprocedure.config"
},
"hdbvirtualtable": {
"plugin_name": "com.sap.hana.di.virtualtable"
},
"hdbvirtualtableconfig": {
"plugin_name": "com.sap.hana.di.virtualtable.config"
},
"jar": {
"plugin_name": "com.sap.hana.di.virtualfunctionpackage.hadoop"
},
"properties": {
"plugin_name": "com.sap.hana.di.tabledata.properties"
},
"tags": {
"plugin_name": "com.sap.hana.di.tabledata.properties"
},
"txt": {
"plugin_name": "com.sap.hana.di.copyonly"
}
}
}
And then when I ran cds deploy --to hana, the log returned an error as below:
Deploying the configuration file "src/gen/.hdiconfig"...
Warning: Could not find a configured library that contains the "com.sap.hana.di.cds" build plugin [8211539]
at "src/gen/.hdiconfig" (0:0)
Warning: Could not find a configured library that contains the "com.sap.hana.di.fulltextindex" build plugin [8211539]
at "src/gen/.hdiconfig" (0:0)
Warning: Could not find a configured library that contains the "com.sap.hana.di.textconfig" build plugin [8211539]
at "src/gen/.hdiconfig" (0:0)
Warning: Could not find a configured library that contains the "com.sap.hana.di.textdictionary" build plugin [8211539]
at "src/gen/.hdiconfig" (0:0)
Warning: Could not find a configured library that contains the "com.sap.hana.di.textminingconfig" build plugin [8211539]
at "src/gen/.hdiconfig" (0:0)
Warning: Could not find a configured library that contains the "com.sap.hana.di.textrule" build plugin [8211539]
at "src/gen/.hdiconfig" (0:0)
Warning: Could not find a configured library that contains the "com.sap.hana.di.textrule.include" build plugin [8211539]
at "src/gen/.hdiconfig" (0:0)
Warning: Could not find a configured library that contains the "com.sap.hana.di.textrule.lexicon" build plugin [8211539]
at "src/gen/.hdiconfig" (0:0)
Warning: Could not find a configured library that contains the "com.sap.hana.di.virtualfunctionpackage.hadoop" build plugin [8211539]
at "src/gen/.hdiconfig" (0:0)
Deploying the configuration file "src/gen/.hdiconfig"... ok (0s 7ms)
Deploying the namespace file "src/gen/.hdinamespace"...
Deploying the namespace file "src/gen/.hdinamespace"... ok (0s 11ms)
Adding "src/gen/ADMINSERVICE_CONTRACTS.hdbcds" for deploy...
Error: "src/gen/ADMINSERVICE_CONTRACTS.hdbcds": could not create a compile unit for the file [8211714]
at "src/gen/ADMINSERVICE_CONTRACTS.hdbcds" (0:0)
Error: Could not find the "com.sap.hana.di.cds" build plugin [8210501]
Error: Adding "src/gen/ADMINSERVICE_CONTRACTS.hdbcds" for deploy... failed [8211700]
Preparing the make transaction... ok (0s 62ms)
Error: Preparing... failed [8211602]
Make failed (5 errors, 9 warnings): tried to deploy 14 files, undeploy 0 files, redeploy 0 dependent files
Error: Making... failed [8211605]
Error: Starting make in the container "99088CA59D5B4F029F0FA29DD9237E10" with 14 files to deploy, 0 files to undeploy... failed [8214168]
Deployment to container 99088CA59D5B4F029F0FA29DD9237E10 failed - error: HDI make failed [Deployment ID: none].
Error: HDI make failed
(1s 863ms)
[ERROR] [cds.deploy] - HDI deployment failed with exit code 1
at hdiDeployLib.deploy (/home/user/projects/myproject.git/app/backend/node_modules/@sap/cds/bin/deploy/to-hana/hdiDeployUtil.js:90:35)
at ChildProcess.<anonymous> (/home/user/projects/myproject.git/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 Socket.stream.socket.on (internal/child_process.js:389:11)
at Socket.emit (events.js:198:13)
at Pipe._handle.close (net.js:607:12)
Can you please give me an advice for this issue? Thank you.
Regards,
Kevin