cancel
Showing results for 
Search instead for 
Did you mean: 

CAP- RangeError: Maximum call stack size exceeded

0 Kudos
1,634

Hello,

When I run cap application using "cds watch"(running app on local host) and do deep insert and deep update then working fine.

But when application deploy in cloud foundry, deep insert is working fine. But deep update is not working, giving below error.

INTERNAL ERROR] RangeError: Maximum call stack size exceeded
2021-08-19T16:35:40.340+0000 [APP/PROC/WEB/0] ERR     at new Map (<anonymous>)
2021-08-19T16:35:40.340+0000 [APP/PROC/WEB/0] ERR     at UpdateBuilder._getFlattenColumnValues (/home/vcap/app/node_modules/@sap/cds/libx/_runtime/db/sql-builder/UpdateBuilder.js:140:17)
2021-08-19T16:35:40.340+0000 [APP/PROC/WEB/0] ERR     at /home/vcap/app/node_modules/@sap/cds/libx/_runtime/db/sql-builder/UpdateBuilder.js:161:36
2021-08-19T16:35:40.340+0000 [APP/PROC/WEB/0] ERR     at Array.forEach (<anonymous>)
2021-08-19T16:35:40.340+0000 [APP/PROC/WEB/0] ERR     at UpdateBuilder._getFlattenColumnValues (/home/vcap/app/node_modules/@sap/cds/libx/_runtime/db/sql-builder/UpdateBuilder.js:141:23)
2021-08-19T16:35:40.340+0000 [APP/PROC/WEB/0] ERR     at /home/vcap/app/node_modules/@sap/cds/libx/_runtime/db/sql-builder/UpdateBuilder.js:161:36
2021-08-19T16:35:40.340+0000 [APP/PROC/WEB/0] ERR     at Array.forEach (<anonymous>)
2021-08-19T16:35:40.340+0000 [APP/PROC/WEB/0] ERR     at UpdateBuilder._getFlattenColumnValues (/home/vcap/app/node_modules/@sap/cds/libx/_runtime/db/sql-builder/UpdateBuilder.js:141:23)
2021-08-19T16:35:40.340+0000 [APP/PROC/WEB/0] ERR     at /home/vcap/app/node_modules/@sap/cds/libx/_runtime/db/sql-builder/UpdateBuilder.js:161:36
2021-08-19T16:35:40.340+0000 [APP/PROC/WEB/0] ERR     at Array.forEach (<anonymous>)

The payload looks similar like below:

Url: "<EntityName>/<entityKey>"

{

ID:1

association1:[{

id:2,

association2:[{

id:3,

association3:[{

id:4

}]

}]

}]

}

Maybe david.kunz2 can you please help me here.

BR,

Ashwin MV

View Entire Topic
0 Kudos

Hi,

Issue is, CDS version installed on local(5.4.1) and on server are different. the cds version in package.json is changed, now it is working fine.

Thank you david.kunz2,

BR

Ashwin MV

david_kunz2
Product and Topic Expert
Product and Topic Expert

Hi Ashwin,

I'm glad it works!

Best regards,
David