Edit page in Livemark
(2024-11-07 15:17)

Row Errors

Row Error

Name Value
Type row-error
Title Row Error
Description Row Error
Template Row Error
Tags #table #row

Blank Row

Name Value
Type blank-row
Title Blank Row
Description This row is empty. A row should contain at least one value.
Template Row at position "{rowNumber}" is completely blank
Tags #table #row

PrimaryKey Error

Name Value
Type primary-key
Title PrimaryKey Error
Description Values in the primary key fields should be unique for every row
Template Row at position "{rowNumber}" violates the primary key: {note}
Tags #table #row

ForeignKey Error

Name Value
Type foreign-key
Title ForeignKey Error
Description Values in the foreign key fields should exist in the reference table
Template Row at position "{rowNumber}" violates the foreign key: {note}
Tags #table #row

Duplicate Row

Name Value
Type duplicate-row
Title Duplicate Row
Description The row is duplicated.
Template Row at position {rowNumber} is duplicated: {note}
Tags #table #row

Row Constraint

Name Value
Type row-constraint
Title Row Constraint
Description The value does not conform to the row constraint.
Template The row at position {rowNumber} has an error: {note}
Tags #table #row

Reference

errors.RowError (class)

errors.ForeignKeyError (class)

errors.RowError (class)

Row error representation. A base class for all the errors related to a row of the tabular data.

Signature

(*, note: str, cells: List[str], row_number: int) -> None

Parameters

  • note (str)
  • cells (List[str])
  • row_number (int)

errors.rowError.cells (property)

Values of all the cells in the row that has an error.

Signature

List[str]

errors.rowError.row_number (property)

Index of the row that has an error.

Signature

int

errors.RowError.from_row (method) (static)

Create an error from a row

Signature

(row: Row, *, note: str)

Parameters

  • row (Row)
  • note (str)

errors.ForeignKeyError (class)

Row error representation. A base class for all the errors related to a row of the tabular data.

Signature

(*, note: str, cells: List[str], row_number: int, field_names: List[str], field_cells: List[str], reference_name: str, reference_field_names: List[str]) -> None

Parameters

  • note (str)
  • cells (List[str])
  • row_number (int)
  • field_names (List[str])
  • field_cells (List[str])
  • reference_name (str)
  • reference_field_names (List[str])

errors.foreignKeyError.field_names (property)

Keys in the resource target column.

Signature

List[str]

errors.foreignKeyError.field_cells (property)

Cells not found in the lookup table.

Signature

List[str]

errors.foreignKeyError.reference_name (property)

Name of the lookup table the keys were searched on

Signature

str

errors.foreignKeyError.reference_field_names (property)

Key names in the lookup table defined as foreign keys in the resource.

Signature

List[str]

errors.ForeignKeyError.from_row (method) (static)

Create an foreign-key-error from a row

Signature

(row: Row, *, note: str, field_names: List[str], field_values: List[Any], reference_name: str, reference_field_names: List[str])

Parameters

  • row (Row)
  • note (str)
  • field_names (List[str])
  • field_values (List[Any])
  • reference_name (str)
  • reference_field_names (List[str])