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 eobject 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?