Important Update: Archer Community Scheduled Maintenance on November 23–24 - New Community Launching Soon! Learn More..

cancel
Showing results for 
Search instead for 
Did you mean: 
No ratings
KB-Sync1
Archer Employee
Archer Employee

Article Number

000039968


Applies To


Product(s): Archer
Version(s): All Versions
Primary Deployment: On Premises/AWS Hosted/AWS SaaS

Description


The 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= /> 
        <Source Name="Archer.NET" /> 
        <Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /> 
        <Execution ProcessName="WpServiceHost (ver 4.40.31.0)" ProcessID="4204" ThreadID="7904" /> 
        <AssemblyVersion>1.0.12.0</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: 87007:CUST] [JobId: 6649:CUST] [ProcRef: cde2507b3c046346] [CorrelationId: 5dbf8ff6-2810-419b-a9f7-559798330633]</Description> 
                    <AppDomain>WpAppDomain~2</AppDomain> 
                    <Exception> 
                        <Message>
---------- Exception ----------
[System.InvalidOperationException]
Unable to create a task
   at Rsa.Archer.WorkflowService.Scripts.Scripts.Shared.CompleteNodeWithErrorCommand`1.Execute(T context, Exception exception)
   at Rsa.Archer.WorkflowService.Common.CommandFramework.TryCatchCommand`1.Execute(T context)
   at ArcherTech.Services.WorkflowService.Scripts.ScriptController.Run[T](IWorkpointScript workpointScript)
---------- Inner Exception 1 ----------
[Flurl.Http.FlurlHttpException]
  Call failed with status code 400 (Bad Request): POST https://localhost:13210/content-service/api/workflow/task-management/guid
  ----------- Response Body -----------
  {"type":"https://tools.ietf.org/html/rfc7231#section-6.5.1","title":"Bad Request","status":400,"instance":null,"messages":["ValidationMessageTemplates:MaxSelection"]}
  --------- Response Body End ---------
   at Flurl.Http.FlurlRequest.<HandleExceptionAsync>d__23.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Flurl.Http.FlurlRequest.<SendAsync>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at Flurl.Http.FlurlRequest.<SendAsync>d__19.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Flurl.Http.HttpResponseMessageExtensions.<ReceiveJson>d__0`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at Rsa.Archer.WorkflowService.Scripts.Services.TaskManagement.TaskManagementService.<CreateTaskByGuidAsync>d__5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   at ArcherTech.Services.WorkflowService.Scripts.Infrastructure.AsyncHelper.RunSync[TResult](Func`1 func)
   at Rsa.Archer.WorkflowService.Scripts.Scripts.Task.SaveCreateTaskCommand.Execute(CreateTaskScriptContext context)
   at Rsa.Archer.WorkflowService.Common.CommandFramework.CompositeCommand`1.Execute(T context)
   at Rsa.Archer.WorkflowService.Common.CommandFramework.CompositeCommand`1.Execute(T context)
   at Rsa.Archer.WorkflowService.Common.CommandFramework.TryCatchCommand`1.Execute(T context)</Message> 
                    </Exception> 
                </TraceRecord> 
            </DataItem> 
        </TraceData> 
    </ApplicationData> 
</E2ETraceEvent>

 

Cause


Maximum Selections set for a Field in the Task Management Application is less than the number of values that are being passed to that field. 
 

Resolution


  1. Navigate to Administration -> Applications -> Task Management -> Layout.
  2. Review fields that have Maximum Selection set, such as Record Permissions, User Groups List, Values List, etc.
  3. Set Maximum Selection to No Maximum or a number greater than that of the values to be passed. 
  4. Save changes. 
  5. Navigate to Advance Workflow -> Job Troubleshooting -> Open Record in error -> Restart

Version history
Last update:
‎2024-09-21 06:29 AM
Updated by: