cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to proceed on MDK Annotations

ABMetallica
Explorer
0 Kudos
323

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. 

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos
Can you please provide the link to the documentation you are following?
MonishKanna
Discoverer
0 Kudos
I'm following the same documentation and I'm facing the same issue too. Did you find any fix? @ABMetallica?

Accepted Solutions (1)

Accepted Solutions (1)

bill_froelich
Product and Topic Expert
Product and Topic Expert
0 Kudos

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.

ABMetallica
Explorer
0 Kudos
Sure, thank you for the update.

Answers (3)

Answers (3)

Jitendra_Kansal
Product and Topic Expert
Product and Topic Expert
0 Kudos

 

@ABMetallica 

With recent release of MDK editor, the original issue has been fixed. Please test again.

 

ABMetallica
Explorer
0 Kudos

No @MonishKanna. Still waiting on the revert. Hoping from a revert from @bill_froelich soon.

ABMetallica
Explorer
0 Kudos