Condenser script execution error

Overview

When using the Skedulo mobile app, if you (as a resource) try to view a new job that contains custom forms and you do not have the required user permissions to do so, you will be presented with the following type of message:

Condenser - Script Execution Error. Request failed with status code 500… Could not find Skedulo object… Check that the Skedulo package is installed and that you have permission to access this object.

An example of when this might occur would be when you try to view the job and are defined as a Resource. You do not have the required custom permission set allocated to your user profile that would permit you to view (and possibly edit) the job’s custom forms.

The Skedulo mobile app displaying a condenser script execution error.

As a Skedulo mobile app user (Resource)

If you experience this type of error, i.e., a script execution error, it would be great if you could capture a screenshot (or write down the text that is displayed) and pass it onto your support team. These types of errors cannot be fixed by simply closing the Skedulo mobile app and starting again as the error is not coming from in the app itself.

As an Admin user for the team

Reading the returned error, it is possible to identify areas that might be preventing your resource from successfully viewing the job. Using the image above as an example, a Skedulo object JobProducts could not be found, the error text suggests checking the Skedulo package and permissions as possible causes of the problem. These items are configured in the CRM (in this example Salesforce), rather than in the Skedulo web app.

The following points could be useful to check:

  1. Does the end-user have the required customized permissions applied to access the object mentioned (i.e., an additional customized set of permissions that are not provided by default)?

Adding a custom permission set in Salesforce

In the following example, an additional permission set will be created to provide access to a custom form object named Job Products (in the Resource permission set this object is not accessible by default).

Once created it must then be added to the required user’s profile so they can access the job).

Salesforce

Execute the following using Salesforce Lightning:

  1. Select Setup.
  2. Locate Permission Sets (in section Users).
  3. Click the button named New.
  4. In the field provided, enter a text label for the permission set, e.g., Job Products Permission Set.
  5. Tab to the next field (it auto-populates).
  6. Click Save.
  7. For the new permission set, click on Object Settings.
  8. Locate and select the required object (in this example Job Products).
  9. Edit the access values—check (tick) all the boxes.
  10. Save all changes.
  11. Now, go to the user’s profile – click on the user’s name or their username.
  12. Scroll down to section Permission Set Assignments and click Edit Assignments.
  13. Locate the new permission set from those available in the left-hand box.
  14. Click the Add button to enable the new permission set.
  15. Save and exit.

The resource should now be able to view (and possibly edit) the custom form in the job.

How to create a new permission set for the job products object.

How to create a new permission set for the job products object.

How to add the new custom permission set to the user’s profile.

How to add the new custom permission set to the user’s profile.