You are right, the error comes from the source application. Please ignore.
Original Message:
Sent: Feb 29, 2024 01:15 AM
From: Raju Gurram
Subject: Error message "JSON string exceeds heap size limit"
@Laurent LANDREAU
Looking at the error message, I think, it was not from the gateway, but from the backend service due to routing. Could you please be more specific about:
- is this error observed from one of JSON specific assertions?
- is this error observed from the SSG logs?
- is this an error response from the backend services?
Original Message:
Sent: Feb 27, 2024 12:27 AM
From: Laurent LANDREAU
Subject: Error message "JSON string exceeds heap size limit"
We are running API v11.CR1. We are querying an application that returns a JSON array of 250+ entries, each entry containing 400 attributes.
When the result set goes over that number we get the following error message:
"errorCode":"APEX_ERROR","message":"System.LimitException: JSON string exceeds heap size limit\n\n(System Code)\nClass.RestRoute.execute: line 50, column 1\nClass.DWS_DataExportApi.BaseApi.executeWithErrorLogging: line 530, column 1\nClass.DWS_DataExportApi.handleRequest: line 197, column 1\nClass.DWS_DataExportApi.handleGet: line 166, column 1"
Questions:
- What is that heap size limit that is mentioned?
- Is there any way to alter that limit, if yes how, and what is the impact?
- Apart from limiting the result set, or trimming down the number of attributes, what option do I have to bypass or lift that limit?
Thank you
Laurent LANDREAU
Integration Architect, Brisbane, Australia