An import error should tell the user what to fix and what happened to their data. Include a stable location, the rejected condition, a practical correction and the write state. “Import failed” leaves all four questions unanswered.
The error contract matters early in a SaaS trial. A new user may be testing an unfamiliar product with a familiar file. Clear diagnosis helps them distinguish an input mistake, an unsupported format and a service failure before repeating work.
Distinguish parsing, validation and persistence
Different failure stages need different instructions. Parsing determines whether the file can be read under the supported format. Validation checks the application's field and business rules. Persistence determines which accepted records reached the destination.
RFC 4180 documents a common CSV format, including quoted fields containing commas or line breaks. It is an informational RFC, not a guarantee that every exporter uses the same dialect. Specify the delimiter, encoding, header and quoting rules your importer accepts.
A row can parse correctly while containing an invalid date or missing identifier. A fully valid preview can still encounter a storage failure. Avoid describing all three as a bad CSV: that sends the user to edit a file that may already be correct.
Give each error a stable address
Let the user find the rejected value again. Include the source filename, logical record number, field name and an allowed record identifier when available. Preserve the submitted file or an appropriate protected reference for the duration of the repair.
State how numbering works. A CSV field containing a quoted line break can occupy several physical lines. “Record 4” and “line 4” may therefore identify different locations. The interface and downloadable report should use the same convention.
Limit sensitive values in reports. A location and field name often suffice; a password, token or full personal record is unnecessary diagnostic content. Apply the file's access and retention rules to the error report too.
Write a correction the user can perform
Explain the failed condition in the vocabulary of the file. The reference cases below assume an importer requiring a text external_id, an ISO calendar date and a nonnegative whole-number quantity:
| Condition | Useful message | Repair action |
|---|---|---|
| Missing identifier | Record 3 needs an external_id | Supply the identifier used to match this item |
| Ambiguous date | Record 5 has 03/04/2026; use YYYY-MM-DD | Confirm the intended date and rewrite it explicitly |
| Decimal quantity | Record 7 quantity must be a whole number | Correct the value or choose a workflow supporting decimals |
| Conflicting duplicate | Records 2 and 8 share an identifier with different quantities | Choose the authoritative value before importing |
| Destination unavailable | Validation completed; records were not saved | Preserve the validated batch and retry the save operation |
These rules belong to the reference importer. A product supporting fractional quantities or another explicit date format should describe its own accepted values.
The import error worksheet supplies the same cases with separate fields for location, correction and write state. Use it to review whether the interface answers each question consistently.
Declare whether anything was written
A partial import requires an explicit result. Report accepted, rejected and unresolved records under the chosen import contract. Say whether accepted rows were committed or whether the batch stopped before writing.
For all-or-nothing behavior, show the failed condition and confirm the batch's unchanged destination state only after verifying that outcome. For partial success, give the user a way to identify committed records and repair the rejected subset.
An interrupted response can leave an uncertain outcome. Preserve an operation identifier and reconcile the destination before offering an unrestricted retry. A timeout is not evidence that every write rolled back.
Keep corrections accessible and reusable
Show an error summary and connect it to the relevant field. W3C's user notification guidance recommends clear descriptions, correction instructions and links to affected controls. Apply that principle to mapping screens and editable import previews.
Use text alongside visual indicators. Keep the submitted mapping and safe values available after an error so a person does not have to reconstruct the entire import. Ensure keyboard users can reach the summary, affected field and next action.
For large files, provide a protected downloadable report with the same numbering and terminology as the interface. Do not make that report the only place a user can discover that nothing was saved.
Test recovery as part of the import
A corrected file should have a predictable next attempt. Exercise one valid batch, each supported error case, an interrupted save and a repeated submission in an isolated test destination. Verify the destination after each attempt.
Decide how record identity and operation identity prevent unintended duplication. If a corrected file represents updates to existing items, state the matching rule before the user retries. A changed filename alone should not silently decide whether rows append or replace.
Use the workflow acceptance guide to define completion and recovery. An import succeeds when the intended records are usable at the destination and the user can understand any remaining work.