Skip to main content
Nintex Community Menu Bar
Question

Visualforce Remoting Exception: Apex CPU time limit exceeded [object Object]

  • July 11, 2024
  • 1 reply
  • 5 views
  • Translate

Forum|alt.badge.img+3

My organization requires its grantee organizations to submit a complete list of their staff to us once a year via a Skuid page. The staff records are held in the Contact object in Salesforce. On submission, the information provided on the form is copied into a Staff Snapshot custom object for archival purposes. For our largest grantees (with ~500 staff), the page throws an error on submission. Skuid simply displays “There was an error” briefly. The browser console shows the message “Visualforce Remoting Exception: Apex CPU time limit exceeded [object Object]”.

The Submit button on the Skuid page sets three fields in a record from a model and saves the record. This save triggers a Salesforce Flow which writes the Staff Snapshot records. If I recreate this exact set of steps through the user interface, no error is thrown. Is there anything I can do in Skuid to avoid this problem?

Did this topic help you find an answer to your question?

1 reply

Forum|alt.badge.img+13

Peter, it sounds like Salesforce is taking a really long to process the save and run that Flow — I can’t say why it’s only failing in Skuid and not the standard UI, but it definitely sounds like there’s a lot of server-side processing time going on. If the Skuid Model is truly just changing three fields and saving that change, i don’t think there’s anything you can do in Skuid to change this — you might need to investigate speeding up / optimizing your Flow or other logic (e.g. other Process Builder / Workflow ) that happens when this object is saved.

Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie Settings