on 2024 Aug 14 9:52 AM
Dear Community,
I'm trying to import Customer Material (A2X) API_CUSTOMER_MATERIAL_SRV.edmx into my CAP project and the cds import command gives following error:
TypeError: Cannot read properties of undefined (reading 'Name')
at /managed-content/globals/pnpm/5/.pnpm/@sap+cds-dk@8.1.1/node_modules/@sap/cds-dk/lib/import/odata/v2parser.js:1625:72
at Array.map (<anonymous>)
at _checkEntityType (/managed-content/globals/pnpm/5/.pnpm/@sap+cds-dk@8.1.1/node_modules/@sap/cds-dk/lib/import/odata/v2parser.js:1625:43)
at _generateEDMXJSON2CSN (/managed-content/globals/pnpm/5/.pnpm/@sap+cds-dk@8.1.1/node_modules/@sap/cds-dk/lib/import/odata/v2parser.js:1675:4)
at Object.getEdmxv2CSN (/managed-content/globals/pnpm/5/.pnpm/@sap+cds-dk@8.1.1/node_modules/@sap/cds-dk/lib/import/odata/v2parser.js:1740:18)
at getCsn (/managed-content/globals/pnpm/5/.pnpm/@sap+cds-dk@8.1.1/node_modules/@sap/cds-dk/lib/import/odata/index.js:117:20)
at new Promise (<anonymous>)
at _generateCSN (/managed-content/globals/pnpm/5/.pnpm/@sap+cds-dk@8.1.1/node_modules/@sap/cds-dk/lib/import/odata/index.js:116:10)
at async Object.edmx2csn (/managed-content/globals/pnpm/5/.pnpm/@sap+cds-dk@8.1.1/node_modules/@sap/cds-dk/lib/import/odata/index.js:75:12)
at async cds_import_from_edmx (/managed-content/globals/pnpm/5/.pnpm/@sap+cds-dk@8.1.1/node_modules/@sap/cds-dk/lib/import/importapi.js:76:15)
Do you have any idea why?
(It worked for some other edmx like business partner for example)
This appears to be fixed now. The issue disappeared for us now.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
My bad. We switched to @Sisn/cds-dk/@7 installed in the project instead of the global version (8).
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.