on 2021 Aug 19 9:16 PM
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
Request clarification before answering.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ashwin,
I'm glad it works!
Best regards,
David
User | Count |
---|---|
73 | |
30 | |
9 | |
7 | |
7 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.