cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Cloud SDK - Javascript RuleFieldMappingBeanList.js file missing

0 Kudos

I am working on a node project in which I want to use the Position Management API under Employee Central API Package. So After generating the entities from ECPositionManagement.edmx file, while importing any Entity from Position Management, I am getting "error uncaughtException: Cannot find module './RuleFieldMappingBeanList'"

Error: Cannot find module './RuleFieldMappingBeanList'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (C:\Users\Rahil\Desktop\SAP Extention\SFSDKAPP\srv\generated\sfo-data-service-1\index.js:24:10)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)

So I went into the folder where all the entities are generated and found that there no such file present but I found one typescript file with the same name but there was no JS file of that, whereas for each entity there is one JS and one Typescript file. I don't know where I will get it JS file.

dhem
Active Participant
0 Kudos

Hi Rahil, thanks for reporting this error, I was able to reproduce it. We will investigate the issue and fix it!

0 Kudos

Hi Dennis, Around when we can expect the resolution?

dhem
Active Participant
0 Kudos

Sorry, missed your comment. I cannot give you a good estimation right now, but I would hope that someone picks it up in the next two weeks. Is this blocking you currently?

0 Kudos

No Prob Dennis. Actually yes its kind of blocker for me, because my whole app is dependent on Position Entity.

View Entire Topic
Junjie
Advisor
Advisor
0 Kudos

Hi Rahil,

sorry for blocking you app.

We fixed the issue last week and made a release yesterday.

Please try our new version:1.21.0 and generate the VDMs again.

Please let me know whether it helps.

Best regards,

Junjie