|Applies To||RSA Product Set: Archer|
RSA Version/Condition: 6.x
|Issue||An Advanced Workflow job for a questionnaire fails at an Update Content node. The following error is written to the Advanced Workflow Service log file:|
|Cause||The questionnaire's advanced workflow is failing on the Update Content node because there are required fields that have not been populated. |
A questionnaire record can be created with empty required fields. RSA engineering determined that this is working as expected according to ARCHER-28528 "Questionnaire can be saved with empty required fields."
Once the questionnaire record is created in this state, if AWF tries to update a field, it then needs to save the record. The record save fails validation because of the empty required fields. Thus, the AWF job fails.
|Resolution||Archer Help article "Building Advanced Workflows":|
Each newly created record is enrolled in the advanced workflow process.
Note: If you are creating an advanced workflow for a questionnaire, keep in mind that questionnaire records are first saved when a user clicks Apply after selecting the target of the assessment (or when the campaign creates and assigns the assessments). If you choose to enroll new records, this means that the record would be enrolled in an advanced workflow before the record is first presented to the user. Keep this in mind in the further design of the questionnaire and workflow. For example, if you have any required fields in the questionnaire, and the workflow proceeds through an Update Content node immediately upon enrollment, the advanced workflow job will enter an error state (unless the required fields have been populated by the workflow). If the workflow design requires the use of required fields, one option is to place the workflow into an Evaluate Content...Wait for Update loop, which can hold the record in that state until a user has populated the fields. Another option is to use a different advanced workflow enrollment option