Home / How-to / Bring in your data
Bring in files and folders
Turn a CSV export, a folder of daily files or the output of your own script into a table the rest of your project can build on.
The short version
- A File Acquisition reads a delimited text file, such as a CSV, into a table of its own, named after the element.
- Its source is one file, a folder of files that share a layout, or a Producer Element: a program or script, run by an Execution Acquisition, that writes the files.
- A folder is one table. Every matching file is read the same way, the rows are added together, and a FileName column says which file each row came from.
- Columns come from the header row or are named by hand. Untick Include to leave one out, and click Determine types to type them from the data.
- Nothing loads until you process the element. Check the rows on the Data tab of the Services panel.
In this guide
What it is
A File Acquisition brings a delimited text file into your project: a CSV export, a tab-separated file, any file with one row per line and a character between the values. If you have used From Text/CSV in Excel or Power BI, it is the same idea. You say where the file is and how it is split, and ConradBI gives you a table.
The table belongs to the element and carries the element's name, not the file's. The elements you build next, such as a Prep or a Grain, bind to its columns.
A File Acquisition can read:
- One file, such as
Orders.csv. - A folder of files with the same columns, such as one orders file a day. They load as one table.
- What a program writes. An Execution Acquisition runs an executable, a batch file, a PowerShell script or a Python script, and the File Acquisition reads its output.
For other kinds of file, see Excel workbooks, websites and PDFs and JSON. For a source no built-in acquisition reads, a plugin can add one: see Custom acquisitions.
Before you start
You need:
- A project open in ConradTool, in Developer Mode, where the Elements tree, the Editor and the Services panel are.
- The file, where your computer can reach it: on a local drive or a network share.
This guide uses the orders from the running example. They arrive as comma-separated text files. The first line is a header with the column names: Order ID, Order Date, Ship Date, Site Code, Product Code, Customer ID, Channel, Units, Unit Price, Cost, Discount, Status and Email. Each line after it is one order line, such as SO-1001,2026-03-14,….
There is one file, Orders.csv, and a folder where a new Orders 2026-10-30.csv lands every day.
Two elements of a project can't share a name, and the project's Excel Acquisition is already called Orders. So this guide calls the new elements Orders CSV and Daily Orders.
Your first file: Orders.csv
This takes about five minutes.
- In the Elements tree, click the + on the Acquisitions row and pick Add File Acquisition. A right-click on the row gives the same list.
- In Add element, type
Orders CSVunder Name and click OK. The new element opens in the Editor. - Under Source, leave Source set to File. Click Browse… next to File path and pick
Orders.csv. - Under Format, check that Column delimiter is
,and Quoted identifier is". They are the defaults. - Under Columns, Use a header row is already selected, so the columns appear as soon as the file is picked: Order ID, Order Date, Ship Date and the rest, every one ticked under Include and typed Text.
- Click Determine types. ConradBI reads up to 400 rows and sets each column's Data Type from its values: Order Date becomes Date, Units Number, Unit Price Decimal.
- Check the list and change any Data Type that is wrong. A code made only of digits, such as a postcode, is typed Number. Set it back to Text if leading zeros matter.
- Untick Include for Email if you don't need it. The column stays in the list but isn't loaded.
- Save the element with Ctrl+S, or ProjectSave.
- In the Services panel, click Process current. On the Orchestration tab, the element's Status turns to Complete and Rows shows how many rows loaded.
- Open the Data tab. It reads "Rows for: Orders CSV" and shows the rows a page at a time. The Schema tab lists the columns the next elements can use, with their types.
That is the whole job. Build a Prep or a Grain on Orders CSV next, as you would on any acquisition.
Tip: Process again whenever the file changes. Each run replaces the element's rows with what it reads that time.
Columns: from the header or by hand
There are two ways to name the columns.
Use a header row reads the names from the first line of the file. The editor reads it again on its own whenever you pick another file or change the delimiter or the quote, and Re-read header reads it on demand. Each read replaces the whole list, so set types and Include after the last one. When a name appears twice, both get a number, such as Amount 1 and Amount 2, and a message lists them.
Define the column names is for a file with no header row. Click Add column once for each value in a line, then type each name under Column. Order matters: the first row of the list is the first value in each line, the second row the second value, and so on. To skip a value, untick Include rather than removing its row, so the columns after it keep their place.
In both modes:
- Include decides whether a column is loaded. An unticked column isn't loaded and isn't offered to other elements.
- Data Type sets how the values load. A value that doesn't fit the type loads empty, so a column typed wrongly loses data. When in doubt, keep Text.
- Determine types only gives a column a type when every sampled value agrees. A column that mixes numbers and words stays Text. It types the ticked columns only.
A folder of daily files
When the same file arrives again and again, one a day or one per site, point the acquisition at the folder instead of a file. ConradBI treats the folder as one table that arrives in pieces.
- Add a File Acquisition called
Daily Orders. - Set Source to Folder.
- Click Browse… next to Folder path and pick the folder.
- In File filter, type which files to read, for example
Orders*.csv. The default,*.*, reads every file in the folder. - Click Browse… next to Sample file and pick one of the files. Until you do, a red line under the field asks you to pick one.
- Set up the columns from the sample file, as for a single file, then save and process.
The sample file stands in for all the others. Its header names the columns, and Determine types reads its rows. The editor reads nothing else in the folder, so pick a typical file, not an empty one.
When the element processes:
- Every file in the folder that matches the filter is read with the same settings, in order of file name, and the rows are added together. Files in folders inside it aren't read.
- Each row gets one more column, FileName, with the name of the file it came from. You don't add it to the list. You see it on the Data tab after the run.
- The files must share a layout. A file with an extra column in the middle shifts the values after it.
- If no file matches, the run loads no rows and the element's status says so — or the element fails, when When the file is missing under Source is set to Fail the element. The same choice covers a single file that isn't there.
Tip: Keep other files out of the reading folder, or make the filter strict enough to skip them. A stray
Notes.txtread as orders gives rows of nonsense.
Archiving loaded files
A folder that only ever grows gets slower to read and is read in full every time. The After processing group can move the files out of the way once a run is over. Both options are off until you turn them on.
- Archive the file after it loads moves each file into the Archive folder once the run has loaded it.
- Move the file to an exception folder if the load fails moves the files into the Exception folder when the run fails, so you can look at them and drop them back.
Either folder is created if it doesn't exist. A moved file keeps its name. If a file of that name is already there, the date and time are added to the new one's name, so nothing is overwritten. With a folder source, every file the run read is moved.
Remember that each run replaces the element's rows with what it reads. With archiving on, a run reads only the files that arrived since the last one, so the table holds only those rows, and none on a day when nothing arrived. If you want every day's orders in one table, leave archiving off and let the folder keep them.
Files a program writes
Sometimes the file doesn't wait in a folder: a program makes it, such as an export from another system or a script that calls a web service. An Execution Acquisition runs that program, and the File Acquisition reads what it wrote. The Execution Acquisition loads nothing itself. It only makes the files appear.
Set up the program
- Add an Execution Acquisition, for example
Export Orders. - Under Program, pick the Mode: Executable (.exe), Batch file (.bat, .cmd), PowerShell (.ps1) or Python Script (.py).
- Click Browse… next to Program and pick the program or script. Put anything it needs in Arguments.
- Under Target, set Target is a to File or Folder, and give the File path or Folder path where the program writes.
- Leave Pass the target path to the program as its last argument ticked. The program is then told where to write: the path comes after your Arguments, so a script reads it as its last argument.
- Click Run now. The line under the button says whether the program succeeded and how many files are at the target.
A folder target is created before the program runs. The program runs in its own folder, so a script can find files that sit beside it. A Python script runs with the python command, so Python must be installed on the computer that processes.
Point the File Acquisition at it
- In your File Acquisition, set Source to Producer Element.
- Pick the Execution Acquisition in Produced by. Its path shows below, ready to read. You change the path in the Execution Acquisition, not here.
- For a folder target, fill in File filter and Sample file as for any folder. Run the program once first, so there is a file to pick.
- Set up the columns, then save.
How a run goes
When you process, ConradBI runs the program first and reads its files after. Process both together: click Process all, or tick both elements on the Orchestration tab and click Process checked. Processing the File Acquisition alone works only once the Execution Acquisition has been processed.
The program tells ConradBI how it went by its exit code, as every shell does:
- Exit code 0 means the files are written and complete.
- Anything else stops the element with the last line the program wrote to standard error, and nothing downstream reads a half-written file. The box How your program reports a failure shows how to exit with an error in the mode you picked.
- Timeout (seconds) stops a program that hangs. The default is 300. Type 0 to wait as long as it takes.
A PowerShell script runs without your PowerShell profile, and the execution policy is set aside for that one run.
When something goes wrong
| What you see | What to do |
|---|---|
| "Couldn't read a header row from the source. Check the source path and format, then try again." | Check File path, or Sample file for a folder, and that the file isn't empty |
| "Couldn't read sample rows" when you click Determine types | The file can't be read, has no rows under its header, or no column is ticked under Include |
| "Duplicate column names were found and given a number so each stays unique" | Two header cells share a name. Rename the columns under Column if the numbers don't suit you |
| A red "Pick a sample file" line under Sample file | Pick one file from the folder. The editor can't read the columns without it |
| Every value lands in one column | The Column delimiter is wrong. Type the file's own, such as ; or \t for a tab |
| Quote marks show in the values, or values spill into the next column | Set Quoted identifier to the file's quote character |
| A column is empty after processing | Its values don't fit its Data Type. Set it to Text, or fix the values in the file |
| Accented letters look wrong | ConradBI reads the file as UTF-8. Save the file as UTF-8 |
| Status says "Failed: A dependency has not been processed yet." | The File Acquisition reads from a producer that hasn't run. Use Process all, or check both and use Process checked |
| "The program failed (exit code 1): …" | The program reported an error. The text after the colon is the last line it wrote |
| "The program didn't finish in the time allowed and was stopped." | Raise Timeout (seconds), or set it to 0 |
| "The program finished successfully, but nothing was found at the target path" | The program wrote somewhere else. Make it write to the path it gets as its last argument |
| Yesterday's rows are gone | Archiving moved yesterday's files away, and each run replaces the rows with what it reads |
Reference
The File Acquisition editor
| Group | Field | What it does |
|---|---|---|
| Source | Source | File, Folder or Producer Element |
| Source | File path | The file to read. The icon at its end binds it to an environment variable |
| Source | Folder path | The folder to read, read as one table |
| Source | File filter | Which files in the folder to read. *.* reads them all |
| Source | Sample file | The one file the editor reads to find the columns and types |
| Source | Produced by | The Execution Acquisition whose output to read |
| Format | Column delimiter | The character between values. , by default, \t for a tab. Only the first character counts |
| Format | Row delimiter | A row ends at each line break, whichever kind the file uses |
| Format | Quoted identifier | The quote around values that hold the delimiter. " by default. Inside quotes, a doubled quote is one quote and a line break is part of the value |
| Columns | Use a header row | Names the columns from the first line, and skips that line when loading |
| Columns | Define the column names | You name the columns, in the file's order |
| After processing | Archive the file after it loads | Moves loaded files to the Archive folder |
| After processing | Move the file to an exception folder if the load fails | Moves the files to the Exception folder when a run fails |
Data types
| Type | Holds |
|---|---|
| Number, Big Number | Whole numbers. Big Number holds ones past about two billion |
| Decimal | Numbers with decimals |
| Text, Paragraph, Book | Text. In SQL Server storage, Text holds up to 100 characters, Paragraph up to 4,000, and Book any length |
| Date, Date & Time | A date, or a date with a time |
| True or False | Yes or no. Determine types picks it for a column of true and false values |
Missing something?
Tell us what you were trying to do and what this guide didn't answer. We update it with every release.
Write to usWhat changed in this guide
- November 21, 2026: Reviewed against ConradBI 1.2.59.
- October 31, 2026: First edition, written for ConradBI 1.2.52.
