Skip to content

Type “cds.Vector” is not supported for OData ‘4.0’ #7

@raybarsap

Description

@raybarsap

Hi,
I'm using SAP BAS with a full-stack cloud application dev space and trying to do "npm run build" in the root folder and getting the following:

user: btp-cap-genai-semantic-search $ npm run build

genai-semantic-search-sample@1.0.0 build
mbt build -p=cf -t=./mta_archives --mtar=genai-semantic-search-sample_0.0.1.mtar

[2025-11-06 02:05:43] INFO Cloud MTA Build Tool version 1.2.34
[2025-11-06 02:05:43] INFO generating the "Makefile_20251106020543.mta" file...
[2025-11-06 02:05:43] INFO done
[2025-11-06 02:05:43] INFO executing the "make -f Makefile_20251106020543.mta p=cf mtar=genai-semantic-search-sample_0.0.1.mtar strict=true mode= t="./mta_archives"" command...
[2025-11-06 02:05:43] INFO validating the MTA project
[2025-11-06 02:05:43] INFO running the "before-all" build...
[2025-11-06 02:05:43] INFO executing the "npm run build:cf --prefix api" command...

genai-semantic-search-sample@1.0.0 build:cf
npm run build:cds && npm run build:ts && npm run cleanup:ts

genai-semantic-search-sample@1.0.0 build:cds
cds build --production

building project with {
versions: { cds: '8.9.6', compiler: '5.9.12', dk: '8.9.10' },
target: 'gen',
tasks: [
{ src: 'db', for: 'hana', options: { model: [ 'db', 'srv' ] } },
{ src: 'srv', for: 'nodejs', options: { model: [ 'db', 'srv' ] } }
]
}
.done > wrote output to:
gen/db/package.json
gen/db/src/.hdiconfig
gen/db/src/gen/.hdiconfig
gen/db/src/gen/.hdinamespace
gen/db/src/gen/SampleService.DocumentWithSimilarity.hdbtable
gen/db/src/gen/SampleService.Documents.hdbview
gen/db/src/gen/sample.db.Documents.hdbtable
gen/db/undeploy.json
gen/srv/srv/_i18n/i18n.json
gen/srv/srv/csn.json

[ERROR] srv/sample.cds:22:12: Type “cds.Vector” is not supported for OData ‘4.0’ (in entity:“SampleService.Documents”/element:“embedding”)

CDS compilation failed
[2025-11-06 02:05:44] ERROR the "before-all"" build failed: could not execute the "npm run build:cf --prefix api" command: exit status 1
make: *** [Makefile_20251106020543.mta:28: pre_build] Error 1
[2025-11-06 02:05:44] ERROR could not build the MTA project: could not execute the "make -f Makefile_20251106020543.mta p=cf mtar=genai-semantic-search-sample_0.0.1.mtar strict=true mode= t="./mta_archives"" command: exit status 2
Error: could not build the MTA project: could not execute the "make -f Makefile_20251106020543.mta p=cf mtar=genai-semantic-search-sample_0.0.1.mtar strict=true mode= t="./mta_archives"" command: exit status 2

Thanks

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions