Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create a CAP Business Service with Node.js Using Visual Studio Code #23826

Open
Drummic opened this issue Nov 27, 2024 · 1 comment
Open

Create a CAP Business Service with Node.js Using Visual Studio Code #23826

Drummic opened this issue Nov 27, 2024 · 1 comment
Assignees
Labels

Comments

@Drummic
Copy link

Drummic commented Nov 27, 2024

Tutorials: https://developers.sap.com/tutorials/cp-apm-nodejs-create-service.html

Hello, in the example for the csv files there are the headers missing. The import into SQLite fails.
db/data/my-bookshop-Authors.csv should look like:

ID,name
101,Emily Brontë
107,Charlotte Brontë
150,Edgar Allen Poe
170,Richard Carpenter

and db/data/my-bookshop-Books.csv should look like:

ID,title,author_ID,stock
201,Wuthering Heights,101,12
207,Jane Eyre,107,11
251,The Raven,150,333
252,Eleonora,150,555
271,Catweazle,170,22

@renejeglinsky
Copy link
Contributor

Thanks @Drummic for raising this issue.
With the command cds add data you add the needed files including the header line. So the csv files you copy are to be added and should not replace the existing content in those csv files. Can you try this and let me know if it works for you?

Best
René

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants