Regex replace exceeds heap limit

  • 1
  • Problem
  • Updated 3 years ago
  • Not a Problem
Hello,

We have a complicated activity(Event) report generated with accounts, opportunities related to couple of custom objects. Initially, we were getting JSON heap size issue. To resolve that we removed all redundant fields from the models. The we got the new error "Regex replace exceeds heap limit ". I don,t think the issue is with the data as the user who is getting the error does not have even 50 activities created in the system. 
Has anyone encountered something like this before. 
Any help is much appreciated.

Regards,
Riju
Photo of Riju Chakraborty

Riju Chakraborty

  • 284 Points 250 badge 2x thumb

Posted 3 years ago

  • 1
Photo of Riju Chakraborty

Riju Chakraborty

  • 284 Points 250 badge 2x thumb
I figured out the issue. It was related to incorrect config of when to abort the condition in model. What was happening is that when there was no data in source model, it was querying all data.
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Sweet!