a month ago
I have been following the SAP MDK Documentations. I am stuck at the annotations (intermediate) level. When creating annotation i get the following error in BTP IDE.
"Command failed: yo @ext-mdkvsc-npm-rel/mdk:newEntity --data "/tmp/.mdk_anno_config.json" --force ✖ An error occured while running @ext-mdkvsc-npm-rel/mdk:newEntity#writing Error @ext-mdkvsc-npm-rel/mdk:newEntity --data /tmp/.mdk_anno_config.json --force When copying multiple files, provide a directory as destination TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ERR_ASSERTION') at process.set [as exitCode] (node:internal/bootstrap/node:123:9) at process.exit (node:internal/process/per_thread:182:24) at onError (/managed-content/globals/pnpm/5/.pnpm/yo@4.3.1_mem-fs@2.3.0/node_modules/yo/lib/cli.js:117:11) at /managed-content/globals/pnpm/5/.pnpm/yo@4.3.1_mem-fs@2.3.0/node_modules/yo/lib/cli.js:165:48"
If i try to create a new entity using npm i get :
✖ An error occured while running @ext-mdkvsc-npm-rel/mdk:newEntity#writing
Error @ext-mdkvsc-npm-rel/mdk:newEntity --data /tmp/.mdk_anno_config.json --force
When copying multiple files, provide a directory as destination
TypeError [ERR_INVALID_ARG_TYPE]: The "code" argument must be of type number. Received type string ('ERR_ASSERTION')
at process.set [as exitCode] (node:internal/bootstrap/node:123:9)
at process.exit (node:internal/process/per_thread:182:24)
at onError (/managed-content/globals/pnpm/5/.pnpm/yo@4.3.1_mem-fs@2.3.0/node_modules/yo/lib/cli.js:117:11)
at /managed-content/globals/pnpm/5/.pnpm/yo@4.3.1_mem-fs@2.3.0/node_modules/yo/lib/cli.js:165:48
Any suggestions would he really helpful since i am new to SAP.
There appears to be an issue with the generator for the CRUD annotations. I will open an internal issue to investigate further. In the meantime you can still proceed with the tutorial by selecting the List Detail template instead when generating MDK metadata from OData annotations.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
With recent release of MDK editor, the original issue has been fixed. Please test again.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
No @MonishKanna. Still waiting on the revert. Hoping from a revert from @bill_froelich soon.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
10 | |
10 | |
8 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.