function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Nicole Nammour 1Nicole Nammour 1 

URGENT! REST callout generating apex heap size error

When calling a rest webservice (via apex.deserializeUNTYPED) having JSON too large, I'm getting heap size error.
When moving to JSON Parser, I'm getting CPU Time limit exceeded.

I can't filter the data, as all the data is needed to be integrated in Salesforce.
Any idea?? Please it's so URGENT
Tuan LuTuan Lu
Hi Nicole, the CPU time limit is probably caused by either your rest service taking too long to respond or the records your inserting is taking too long to insert. Synchronous transactions in salesforce have a 60 sec time limit but asynch transactions have 120 sec time limit if you can use that instead.