Skip to content

app.import_row_results

TableRow level security on

Outcome of every source row of an import (Section 4.6.2 steps 4 to 8): its row state and reason, and for a Written row the batch, the row written and what the write did. This is where the import batch id of every imported row lives.

Primary key: id

Columns of app.import_row_results
ColumnTypeNullableDescription
iduuidNoPrimary key, UUID v7.
org_iduuidNoOwning org, derived from app.import_jobs on insert; never accepted from the caller and never changed.References app.organizations.id
import_job_iduuidNoImport.References app.import_jobs.id
import_batch_iduuidYesBatch that wrote the row; set exactly when the row is Written.References app.import_batches.id
sheet_nametextNoSource sheet.
row_numberintegerNoOne-based row number in the sheet, as the person sees it.
row_stateapp.import_row_stateNoValid, Invalid, Written, Refused or Skipped.
reasontextYesWhy a row is Invalid, Refused or Skipped (refusal message or rule).
target_tabletextYesTable the row was written to.
target_iduuidYesRow written, created, updated or merged into.
write_actionapp.import_write_actionYesCreated, Updated or Merged.
before_imagejsonbYesAudit diff of an updated or merged target before the write (the columns the import changed), used to undo it.
undo_outcomeapp.undo_outcomeYesReverted or Kept when the batch was undone.
undo_reasontextYesWhy a row was kept: the later edit or dependent row.
created_attimestamp with time zoneNoWhen the row was inserted. Set by the database.
created_byuuidYesPerson who inserted the row, or null for a platform process. Set by the database.References app.people.id
updated_attimestamp with time zoneNoWhen the row last changed. Set by the database.
updated_byuuidYesPerson who last changed the row, or null for a platform process. Set by the database.References app.people.id
deleted_attimestamp with time zoneYesSoft delete time. A row with deleted_at set is ignored by every access helper.