000036385 - Advanced Workflow Update Content node fails for questionnaire created with empty required fields in RSA Archer 6.4

Document created by RSA Customer Support Employee on Sep 17, 2018
Version 1Show Document
  • View in full screen mode

Article Content

Article Number000036385
Applies ToRSA Product Set: Archer
RSA Version/Condition: 6.4
 
IssueAn Advanced Workflow job for a questionnaire fails at an Update Content node.  The following error is written to the Advanced Workflow Service log file:
 

<AssemblyVersion>6.4.0.1135</AssemblyVersion>
        <Computer>xxxxxxxxxxxxx</Computer>
    </System>
    <ApplicationData>
        <TraceData>
            <DataItem>
                <TraceRecord Severity="Error" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord">
                    <TraceIdentifier>Archer.NET</TraceIdentifier>
                    <Description>Unhandled exception occured: [Script: UpdateContentScript] [NodeId: 44:CUST] [JobId: 4:CUST] [ProcRef: 51ce800e739c61b0]</Description>
                    <AppDomain>WpAppDomain~1</AppDomain>
                    <Exception>
                        <Message>
---------- Exception ----------
[System.InvalidOperationException]
Failed to Update Content for record 11936574
   at ArcherTech.Services.WorkflowService.Scripts.Scripts.CompleteNodeWithErrorCommand`1.Execute(T context)
   at ArcherTech.Utility.ExecutionTask.PlanExecutionCommand`1.Execute(T context)
   at ArcherTech.Services.WorkflowService.Scripts.ScriptController.Run[T](IWorkpointScript workpointScript)
---------- Inner Exception 1 ----------
[System.InvalidOperationException]
Token StartElement in state EndRootElement would result in an invalid XML document. Make sure that the ConformanceLevel setting is set to ConformanceLevel.Fragment or ConformanceLevel.Auto if you want to write an XML fragment.
   at System.Xml.XmlWellFormedWriter.ThrowInvalidStateTransition(Token token, State currentState)
   at System.Xml.XmlWellFormedWriter.AdvanceState(Token token)
   at System.Xml.XmlWellFormedWriter.WriteStartElement(String prefix, String localName, String ns)
   at ArcherTech.Services.WorkflowService.Scripts.Utility.ErrorHandlingExtensions.FromValidationMessage(IEnumerable`1 validationMessages)
   at ArcherTech.Services.WorkflowService.Scripts.Scripts.UpdateContentScript.SaveContentCommand.Execute(UpdateContentScriptContext context)
   at ArcherTech.Utility.ExecutionTask.CompositeCommand`1.Execute(T context)
   at ArcherTech.Utility.ExecutionTask.CompositeCommand`1.Execute(T context)
   at ArcherTech.Utility.ExecutionTask.PlanExecutionCommand`1.Execute(T context)</Message>
                    </Exception>


 
CauseThe 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. 
ResolutionThis has been logged as a software defect.  

ARCHER-51434 "Advanced Workflow Update Content node fails for questionnaire created with empty required fields" 
WorkaroundOne workaround would be to set the transition out of the Update Content node to Always complete. The field would not be updated, but the job would move on to the next node. 

Attachments

    Outcomes