Codika icon

Codika

Interact with Codika platform - initialize executions, submit results, upload files, handle errors, and manage data ingestion.

Actions6

Error Handling → Report Error

AI-generated

Summary

Report an error that occurred during a Codika workflow execution to the Codika platform, including a descriptive message and error category.

Inputs

  • Error Message (required) — A descriptive error message explaining what went wrong, e.g., 'Failed to process email: API timeout'.
  • Error Type (required) — The category of the error, selected from Node Failure, Validation Error, External API Error, or Timeout.
  • Failed Node Name — Optional name of the node that caused the failure, e.g., 'Gmail Trigger'.
  • Last Executed Node — Optional name of the last successfully executed node, e.g., 'Process Data'.

Output shape

a single JSON object indicating success and including executionId, timestamp, errorType, and execution duration if available

This operation requires a Codika node with the 'Init Workflow' operation earlier in the workflow to provide execution context (execution ID and secret). If the error report call succeeds, the output JSON includes success status and metadata. On failure, an error is thrown.

Examples

Example 1: Report a node failure error with message and node names

Set 'Error Message' to a descriptive message, select 'Node Failure' for 'Error Type', and optionally provide 'Failed Node Name' and 'Last Executed Node'.

Links

Discussion