Skip to main content
Nintex Community Menu Bar
Question

Apex CPU time limit exceeded

  • July 11, 2024
  • 1 reply
  • 16 views

bill.fox
Forum|alt.badge.img+7

After I am able to access the following page once: https://dorothy–skuid.na103.visual.force.com/apex/UI?id=a0g3a000005ibNM&sfdc.override=1&page=RM1_Stack_Member

When I try to bring up a second time it get this:

Apex CPU time limit exceeded

An unexpected error has occurred. Your solution provider has been notified. (skuid)

Started happening today.

1 reply

Forum|alt.badge.img+10
  • Nintex Employee
  • July 11, 2024

Hi Bill,

If you’re still seeing this, my first recommendation would be to ensure that all of the page’s models have limits on how many records they’ll load. It’s a quick thing to check.

My sense is that this particular error may be happening because server-side processing of your models’ requests has taken too long, and the operation has timed out. Things like using “Contains” in your model conditions can contribute to a problem like this, especially if there are lots of records on the object you’re querying.

More here: https://docs.skuid.com/latest/v2/en/skuid/best-practices/skuid-page-performance-guide.html#apex-code-processing

and here: https://docs.skuid.com/latest/v2/en/skuid/best-practices/skuid-page-performance-guide.html#improving-query-performance