File & Folder: Reshape a data file to a target layout

Reshape a CSV or Excel file into the layout of a sample file, placing renamed, moved and preamble-shifted columns.

Help Centre › Building Processes

Reshape a CSV or Excel file into the layout of a sample file, placing renamed, moved and preamble-shifted columns.

Add it to a process

In the process designer, open the Add step tab. Find Reshape a data file to a target layout under File & Folder › File Operations, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
File to reshapeYesFile path of the file to reshape (.csv, .xlsx, .xlsm or .xls)
Sample of the file the process expectsNoUpload the file the process was built against. Only its structure is kept: sheet names, header row, columns and their types. The file itself is discarded.
Template file on the bot machineNoUsed instead of an uploaded sample: a copy of the expected file on this machine, read at run time.
Output fileYesFile path to write the reshaped file to. .xlsx keeps every target sheet; .csv writes one
Target sheetNoThe target sheet a CSV feeds, or the one sheet to reshape out of a workbook. Default: the first
VariableNoVariable to store the output path in (default: reshaped) Default: reshaped.
Ask the AI for columns the rules cannot placeNoAsk the AI to place the columns the rules could not (default: true) Default: on.
Minimum confidenceNoLowest confidence, 0 to 100, at which a fuzzy placement is applied (default: 80) Default: 80.
If a column cannot be placedNoWhen a target column has no source column: fail the step or leave it blank (default: fail) Choices: fail, blank. Default: fail.
Extra source columnsNoWhat to do with source columns the target does not have (default: drop) Choices: drop, append. Default: drop.
Dates are day/month/yearNoRead an ambiguous printed date as day/month/year (default: true) Default: on.

What it gives back

  • {reshaped} – Path of the reshaped file
  • {reshaped_report} – How each column was placed (source, strategy, confidence) and what was left out

See all File & Folder steps.

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.