Skip to content

Data engineering failures

Source: R/errors-operations.R ยท Help: ?data_engineering_errors

Errors raised by batch data processing: a transformation step that failed, an ETL job that did not complete, and a batch that could not be processed. All inherit from dataexcept_data_engineering_error.

Usage

data_transformation_error(step, details = NULL, parent = NULL, call = NULL)

etl_job_error(job_name, message = NULL, parent = NULL, call = NULL)

batch_processing_error(batch_id, parent = NULL, call = NULL)

Arguments

step
Name of the transformation step.
details
Optional detail, appended to the message.
parent
The condition that caused this one, or NULL.
call
The call to report, or NULL.
job_name
Name of the ETL job.
message
A message to use instead of the default.
batch_id
Identifier of the batch.

Value

A condition inheriting from dataexcept_data_engineering_error.

Examples

process_batch <- function(id, rows) {
  tryCatch(
    sum(rows),
    error = function(e) stop(batch_processing_error(id, parent = e))
  )
}
err <- tryCatch(process_batch("2026-09-27", list("a", 1)), error = identity)
conditionMessage(err)

data_transformation_error("normalise_amounts", details = "12 rows had no currency")

See also

Other dataexcept errors: data_frame_errors, data_quality_errors, file_errors, job_errors, model_quality_errors, modelling_errors, pipeline_errors, service_errors, validation_error()