Skip to content
Quantum9
DataHiring

Business CSV imports: decimals, encoding and file contracts

2 min reading
Editorial illustration: Business CSV imports: decimals, encoding and file contracts

A file can look correct in a spreadsheet and arrive incorrectly in the database. Decimal conventions, encoding and date interpretation require an import contract, particularly when suppliers produce different formats.

The design to commission

Specify delimiters, quotation rules, headers and expected column types. Codes containing leading zeros must remain identifiers rather than become numbers. Define nullable fields and rejection handling without silently losing the remaining rows. Engineering should retain the received file and produce a report locating problematic records. Configuring an existing importer often resolves stable layouts; custom work becomes relevant for multiple contracts and recurring checks. Reject conversion based solely on the first example: exports in another language may change decimals and date order. Agree layout evolution with the data provider. Operational cost arises when every change requires manual repair, not just from file-reading time. Review how repeated uploads are recognized so correcting one rejected row does not duplicate all previously accepted records in the destination.

Supplier criteria

  • Preserve codes and leading zeros as identifiers.
  • Explain row errors without silently discarding records.
  • Record layout versions and decimal conventions for each import.

Acceptance with an exception

For hypothetical acceptance, import accented descriptions, leading-zero codes and another decimal convention. The system should reject an unagreed convention or interpret it explicitly without guessing values.

Reference for assessing scope

PostgreSQL constraint documentation

Prepare your project with Quantum9

Share anonymized files from different suppliers and expected error reports with Quantum9. Discovery determines whether to configure the current tool or commission a dedicated pipeline for these formats.

Data engineering · Map your business priority

Read the related guide

Let's evaluate your company's scenario?

Tell us about the problem, the systems involved and what needs to change. From there, we define the next step and the scope of the conversation.