Skip to content · Zum Inhalt

Import the records of a file

A file written by the export — or by hand in the same shape — can be read back into a table. Fields are matched by their names, so the file and the table have to agree on them.

Before you start

  • Open the table the file belongs to, so the grid shows where the records will land.
  • Decide what should happen to a record that already exists.

Import a file into the table

  1. On the grid, choose Import. The dialog opens with Import On Find.
  2. Choose Import On Find: Error stops at a record that already exists, Modify writes the file's values into it, Skip leaves it alone.
  3. Upload the file, or paste its JSON in File Content.
  4. Confirm and read the result.

The list a file lands in, with the record, the field and the value

What happens

Fields are matched by field name in JSON and by the header row in Excel. A field in the file that the table does not have is refused with "The file has a field that table %1 does not have: %2." A row without a record is inserted; a row whose record exists is modified, skipped or refused as you chose. The result is "Import finished. Inserted: %1. Modified: %2. Skipped: %3." and every inserted and modified record is written to the log.

Example

A consultant imports a file for table 103 with the records of the filter ITEM-002. A record that already exists is modified when Import On Find is Modify, and a record that is new is inserted; the result names how many were inserted and how many were modified.

If something goes wrong

What you seeWhyWhat to do
"The file has a field that table %1 does not have: %2."The file was written for another table or another version of it.Correct the file, or import it into the table it came from.
"A record with the key %1 already exists in table %2."Import On Find is Error and the record exists.Choose Modify or Skip, or remove the row from the file.
"'%1' is not a valid value for field %2."A value in the file does not fit the field.Correct the value in the file and import it again.
Nothing is importedThe file was refused before the first record.Read the message, correct the file, and import it again.