Skip to content

How a CSV import works

Available on
  • Trial
  • Pro
  • Enterprise
Who can do this
  • Import customersRoles: AdministratorPermission: customer:write
  • Import suppliersRoles: AdministratorPermission: purchasing:write
  • Import materials, products, variants, BOM lines, routings and additional employeesRoles: AdministratorPermission: product:write
  • Import machine types, machines, machine times, training requirements and machine changeoversRoles: AdministratorPermission: equipment:write
  • Import employees, skills and absencesRoles: AdministratorPermission: employee:write
  • Import trainingsRoles: AdministratorPermission: training:write
  • Import production ordersRoles: AdministratorPermission: order:write
  • Import opening stockRoles: AdministratorPermission: inventory:write
  • Import earlier shifts, which needs schedule:write as wellRoles: AdministratorPermission: workforce:admin

A CSV import adds and updates many records from one file, such as your customers exported from your ERP or your machines from a spreadsheet. You check and fix the rows in werkplan first, and only the rows marked OK are written.

Each kind of record has an import of its own, on the screen that lists those records. Each import’s page lists every column it reads, with its format and an example.

On the screen, open Actions in the top bar and click the import. Actions offers only the imports your permissions allow.

Screen Imports
Customers Import customers
Suppliers Import suppliers
Materials Import materials
Products Import products, Import variants, Import BOM lines, Import routings, Import additional employees
Equipment, its Types tab Import machine types
Equipment, its Machines tab Import machines, Import machine times, Import training requirements, Import machine changeovers
Employees Import employees, Import skills, Import absences
Training Import trainings
Production orders Import production orders
Stock Import opening stock
Schedule Import earlier shifts, a button on the screen rather than in Actions

Staffing requirements come in by an upload of their own: see Staffing requirements.

  • The first row names the columns, and each row after it is one record, or one line of a production order or one step of a routing. Download template in the import dialog gives you a file headed by every column the import reads.
  • A column’s name may be written in any way that reads the same once capitals, spaces, hyphens and underscores are dropped: Customer Number, customer_number and customerNumber are one column. A column the import doesn’t read is shown as ignored and left out.
  • The columns are separated by commas, or by semicolons when the first row holds more semicolons than commas, as Excel writes a CSV file on a German or Austrian computer. In a file separated by semicolons, decimals are written with a decimal comma, such as 1.234,5.
  • The file is read as UTF-8, with or without a byte order mark, and a file that isn’t UTF-8 as Windows-1252. A value in double quotes may hold the separator, a line break or a quote written twice. Empty rows are skipped.
  • An import takes at most 5,000 rows, and a value at most 2,000 characters. Split a longer file into several.

Each import’s columns table gives each column’s format:

Format What a value looks like
Text Any text, up to the length the record’s page takes.
Whole number A whole number, such as 40.
Decimal At most 9 digits before the decimal point and 6 after it, such as 12.5; never in exponent form, such as 1E+3.
Date YYYY-MM-DD, such as 2026-11-05, or a date with the day, month and year in your organisation’s order and the year in full, such as 05.11.2026. The table shows the day it read.
Yes or no yes, y, true or 1, and no, n, false or 0.
One of One of the values the table lists, in capitals or not.
List, separated by | Several values, such as BAKER|MIXER.

An empty cell is no value. A required column must be in the file, and its cells filled in.

  1. Choose the file under CSV file. werkplan checks every row and shows them in a table, each marked OK or Fix, with what to fix beside it. Show only rows that need fixing hides the rest.
  2. Correct a value in its cell, or remove a row with its ×. werkplan checks the rows again after every change.
  3. A file without a required column is refused whole: Missing required columns names them. Add them to the file and choose it again.

An import that matches rows to records by an import key also shows each row’s Outcome: New adds a record, Update changes the record the key matches and names the columns it changes, and Unchanged writes nothing.

Click the button at the foot of the dialog, which counts the rows it imports, by outcome, and the rows it skips, such as Import 48 (40 new, 8 updates), skip 2. Only the rows marked OK are written; the others stay in the dialog for you to fix and import next. Each row is written on its own, so a row that fails doesn’t stop the others, except the rows of one production order or of one product’s routing, which are written together or not at all. The dialog then says what it imported and updated, and how many rows still need fixing.

If the connection drops before werkplan answers, click the button again: werkplan knows the rows it already wrote from this file and doesn’t write them twice. Choosing the same file again is another import: the rows an import key matches come back Unchanged, but a row without a key adds its record again.

The import key is the value an import matches a row to an existing record by, such as a material’s SKU or a customer’s number. Each import’s page says what its key is, and its columns table marks the key’s columns Import key.

  • A row whose key matches a record updates it, through the same rules as saving the record’s page.
  • An empty cell, or a column the file leaves out, keeps the record’s value: clear a value on the record’s page. Only a step’s or a machine’s time per batch and rate per hour replace each other, as each page’s choice between them does.
  • The key itself never changes by import: change it on the record’s page.
  • An import never deletes a record of its kind, and never changes one the file doesn’t name. What the rules of a record’s page do still happens: an absence takes away the shifts it touches, and a routing’s steps refresh its variants’ own steps.
  • Two rows of one file naming the same record are refused on the later row. The rows of one production order are its lines, and the rows of one product’s routing its steps.
  • A customer’s, supplier’s or employee’s number is optional, and a row without one adds a record each time it is imported. Give those records their numbers before you import them again.

Where werkplan’s data comes from explains which records an import makes and how they relate to your other systems.

An import never changes the master plan. Scenarios and re-plans made after it plan with what it wrote, and the master plan changes when you promote one of them.

Two imports can report an exception to the open re-plan, as reported by the import, and tell the people who plan. The production orders import does when it adds a RUSH order or makes an order RUSH while the master plan in force has work still to do, and when it changes or adds a line of an order the master plan holds work of. The absences import does when an absence takes an employee away from work the master plan names them on, or from a published shift still to come.

Still stuck? Write to support@example.com.