WarUI

Import validation and error report

GRID-A20-F19P0baselinePlanned

Validates imported values against column types and rules before committing: type coercion, required fields, uniqueness, ranges and custom validators. A row-level error report lets users fix issues or import only the valid rows, so bad data never enters the grid silently.

Planned. This page shows the specification from issue #200. The live example, source for every framework and the API reference replace it when the feature ships.

Live example

Products grid with a sample file containing seeded errors.

Expected behavior

The preview highlights invalid cells and shows a summary such as 'X valid, Y invalid'. The chosen policy determines what is committed, and the report downloads as CSV with row number, column and message.

Planned API surface

column.importTypecolumn.requiredcolumn.uniquecolumn.validateimportOptions.onInvalid'reject' | 'skip' | 'importWithErrors'importValidated eventgetImportReport()

Acceptance criteria

  • Values are coerced to importType, and failures are reported with row and column. (pending)
  • required and unique rules are checked, including uniqueness against existing grid rows when configured. (pending)
  • column.validate(value,row) may return a message string that marks the cell invalid. (pending)
  • 'reject' commits nothing if any row is invalid. (pending)
  • 'skip' commits only valid rows. (pending)
  • The error report row numbers refer to source file line numbers. (pending)