Skip to content
Import

A preview before anything is written.

Every file is read, profiled and presented for approval. Nothing is committed, renamed or discarded without being shown to you first.

The import sequence

  1. Add files. Pick files, pick a folder, or drop them onto the window. Folders are expanded recursively. Mixed formats are accepted in one batch.
  2. Detection. The format is decided from the first bytes of the file, then checked against the extension. A spreadsheet renamed to .dat is still read as a spreadsheet, and you are told.
  3. Profiling. The reader samples the content, infers a type for every column, measures distinct values and fill rates, and looks for duplicate groups and ambiguous dates.
  4. Preview. A panel lists the file, the datasets it would create, every column with its inferred type, the row count, suggested category, warnings, and the rows that need review.
  5. Approve or change. Rename a dataset, change its category, choose which datasets to create, or skip a file. Only approved datasets are written.
  6. Commit. The original file is copied into the vault with its checksum, the dataset table is created, and records are streamed in batches of 2,000.

What the preview reports

About the file

  • Detected format and content category
  • Size, SHA-256 checksum, and whether an identical file already exists
  • Encoding and delimiter for text formats
  • Extension mismatch warnings

About the data

  • Proposed dataset names and row counts
  • Columns with logical type, role, fill rate, distinct count and samples
  • Duplicate groups with the key that exposes them
  • Invalid values, constant columns and ambiguous dates
  • Quality score with its components

How types are decided

The profiler does not guess from the column name alone. It tests every value:

  • A column is integer only if every non-empty value parses as a whole number. If a value has a fractional part, the column becomes decimal.
  • A column whose values carry leading zeros is stored as text even when the values are numeric. This is what keeps 00000012 from becoming 12 and breaking a join.
  • Dates are tested against ISO, day/month/year, month/day/year, compact and textual forms. When the day and month are both 12 or less the order is genuinely ambiguous, and that is reported instead of assumed.
  • A column named or shaped like an identifier becomes a key. A column with few distinct values becomes a predicate or category, which is what makes it available for grouping.

Re-importing an updated file

Monthly exports usually contain everything again. When you import a newer copy of a file whose rows already exist, ZyVault can do one of three things, chosen in Import settings:

  • Skip duplicates. Rows whose values are identical to existing rows are not inserted. This is the default and is the safe option for overlapping exports.
  • Append everything. Every row is inserted, duplicating overlaps. Use this when the file is genuinely incremental.
  • Replace. The existing dataset is replaced by the new import, after a confirmation.

New columns that appear in the updated file are added to the existing dataset rather than causing the import to fail.

Formats and how they are read

FamilyHandler behaviour
Delimited textEncoding detected from a byte-order mark or by testing UTF-8, then CP1252. Delimiter detected by consistency across sampled rows. Quoted fields and embedded newlines handled.
SpreadsheetsEach worksheet becomes a candidate dataset. Dates read as dates, numbers as numbers. A sheet whose name matches its file does not get a duplicated name.
JSONAn array of objects becomes one dataset; an object whose values are arrays becomes several. Nested objects are kept as JSON text in a cell.
XMLRepeated child elements of two or more become a table; leaf elements become columns. Malformed XML is recovered where possible and the recovery is reported.
SQLCREATE TABLE defines column order; INSERT supplies the rows. Values are read with the same quote rules SQL uses, so embedded commas and quotes survive.
DocumentsPDF text is extracted page by page; a page that fails does not stop the import and is reported. DOCX tables are offered as datasets as well as text.
ImagesStored with dimensions, format and EXIF. OCR runs when the optional engine is present.
ZIPMember names are sanitised against path traversal. Encrypted members and oversized files are skipped and reported, never extracted blindly.

Safety limits are explicit. A ZIP is expanded to at most 2,000 members and 2 GB, with a 512 MB cap per member. Files beyond those limits are reported and not silently skipped.