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-Sync
Collaborator III

Applies To


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

Description


Records enrolled in Advanced Workflow of an application/questionnaire fail with the below error thrown in the record page:
There was an error processing this record.    
Please contact your administrator and tell them this record could not go past the 'Set Submission Due Date' stage.

0EMVM000009iK14.png0EMVM000009iK14.png
Note:
'Set Submission Due Date' is the name of a node within the Advanced Workflow which can be replaced in the error message with any other name, depending on the node where the Advanced Workflow job has errored.

The below errors are found in the Archer.AdvancedWorkflow logs:
Error 1 (Instance logs):
<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="2024-08-28T13:22:00.5064500Z" /> 
		<Source Name="Archer.NET" /> 
		<Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /> 
		<Execution ProcessName="WpServiceHost (ver 4.40.47.0)" ProcessID="6192" ThreadID="11344" /> 
		<AssemblyVersion>2.0.60.0</AssemblyVersion> 
		<Computer>Server Name</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: 17315:CUST] [JobId: 4026:CUST] [ProcRef: a541df01ea354ca2] [CorrelationId: 0d26d216-d35e-4d0a-9684-df6d392ea1eb]</Description> 
					<AppDomain>WpAppDomain~1</AppDomain> 
					<Exception> 
						<Message>
---------- Exception ----------
[System.InvalidOperationException]
Unable to create a task
   at Archer.WorkflowService.Scripts.Scripts.Shared.CompleteNodeWithErrorCommand`1.Execute(T context, Exception exception)
   at 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 500 (Internal Server Error): POST https://localhost:13210/content-service/api/workflow/task-management/guid
  ----------- Response Body -----------
  {"type":"https://tools.ietf.org/html/rfc7231#section-6.6.1","title":"Internal Server Error","status":500,"instance":"/content-service/api/workflow/task-management/guid","messages":null}
  --------- 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 Archer.WorkflowService.Scripts.Services.TaskManagement.TaskManagementService.<>c__DisplayClass5_0.<<CreateTaskByGuidAsync>b__0>d.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 Archer.WorkflowService.HttpClient.HttpClient.PollyHelper.<>c__DisplayClass5_0`1.<<PerformHttpRequestWithRetries>b__0>d.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 Polly.Retry.AsyncRetryEngine.<ImplementationAsync>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 Polly.AsyncPolicy.<ExecuteAsync>d__21`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 Archer.WorkflowService.HttpClient.HttpClient.PollyHelper.<PerformHttpRequestWithRetries>d__5`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 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 Archer.WorkflowService.Scripts.Scripts.Task.SaveCreateTaskCommand.Execute(CreateTaskScriptContext context)
   at Archer.WorkflowService.Common.CommandFramework.CompositeCommand`1.Execute(T context)
   at Archer.WorkflowService.Common.CommandFramework.CompositeCommand`1.Execute(T context)
   at Archer.WorkflowService.Common.CommandFramework.TryCatchCommand`1.Execute(T context)</Message> 
					</Exception> 
				</TraceRecord> 
			</DataItem> 
		</TraceData> 
	</ApplicationData> 
</E2ETraceEvent>
Error 2:
<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="2024-08-28T13:22:08.3469278Z" /> 
		<Source Name="Archer.NET" /> 
		<Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" /> 
		<Execution ProcessName="WpAsyncScriptMonitor (ver 4.40.47.0)" ProcessID="10068" ThreadID="10712" /> 
		<AssemblyVersion>2.0.60.0</AssemblyVersion> 
		<Computer>Server Name</Computer> 
	</System> 
	<ApplicationData> 
		<TraceData> 
			<DataItem> 
				<TraceRecord Severity="Error" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord"> 
					<TraceIdentifier>Archer.NET</TraceIdentifier> 
					<Description>AsyncScript Monitor-1 max evaluation retries exceeded (1), moving job 4026:CUST into error state (DSN='Archer').  Last error: The Workpoint.BPM.ServiceContracts.Monitor.IAsyncScriptExecute.ExecuteByIdDb operation had the following error:  Invalid node state change for node 'Submit Finding' (17315:CUST). Unable to move a node from the ''Planned'' state to the ''Completed'' state.</Description> 
					<AppDomain>WpAsyncScriptMonitor.exe-WpAppDomain</AppDomain> 
					<Exception> 
						<Message>
---------- Exception ----------
[System.ServiceModel.FaultException`1[Workpoint.ApplicationBlocks.Common.ExceptionInfo]]
The Workpoint.BPM.ServiceContracts.Monitor.IAsyncScriptExecute.ExecuteByIdDb operation had the following error:  Invalid node state change for node 'Submit Finding' (17315:CUST). Unable to move a node from the ''Planned'' state to the ''Completed'' state.

