Errors
This reference lists possible Workflow Task errors and how to resolve them.
For other types of errors, see Temporal Failures.
Each of the below errors corresponds with a WorkflowTaskFailedCause, which appears in Events under workflow_task_failed_event_attributes
.
Bad Cancel Timer Attributes
This error indicates that the Workflow Task failed while attempting to cancel a Timer.
Check your Timer attributes for a missing Timer Id value. Add a valid Timer Id and redeploy the code.
Bad Cancel Workflow Execution Attributes
The Workflow Task failed due to unset CancelWorkflowExecution attributes.
Reset any missing attributes and redeploy the Workflow Task.
Bad Complete Workflow Execution Attributes
This error indicates that the Workflow Task failed due to unset attributes on CompleteWorkflowExecution.
Reset any missing attributes. Adjust the size of your Payload if it exceeds size limits.
Bad Continue as New Attributes
This error indicates that the Workflow Task failed to validate a ContinueAsNew attribute. The attribute could be unset or invalid.
Reset any missing attributes. If the payload or memo exceeded size limits, adjust the input size.
Check that the Workflow is validating search attributes after unaliasing keys.
Bad Fail Workflow Execution Attributes
This error indicates that the Workflow Task failed due to unset FailWorkflowExecution attributes.
If you encounter this error, make sure that StartToClostTimeout
or ScheduleToCloseTimeout
are set.
Restart the Worker that the Workflow and Activity are registered to.
Bad Modify Workflow Properties Attributes
This error indicates that the Workflow Task failed to validate attributes on a property in the Upsert Memo or in a payload. These attributes are either unset or exceeding size limits.
Reset any unset and empty atrributes. Adjust the size of the Memo or payload to fit within the system's limits.
Bad Record Marker Attributes
This error indicates that the Workflow Task failed due to an unset or incorrect Marker name.
Enter a valid Marker name and redeploy the Task.
Bad Request Cancel Activity Attributes
This error either indicates the possibility of unset attributes for RequestCancelActivity, or an invalid History Builder state.
Update the Temporal SDK to the most recent release. Reset any unset attributes before retrying the Workflow Task.
If you continue to see this error, review your code for nondeterministic causes.
Bad Request Cancel External Workflow Execution Attributes
This error indicates that the Workflow Task failed while trying to cancel an external Workflow. Unset or invalid attributes can cause this to occur.
Reset any missing attributes, such as Workflow Id or Run Id. Adjust any fields that exceed length limits.
If Child Workflow is set to Start
and RequestCancel
, remove one of these attributes.
A Child Workflow cannot perform both actions in the same Workflow Task.
Bad Schedule Activity Attributes
This error indicates unset or invalid attributes for ScheduleActivityTask
or CompleteWorkflowExecution
.
Reset any unset or empty attributes. Adjust the size of the received payload to stay within the given size limit.
Bad Search Attributes
This error indicates that the Workflow Task has unset or invalid Search Attributes. This can cause Workflow Tasks to continue to retry without success.
Make sure that all attributes are defined before retrying the Task. Adjust the size of the Payload to fit within the system's size limits.