Skip to Content
0
Jun 29, 2020 at 03:58 PM

About bugs - cds command-line tool cannot import many .edmx files

475 Views

I found many (49) .edmx files in the Business Hub which the cds command-line tool fails to import - I obtained various error messages, followed by "Please report this error". For an example see below. Report I would, if I could, but I do not understand the formalities of bug reporting (I do not have an S-User ID, I have a C-User ID - no way to post a bug report, it seemed to me). Suggestions welcome how to report the bug(s).

Example error message from the cds command-line tool, called to import an .edmx document:

[INTERNAL ERROR] SyntaxError: Unexpected token } in JSON at position 51
at JSON.parse (<anonymous>)
at _generateEDMXJSON2CSN (C:\Users\User\AppData\Roaming\npm\node_modules\@sap\cds-dk\node_modules\@sap\edm-converters\lib\edmToCsn\lib\odatav2\v2parser.js:913:32)
at Object.getEdmxv2CSN (C:\Users\User\AppData\Roaming\npm\node_modules\@sap\cds-dk\node_modules\@sap\edm-converters\lib\edmToCsn\lib\odatav2\v2parser.js:926:28)
at getCsn (C:\Users\User\AppData\Roaming\npm\node_modules\@sap\cds-dk\node_modules\@sap\edm-converters\lib\edmToCsn\lib\main.js:181:29)
at new Promise (<anonymous>)
at Object.generateCSN (C:\Users\User\AppData\Roaming\npm\node_modules\@sap\cds-dk\node_modules\@sap\edm-converters\lib\edmToCsn\lib\main.js:180:16)
at _edmx2csn (C:\Users\User\AppData\Roaming\npm\node_modules\@sap\cds-dk\bin\import.js:128:43)
at Object._import (C:\Users\User\AppData\Roaming\npm\node_modules\@sap\cds-dk\bin\import.js:57:23)