Input file validation

Record what a good input spreadsheet looks like, so the bot checks every file before it is used and stops with a clear reason when sheets or columns have changed.

Help Centre › Building Processes

A process that reads a spreadsheet breaks in confusing ways when someone renames a column or deletes a sheet. Input file validation stops that. You show Automize a good file once. From then on the bot compares every file with it and stops early, with a clear message, when the layout has changed.

Only the layout is kept: sheet names, column names, column types, tables and named ranges. The values in the file are never stored. Excel files (.xlsx) are supported.

1. Set it up

  1. Open the process and choose the Add step tab. Add an Input file to the map.
  2. Draw a line from the Input file to the step that opens the file.
  3. Click the Input file and choose Upload sample file. Pick a file that is right.

The popup now shows the sheets and columns it found and when it was saved. If the file's layout changes on purpose, choose Re-baseline and upload the new file.

The process's Data tab lists every input file under File inputs.

2. What the bot checks

The bot checks the file before the run starts, and again at the step that opens it. For each difference it does what you chose (see below):

  • Halt run – the run stops before using the file. If it is caught before the start, the run is rejected with the reason.
  • Warn – the run goes on, and the difference is noted.
  • Info only – noted quietly.
  • Ignore – not reported.

3. Choose what counts as breaking

In the Input file popup, open Drift gating. Each kind of change has its own setting:

ChangeDefault
Sheet removedHalt run
Column removedHalt run
Column data type changedHalt run
Header row movedHalt run
Column renamedWarn
New column addedWarn
Table removedWarn
Columns reorderedInfo only
New sheet addedInfo only
Named range removedInfo only

For example, if your steps find columns by name, a new column order does no harm, so leave it at Info only. If they read by position, set it to Halt run.

4. Fix a file whose layout moved

When files arrive with columns renamed or moved, add a Reshape a data file to a target layout step before the steps that read it. Give it the layout of a file that works. It writes a new file in that layout, so the rest of the process runs unchanged. It matches columns by name first, then by similar names and position, and asks AI only for what is left. By default only the column names are sent to AI, not the values. If a column cannot be placed, the step fails rather than guess.

Related articles

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.