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 @david.kunz2,
I am trying to do a similar thing where we are calling one of the Email functionality from a service provider and in case of mass email sending, it is failing with the same error when we exceed the number of items selected to send emails. The number of items selected varies from different sub-account to the other. I checked for the cds version and we have it the same.
Can you please throw some inputs for debugging the issue?
Thanks,
Anshuman
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello @anshuman_s22,
I am facing the same issue.
Have you found a solution to this problem?
Best regards,
Benjamin
hi @anshuman_s22 and @Animatron56 update your CDS and CAP tools using following command :" npm update -g @sap/cds-dk " and "npm update"
User | Count |
---|---|
74 | |
30 | |
9 | |
7 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.