Technical document

Design CSV import error reports for users

Organize the design to return row-specific errors, warnings, and correction methods from CSV imports in a way that business users, not engineers, can fix them.
Data Integration / Error Design~10 minPublication Date September 22, 2026Update date September 22, 2026
Design CSV import error reports for users

Summary

Key points of this document

  • Where are the design challenges?
  • How to define boundaries
  • Details that make a difference in implementation

Overview

CSV import failures are often not system failures but correctable input deficiencies. Returning error reports that users can fix themselves is key to operations. In CSV import error design, quality means not just detecting failures, but returning them in a way that users can subsequently correct.

Where are the design challenges?

Even if a CSV import only shows "validation failed", users won't know what to fix. Imports that cannot be resolved without an engineer checking logs are not suitable for daily operations.

A CSV often contains multiple errors simultaneously. Stopping at the first error would lead to repeated corrections and re-imports. On the other hand, displaying a large number of errors as-is makes them unreadable.

Even if a CSV import only shows "There is an error", users won't know what to fix. Displaying developer-oriented exception messages as-is is insufficient both for information and security.

How to define boundaries

In the import process, we separate structural errors, row errors, and warnings. Structural errors stop the process, row errors are listed, and warnings are treated as importable but requiring confirmation.

In the design, parsing, header validation, type conversion, business validation, and registration are staged, and each failure is converted into the same error report format. The screen uses this report to provide correction guidance for each row.

Details that make a difference in implementation

The error report includes row number, column name, input value, expected format, correction example, and error code. The React screen allows filtering error rows and downloading them as a CSV. The template version is checked in the header or metadata.

The error report is an array withrow_number,column_key,column_label,code,message,severity,suggestionan array. The React side highlights the corresponding CSV rows, supporting download of only errors and re-upload after correction.

  • Separate file-wide errors and row-level errors.
  • Clarify handling based on severity, such as warnings being registerable and errors being non-registerable.
  • Do not directly expose internal exception names or SQL errors in user-facing messages.

Observe how failures occur

During validation, we check for multi-row errors, template differences, duplicate keys, files with only warnings, and re-imports after error correction. We also review whether the wording is understandable to business users.

During validation, we sample character encoding differences, missing columns, empty values, numeric formats, date formats, duplicates, and missing references. We also check display, download, and paging when there are many errors.

Discarded options and trade-offs

Creating user-friendly errors incurs implementation costs. However, in import operations, error handling can consume most of the operational time. It's worth investing in report design from the start.

The more detailed the errors returned, the easier they are to fix, but the burden of implementation and message management increases. It's realistic to start with critical errors that stop registration, and add warnings and correction suggestions based on usage frequency.

Decision criteria for the field

For CSV imports, the experience during failure is more important than during success. By returning error reports that users can fix themselves, the burden of system operation can be significantly reduced.

CSV import errors are not notifications of failure, but a UI for correction work. Structuring errors increases the reliability of the import function itself.

Technical documents

We will continue to increase technical documentation.

We will continue to organize our thoughts on AI, cloud, business app development, requirements definition, and operational design into documents.

Go to technical documentation list