000036233 - Error message "Unhandled exception occured: [Script: CreateTaskScript]" when processing Advanced Workflow Records in RSA Archer

Document created by RSA Customer Support Employee on May 4, 2018Last modified by RSA Customer Support Employee on Jul 17, 2019
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000036233
Applies ToRSA Product Set: RSA Archer
RSA Product/Service Type: Advanced Workflow
RSA Version/Condition: 6.x
Platform: Windows
IssueThe Advanced Workflow processing for the record goes into an Error state and the following error is logged:
 

<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
<System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
  <EventID>0</EventID>
  <Type>3</Type>
  <SubType Name="Error">0</SubType>
  <Level>2</Level>
  <TimeCreated SystemTime="2018-04-09T14:27:50.6966265Z" />
  <Source Name="Archer.NET" />
  <Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" />
  <Execution ProcessName="WpServiceHost" ProcessID="3636" ThreadID="12916" />
  <AssemblyVersion>6.3.101.1002</AssemblyVersion>
  <Computer>SERVER</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: CreateTaskScript] [NodeId: 36003:CUST] [JobId: 2527:CUST] [ProcRef: e9a50260eeb5d590]</Description>
     <AppDomain>WpAppDomain~1</AppDomain>
     <Exception>
      <Message>
---------- Exception ----------
[System.InvalidOperationException]
Failed to save a task:
<?xml version="1.0" encoding="utf-16"?><ValidationMessage><Key>ValidationMessageTemplates:RequiredField</Key><Severity>Critical</Severity><Reason>ContentSaveValidation</Reason><Validator>ArcherTech.Kernel.ErrorHandling.Rules.TextFieldRequiredRule, ArcherTech.Kernel, Version=6.3.101.1002, Culture=neutral, PublicKeyToken=null</Validator><XmlData>&lt;ROOT&gt;&lt;RelatedFieldId order="1"&gt;2247&lt;/RelatedFieldId&gt;&lt;/ROOT&gt;</XmlData></ValidationMessage>
   at ArcherTech.Services.WorkflowService.Scripts.Scripts.Task.SaveTaskCommand`1.Execute(T 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)
--- End of stack trace from previous location where exception was thrown ---
   at ArcherTech.Services.WorkflowService.Scripts.Scripts.Task.FailCreateTaskCommand.Execute(CreateTaskScriptContext context)
   at ArcherTech.Utility.ExecutionTask.PlanExecutionCommand`1.Execute(T context)
   at ArcherTech.Services.WorkflowService.Scripts.CreateTaskScript.Execute(ScriptContext scriptContext)
   at ArcherTech.Services.WorkflowService.Scripts.ScriptController.Run[T](IWorkpointScript workpointScript)</Message>
     </Exception>
    </TraceRecord>
   </DataItem>
  </TraceData>
</ApplicationData>
</E2ETraceEvent>
CausePossible causes:
  • There is a User Action node in the Advanced Workflow path of the record.
  • The User Action node is configured to Create Tasks.
  • Task Management application has been modified from the out of the box default.
  • Task Management application has had additional fields marked as required.
  • The Advanced Workflow fails to create the Task record because it does not have the data for the required field.
  • The Advanced Workflow for the record is rolled back 1 or more nodes and marked to be in an error state.
ResolutionOnly the out-of-the-box fields below should be marked as required in the Task Management application or it may cause Workflow nodes that create Tasks to fail.
  • Subject {C1684FA0-C282-43F8-87C5-B2F518710E93}
  • Priority {934E59CB-8D91-44CF-9941-1ACD1E3DCECA}
  • Status {9E559DFC-B374-4EC7-BF00-1ECC8F2683A3}

Perform the steps below to correct the issue.
  1. Navigate to Administration -> Applications -> Task Management -> Layout.
  2. Look for the field (both on and off layout) marked with a red asterisk which indicates the field is required.
  3. Confirm the field is not one of the out-of-the-box required fields in Task Management
  4. Edit the field and uncheck the Required Field option.
  5. Save the field.

Attachments

    Outcomes