Skip to content

Data Logistics Register

The Data Logistics Register stores operational metadata about loading data between the different interfaces. It is closely related to the delivery register and it provides auditing information on entities on row level.

Access to metadata

To retrieve the current state of each element, i.e., all the metadata related to that element, you can use the i-refactory REST API or the views available in the Data Logistics Register.

Interface update

Every delivery can update one or more interfaces. For batch deliveries, this means updating from the Technical Staging all the way towards the Generic Data Access Layer. For CRUD deliveries, that means from the Generic Data Access Layer to the Central Fact Layer.

View: [acm_datalog].[interface_update]

  • id: id
  • delivery_id: delivery id
  • interface_mapping_id: this is shows which is the source an target interface. It needs to be joined with the id of [acm_datadefmap].[interface_mapping]
  • status_code: the status of the updating the interface

Entity update

View: [acm_datalog].[entity_update]

  • id: this id found as acm_audit_id when querying an entity
  • interface_update_id: interface update id
  • entity_mapping_id:
  • load_type_code: DL or FL for Delta and Full load
  • executed_update_script: provides the SQL code executed when is available
  • rows_before: count before loading
  • rows_after: count after loading
  • status_code: SCHEDULED, FAILED, IDLE, PROCESSING and SUCCEEDED
  • start_dt: start time
  • end_dt: end time
  • message_nbr: provides number type of message
  • message_text: provides information on entity updates and error messages

Task Run

The task run stores all the actions performed in a delivery. For each task run, we can see its parent task run (if any), the status, the entity that was updated, its type, description as well the code executed.

View: [acm_datalog].[task_run]

  • id: task run id
  • uuid: universally unique identifier of task run
  • delivery_id: delivery id
  • task_run_id_parent: the id of the parent task run (if exists)
  • ordinal_nbr: the sequence of executing task runs per delivery
  • type: type of task run
  • description: description of task
  • context: refers to the architecture layer a task run belongs to
  • status_code: SCHEDULED, FAILED, IDLE, PROCESSING and SUCCEEDED
  • start_dt: start timestamp of task run
  • end_dt: end timestamp of task run
  • entity_update_id: this can be found on the acm_audit_id on the entity

Task run dependency

By looking at the task run id, task_run_id_successor and task_run_id_predecessor, we can find the dependency between task runs.

View: [acm_datalog].[task_run_dependency]

  • id: Id of task run dependency
  • task_run_id_successor: the id of the task run
  • task_run_id_predecessor: the id of task run

Violated Record

View: [acm_datalog].[violated_record]

  • id: id of violated record
  • delivery_id: delivery id
  • entity_id: the entity id
  • record_nbr: line number of the violated record
  • record: log of the violated record

Violated Constraint

View: [acm_datalog].[violated_constraint]

  • id: id
  • violated_record_id: the id of the violated record
  • contraint_id: the id of the constraint that is violated

Example - How to query the Data Logistics Register using a view

-- Select details of violated records
SELECT id
      ,delivery_id
      ,entity_id
      ,record_nbr
      ,record
      ,acm_entity_id
      ,acm_exists_ind
      ,acm_last_created_dt
      ,acm_start_dt
      ,acm_end_dt
      ,acm_record_ind
      ,acm_modifier_id
  FROM ACME.acm_datalog.violated_record
;