Resolving Workflow Definition Publishing Errors
When you publish workflow definitions by setting the Workflow fields in Workflow Definition records, the following error message can sometimes appear:
The related object "Job" has records in non-final states that relate to 4 previous workflow definition(s). No new version of the workflow can be created as this is the maximum permitted. Please update the records from the older workflow definition(s) to a final state (e.g. Canceled), or contact your system administrator.
This error message means that the Maximum Workflow Versions field value defined in the active System Setting record has been exceeded. To address this issue, you can either increase the defined maximum number of workflow definitions, or call an operation to update the status of all affected records.
To resolve workflow definition publishing errors:
1. In
Max Admin, on the
System Management (
) launchpad menu, click
System Settings, and then in the list view, click to open the active
System Setting record.
2. On the record page, on the
Overview tab, in the
Default Settings section, in the
Maximum Workflow Versions field, increase the value, and then in the top left corner, click
Save and Close (
).
| The default value is 4, and the maximum acceptable value is 6. |
3. Alternatively, to update Status values in the related Job or Appointment records to an end state to allow publishing, call the Set Job Appointment State operation in the REST API.
GET https://[tenant_url]/instance/set_job_appt_to_end_status?object_identifier=svmx_job
The object_identifier parameter defines the target object for whose records you want to update the Status value to a final state.
| This is a deferred operation, which means that it runs asynchronously. The operation returns a UUID. To trigger this operation, you must be in a non-production environment in which you have the System Administrator or Developer role. The operation updates Status field values for all records that belong to the specified object to a final or end state. |
For more information: