sapmentors / cap-community

SAP CAP Community
MIT License
97 stars 26 forks source link

[INTERNAL ERROR] TypeError: Cannot use 'in' operator to search for 'LineNum' in null #85

Open gregorwolf opened 4 years ago

gregorwolf commented 4 years ago

Hello CAP Team,

when I execute cds watch for the branch cleared-b1-metadata of the project sap-business-one-odata-cap I get the following error:

[INTERNAL ERROR] TypeError: Cannot use 'in' operator to search for 'LineNum' in null at InsertBuilder._traverseValue (/Users/gwolf/Documents/Projects/cap/sap-business-one-odata-cap/node_modules/@sap/cds-runtime/lib/cds-sql/sql-builder/InsertBuilder.js:222:16)

as soon as I try to fill the data in init.js also with the array DocumentLines from the result that is returned by the sandbox service from api.sap.com.

I guess this is caused by the limitation described for array of. Would be good to know when this feature will be supported.

Best regards Gregor

gregorwolf commented 4 years ago

Reported also via the SAP Service Marktplace: 381101 / 2020

mariayord commented 4 years ago

Hi @gregorwolf ,

We plan to implement this feature in Q3 this year.

Best Regards, Maria