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 Kunz can you please help me here.
BR,
Ashwin MV