Server stack trace: 
   at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]: 
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Workpoint.BPM.ServiceContracts.Monitor.IAsyncScriptExecute.ExecuteByIdDb(String dsn, IdDb scriptIdDb, SymbolTableData symbolData, ScriptExecuteOptions options)
   at Workpoint.Monitors.AsyncScript.a.h(a v)
   at Workpoint.Monitors.AsyncScript.a.b(Object n)</Message> 
					</Exception> 
				</TraceRecord> 
			</DataItem> 
		</TraceData> 
	</ApplicationData> 
</E2ETraceEvent>
The below errors are found in the Archer.CoreService logs:
<E2ETraceEvent xmlns="http://schemas.microsoft.com/2004/06/E2ETraceEvent">
    <System xmlns="http://schemas.microsoft.com/2004/06/windows/eventlog/system">
        <EventID>1</EventID>
        <Type>3</Type>
        <SubType Name="Error">0</SubType>
        <Level>2</Level>
        <TimeCreated SystemTime="2024-08-28T13:21:58.4034166Z" />
        <Source Name="Archer.NET" />
        <Correlation ActivityID="{00000000-0000-0000-0000-000000000000}" />
        <Execution ProcessName="Archer.CoreService" ProcessID="6248" ThreadID="8" />
        <AssemblyVersion>6.15.200.10416</AssemblyVersion>
        <Channel />
        <Computer>Server Name</Computer>
    </System>
    <ApplicationData>
        <TraceData>
            <DataItem>
                <TraceRecord Severity="Error" xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord">
                    <TraceIdentifier>Archer.NET</TraceIdentifier>
                    <UserId>191</UserId>
                    <Description>Can't save content when module's status = Retired</Description>
                    <AppDomain>Archer.CoreService.exe</AppDomain>
                    <ContextData>
                        <ConnectionId>0HN67CH5MKI69</ConnectionId>
                        <RequestId>0HN67CH5MKI69:00000003</RequestId>
                        <RequestPath>/content-service/api/workflow/task-management/guid</RequestPath>
                        <CorrelationId>0d26d216-d35e-4d0a-9684-df6d392ea1eb</CorrelationId>
                        <ActionId>31600b6a-5609-4ff0-b950-e5fb0166d156</ActionId>
                        <ActionName>Archer.CoreService.Controllers.Content.TaskManagementController.CreateByGuid (Archer.CoreService)</ActionName>
                    </ContextData>
                    <Exception>
                        <ExceptionType>System.InvalidOperationException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</ExceptionType>
                        <Message>Can't save content when module's status = Retired</Message>
                        <Source>ArcherTech.Kernel</Source>
                        <StackTrace>   at ArcherTech.Kernel.Brokers.ContentBroker.Save(IList`1 contentContainers, Nullable`1 subformFieldId, ContentSaveOptions saveOptions)
   at ArcherTech.Kernel.Brokers.ContentBroker.Save(InternalContentSaveContainer content, Nullable`1 subformFieldId, ContentSaveOptions saveOptions)
   at ArcherTech.Kernel.Managers.ContentManager.Save(SessionContext sessionContext, ContentContainer content, Nullable`1 subformFieldId, Boolean suppressRequiredValidation)</StackTrace>
                    </Exception>
                </TraceRecord>
            </DataItem>
        </TraceData>
    </ApplicationData>
</E2ETraceEvent>

Cause


There are one or more User Action nodes that have the Create Task option enabled (as shown below) in the Advanced Workflow of the application/questionnaire, which means that the Advanced Workflow attempts to create a Task record within the Task Management application via this User Action node.
0EMVM000009ity5.png0EMVM000009ity5.png
However, the Task Management application is set to Retired. Consequently, this will cause failure of the Advanced Workflow job when attempting to create a Task record in Task Management.

Resolution


Set the Task Management application status to Production to allow the creation of Tasks records within it. Follow the steps below:
1. Click on the Administration menu > Expand Application Builder.
2. Select Applications > Open the Task Management application.
3. Go to the Properties tab.
4. Expand the drop-down menu below Status and select Production. Then click on Save Properties.
0EMVM000009iYiL.png0EMVM000009iYiL.png
5. Following this, records should advance successfully in the Advanced Workflow.
Note: There may be a need to re-enroll the errored records.

Notes


If the above Resolution does not fix this issue, refer to the following Knowledge Base article: "Unhandled exception occurred: [Script: CreateTaskScript]" Error in Advance Workflow Records in Archer.

Version history
Last update:
‎2024-09-26 08:21 AM
Updated by: