Skip to content

Error Codes Since 1.0.0-alpha.13

The following table lists the error codes used in the TORCH system. Each error code is unique and provides information about the type of error, its severity, and recommended actions for users and developers.

Error Code – A unique identifier for the error, structured as MODULE_SUBMODULE_NUMBER.

Meaning – A brief description of the error and its context.

Severity – Indicates the impact of the error (Info, Warning, Error, Critical).

User Action / Fix – Recommended steps the end user can take to resolve the issue.

Developer Notes – Additional technical information for developers to troubleshoot and address the error.

This table is intended to support both end users and developers in quickly identifying, diagnosing, and resolving issues encountered in the system.

Error CodeMeaningSeverityUser Action / FixDeveloper Notes
RESULT_01Could not create results directoryErrorCheck directory path and permissionsThrown when Files.createDirectories fails in constructor
RESULT_02Results directory is not writableErrorAdjust filesystem permissionsTriggered when directory exists but is not writable
RESULT_03Error reading job directoryWarningNone; system will skip unreadable directoryHappens when listing or reading a job directory fails
RESULT_04Error loading existing resultsWarningNone; system continues but previous jobs may be missingThrown when scanning the results root directory fails
RESULT_05Async write failed for job error fileErrorRetry operation or inspect logsIndicates failure inside async saveErrorToJson write operation
RESULT_06Failed to load bundles for jobWarningInspect job directory structureThrown when listing files in a job directory for output generation fails
CONSENT_VALIDATOR_01A Resource was loaded that does not belong to any Patient belonging to the batchWarningManually check if resource is referenced by a resource belonging to another patientThrown due to referenced Patient not being part of the batch from which the resource was loaded
CONSENT_VALIDATOR_02Consent check was done on an unsupported ResourceTypeWarningContact developers if it is a patient resource type that should be supportedThrown due to resource type not being in the resourceType to field mapping for consent
FHIR_CONTROLLER_01Bad Request receivedErrorFix Parameters File or CRTDLThrown due to input validation or parsing fail
FHIR_CONTROLLER_02Some internal server error i.e. the complete extraction crashedErrorInspect logs and contact developers for potential bugsThrown due to resource type not being in the resourceType to field mapping for consent
FHIR_CONTROLLER_03Trying to look up error status failedErrorRetry operation or inspect logsThrown due error job status existing but no error operation outcome found in dir
DATASTORE_01FHIR server returned an OperationOutcome during searchErrorInspect OperationOutcome details and fix query parametersLogged when executing .search() and an OperationOutcome is returned instead of a Bundle
DATASTORE_02Error executing resource query (search)ErrorRetry or inspect server availability and feasibility query syntaxLogged in .search() in doOnError, wraps any exception during search
DATASTORE_03Error executing a transactionErrorRetry; if persistent, review the transaction bundleLogged in .transact() when POST / fails
DATASTORE_04Error evaluating a MeasureErrorInspect the Measure parameter set; retry; contact developers if persistsLogged in .evaluateMeasure() when sync or async-polling evaluation fails
DATASTORE_05Unexpected resource type returned during pollingErrorContact developers; fix FHIR endpoint returning unexpected structureHappens in async poll response mapping in .pollStatus() when resource is not MeasureReport or unknown
DATASTORE_06Missing Content-Location header for async operationErrorRetry operation; report misconfigured FHIR serverThrown in MissingContentLocationException when server returns 202 without a status URL
DATASTORE_07Async polling missing response or outcome fieldErrorContact developers; server likely misbehavingFrom .pollStatus() when bundle entry response fields are unexpectedly missing
DATASTORE_08Error deserializing FHIR JSON payloadErrorVerify FHIR server output; ensure correct FHIR versionThrown from parseResource() on DataFormatException
DATASTORE_09Unexpected resource type in batch search responseWarningNone required; system ignores unexpected resourcesLogged in extractResourcesFromBundle() when resource is not a Bundle
DATASTORE_10Batch Bundle Search failed in Reference ResolveErrorNone required; Results in references not being resolved/handledThrown due to error in bundle search
PROCESSING_01Response Error from CQL ExecutionErrorRetry operation or inspect logsThrown due to CRTDL error
PROCESSING_02Error from Flare ExecutionErrorRetry operation or inspect logsThrown due to Flare error
RESOURCE_REFLECTION_01Method Error when setting Backbone ElementErrorContact developers;Thrown by setting backbone Element
RESOURCE_REFLECTION_02Backbone Element is not a known HAPI ClassErrorContact developers;Thrown by setting backbone Element
REDACTION_01Requested Profiles not found after Extraction despite copying meta and validationErrorContact developers;
REDACTION_02Requested Profiles not known despite validationErrorCheck if ontology is mounted and was modified. Contact developers;