Combine files dropped in a folder into one dataset
A Data Consolidation automation watches a folder in your Data Library and adds each file that lands there to a destination dataset. There is no schedule: the file arriving is the trigger. Create one from Automations > New automation > Data Consolidation. It is a plan feature, and your project role needs the Create/manage orchestration flows permission.
How a watched folder handles a new file
A file is uploaded to, or moved into, the watched folder
│
▼
The folder's rules are checked in order; the first rule the file matches takes it
│
▼
The file is checked against the destination (columns, duplicates, recipe)
│
▼
Added to the destination dataset (the file leaves the folder)
or kept in the folder with a reason (Not added, Kept separate, Duplicate...)
- Only an Active automation takes files. While it is suspended, new files stay in the folder.
- A file goes to one place: the first rule it matches. See Send files from one folder to several datasets.
- A file that can't be added stays in the folder with a chip and a reason, such as Not added, Kept separate or Duplicate. The person who added it and the automation's owner are told, and the status changes to Files not added. See Fix files a watched folder didn't add.
Before you start
- Source folder: a folder in the current project that your team uploads files to.
- Destination dataset: it must already exist. Datasets from a connector, and datasets in an error state or still needing an action, can't be picked.
- Matching columns: files should have the destination's columns. You choose what happens when they don't in the destination's settings, which open from the wizard.
- Plan: if your plan lacks it, the card shows a plan pill (or Trial during a trial) and opens the upgrade prompt instead of the wizard. See What each plan decides.
Set up a Data Consolidation automation
Open New automation from the Data Library header, a folder's empty state or an item's menu, and select Data Consolidation. The steps are Select destination, Select source folder and Review & save. Starting from a folder completes the source folder step.
Pick the destination dataset and how files go in
- In Select destination, click Select dataset(s) and choose the dataset. The step reads: "New files picked up by this automation will be added to this dataset." Click Switch to pick another.
- Check the dataset's current Update method.
- To change how files go in, click the pencil next to it (tooltip Combine / Replace Settings for Sales, with your dataset's name).
Click the pencil to choose Combine or Replace, what happens when a column type doesn't match, and how columns are mapped. See Set how new files go into the dataset.
Choose the folder to watch and which files it takes
- In Select source folder, click Select folder and choose the folder. The step reads "Files added to this folder are picked up automatically." Click Switch to change it.
- Optional: turn on Include subfolders to also take files added to subfolders.
- Optional: turn on Only process files matching a name pattern, choose a match type and enter the text. Turn on Case sensitive for an exact-case match.
| Match type | Takes a file when its name... |
|---|---|
| Starts with | begins with the text you enter |
| Ends with | ends with the text you enter |
| Contains | includes the text anywhere |
| Matches exactly | is identical to the text (aside from case, unless Case sensitive is on) |
By default, matching ignores case (Invoice and invoice are the same). With name matching off, the automation takes every file, and the summary says "All file names allowed". An automation created before these options keeps its original "contains text" filter, shown as Contains when you edit it. If other automations already watch the folder, the step lists their rules: see Send files from one folder to several datasets.
Review and save the consolidation
On Review & save, name the automation, add an optional description, and review the source folder, destination dataset and filter. Click Save automation. It starts watching the folder straight away.
Check a consolidation's status and history
Click the automation row. The Summary shows the source folder, name pattern and destination, the Overview the Last run result, and History each run's files (click Files on a run). The status is Active while it watches the folder and Suspended while paused. Files not added means files are waiting on someone, and Needs your input means a PDF or image batch couldn't be matched to the destination's recipe. See Read automation statuses.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| Status shows Error, and the wizard shows the folder or dataset as not found | The source folder or destination dataset was deleted | Edit the automation to point to new items, restore them from Trash, or delete the automation |
| Status shows Files not added | One or more files didn't go in | See Fix files a watched folder didn't add |
| A file stayed with no chip, or went to the wrong dataset | No rule took it, or an earlier rule did | See Send files from one folder to several datasets |
Related
- Fix files a watched folder didn't add: read file chips and add waiting files.
- Collect files from cloud folders: feed the watched folder from cloud storage.
- Manage automations: suspend, resume, edit or delete it.
- Folders and folder rules: create folders and route incoming files.
Something wrong? support@mammoth.io