System.LimitException: JSON string exceeds heap size limit #368
Replies: 4 comments 15 replies
-
Hey Tom, that's an interesting error and I'd be curious to hear where exactly you're running into it. If you have your Apex Developer Console open while running rollups, for example, you should be able to search for that In particular, I'm curious if this is happening with Rollup Logging Enabled (from your |
Beta Was this translation helpful? Give feedback.
-
Thanks, James. I'm using the "Perform Rollup__mdt-based rollup" action. Does that answer your question? Also - this is followed by the "Process Deferred Rollups" action in the Flow. The Flow errors-out before it gets to the Process Deferred Rollups action. |
Beta Was this translation helpful? Give feedback.
-
Hi James - I installed the update this morning -- and, while the Heap Size issue went away I'm back to the initial error - an Apex timeout. I've attached the log. If you get a chance, could you take a look and let me know what you think may be causing the error? Can't say thanks enough! |
Beta Was this translation helpful? Give feedback.
-
What do you have set on the Org Default record for the Batch Chunk Size and Max Lookup Rows Before Batching?
I would try lowering the numbers for both those fields. There can be CPU timeouts when updating parent records if there’s more automation in the org in question for updates made there; typically tweaking those amounts is enough to get everything working smoothly.
I won’t be able to take a detailed look at the log for a few days, but let me know if the above suggestions work and otherwise I’ll be happy to take a look as soon as I am able. Thanks!
… On Oct 5, 2022, at 9:18 AM, staggerlee99 ***@***.***> wrote:
Hi James - I installed the update this morning -- and, while the Heap Size issue went away I'm back to the initial error - an Apex timeout. I've attached the log. If you get a chance, could you take a look and let me know what you think may be causing the error? Can't say thanks enough!
apex-07L7V00005KhI5PUAV.log
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you commented.
|
Beta Was this translation helpful? Give feedback.
-
Hi all - I'm getting this error "System.LimitException: JSON string exceeds heap size limit" with just under 3,000 records. I have 5 rollups, two COUNTS, two SUMS and a LAST. For SUMS, I'm using a number field ("Counter__c") on each row that defaults to "1".
Here are the where clauses with the roll-up type in ():
Any insights on what I may be doing incorrectly would be greatly appreciated!
-Tom
Beta Was this translation helpful? Give feedback.
All reactions