Skip to main content

Create and Run a Data Pipeline

Set up a pipeline, map and test its fields, choose what it creates, updates and sends, then run imports and exports and check the logs.

A data pipeline moves data between Fountain and a file or another system. This article walks you through creating one, choosing what it creates, updates and sends, and checking the results of its runs. To run imports and exports, see Import and Export Data With Data Pipelines.

For what Data Pipelines are, the data types they cover and how imports match existing records, see Data Pipelines.


Navigate to Data Pipelines

Navigate to Settings, then search for Data Pipelines or scroll to the Workflows section and select it.


Create a Data Pipeline

Select Add a data pipeline from the Data Pipelines page. If no pipelines exist yet, select New Data Pipeline from the empty state.

Pipeline creation has two steps: Setup and Mapping.

Set Up the Pipeline

The Setup step configures the pipeline's basic properties.

  1. Enter a name for the pipeline in the Name field.

  2. Under Attributes to provide, keep Inbound — from outside to Fountain to import data, or choose Outbound — from Fountain to outside to export it. See Export Data in Import and Export Data With Data Pipelines.

  3. Open the Data type dropdown and select the Fountain entity you want to import data into: Workers, Jobs, Locations, Openings, Location Groups, Prospects, or Shift Demand.

  4. Under Sample data, provide a representative sample of your source file. Fountain uses this sample to generate the field mapping interface in the next step. Choose one of three input methods:

    • CSV file — Upload a CSV file (10 MB max)

    • JSON file — Upload a JSON file (10 MB max)

    • JSON — Paste JSON data directly into the text area

  5. If your JSON source data is nested, select Enter custom path under JSON data path and specify the path to the data array.

  6. Select Next to continue to the Mapping step.

Map Fields

The Mapping step connects fields from your source data to the corresponding fields in the Fountain database.

Fountain automatically maps source columns to Fountain fields when the names match. For any column that has not been mapped, open the Select field dropdown on the right side of that row and choose the appropriate Fountain target field.

The Mapping step also shows a blue note, How Fountain matches rows to existing records, with the matching keys for the data type you selected. Each key you map is used to match rows to existing records. See How Imports Match Existing Records in Data Pipelines.

Target fields are organized into two categories:

  • Standard fields — Core Fountain fields such as uuid, name, etc...

  • Custom attributes — Custom fields defined for your account (for example, Department, Grade, FLSA Status)

To map a source field that does not appear in the main mapping list, select Add a mapping. The Add mapping panel opens on the right side of the screen. Select the source column from the Source Field dropdown, then select the target field from the Target Field list.

To remove a mapping — for example, if your sample file contains extra headers you do not want to import — select the delete icon to the right of that row.

Add Calculated Fields

Sometimes your source data does not line up with Fountain one-to-one: a value arrives in the wrong format, or a single Fountain field has to be built from several source columns. For those cases, add a Calculated Field.

A Calculated Field works differently from a normal mapping. Its value is not copied from a source column — it is computed by a short JavaScript expression that you write, and the result is what gets mapped into the Fountain target field. This lets you handle messy source files directly in Fountain, without pre-processing them in another tool first.

Create a Calculated Field

  1. In the Mapping step, open the + menu and select Calculated Field.

  2. Enter a Field Name. This is a synthetic field that does not exist in your source file, so name it after the value it produces — for example full_name or normalized_state.

  3. Write a Script. It must be a JavaScript arrow expression that receives { row } and returns the value for the field. Read a column with row.column_name, or row["Column Name"] when the header contains spaces or special characters.

  4. Select Save. The new field appears as a row in the mapping list with a Calculated badge — open the dropdown on that row to choose the Fountain target field that receives the result.

To change a script later, select the </> icon on the calculated row. Select Read documentation inside the editor for a searchable library of ready-made examples.

Examples

Common patterns, in increasing order of complexity:

  • Combine several columns — your file has separate first and last name columns, but Fountain needs one display name:
    ​({ row }) => row.first_name + " " + row.last_name

  • Normalize casing and stray spaces — state codes arrive as " ca" or "Ca" and must be consistent:
    ​({ row }) => row.state_code.trim().toUpperCase()

  • Reformat a date — your system exports 03/14/2026 but Fountain expects an ISO date:
    ​({ row }) => row.hire_date.replace(/(\d{2})\/(\d{2})\/(\d{4})/, "$3-$1-$2")

  • Split a combined value — one column holds "Operations - Night Shift" and you only want the department:
    ​({ row }) => row.department.split(" - ")[0]

  • Translate a code into a readable value — your file uses FT and PT:
    ​({ row }) => row.emp_type === "FT" ? "Full time" : "Part time"

  • Derive a true or false value — flag remote roles based on the location name:
    ​({ row }) => row.location_name.toLowerCase().includes("remote")

  • Clear a value on purpose — a blank cell never erases anything, so return an empty string to clear an attribute:
    ​({ row }) => row.status === "terminated" ? "" : row.uniform_size

For lookups that depend on data already in Fountain — resolving a location or job name to its record, or translating a long list of codes through a Dataset used as a lookup table — select the entity types you need under Enrich import data using on the Setup step. They are then available to your script as named parameters. The Read documentation panel in the script editor shows the exact syntax for each entity.

Script Execution and Error Handling

Scripts run in a secure sandbox, once per row, with a short execution limit per row. Keep them simple and free of side effects, and make sure they return a single value (text, number, true/false, or empty).

If a script fails on a given row, that field is left unmapped for that row rather than failing the whole import. Failures appear in the pipeline logs as Calculation error, with the row number and field name.

Always use Test before saving the pipeline to confirm your calculated values resolve as expected against real sample data.

Test the Mapping

Before saving, test the mapping against your sample data to confirm that fields resolve correctly.

Select Test in the top right corner of the Mapping step. The Preview Mapping modal opens ready to run the test. Click Run Test to run the mapping against all records in your sample data.

The modal has three sections:

  • Record list (left) — A scrollable list of records from your sample data. Select any record to view its values in the center panel.

  • Sample data (center) — The field values for the selected record, showing source values and their resolved Fountain targets. The top of this panel displays a summary of total lines processed, errors, and warnings.

  • Logs (right) — A per-field breakdown showing whether each mapping passed or failed, along with the resolved value

If you need to adjust a mapping after reviewing the results, close the modal, update the mapping, and select Test again. Select Retry within the modal to re-run the test without closing.

When the pipeline has rules (see Choose What the Pipeline Writes), the test also marks each sample row a rule would leave out, with the reason, such as Condition not met. The test doesn't look up your records, so an import row shows Not created if new or Not updated if existing. An outbound row shows Not sent.

Save the Pipeline

When you are satisfied with the mapping, select Save in the top right corner of the Mapping step.

The pipeline is saved and added to the Data Pipelines list with a status of Active. A confirmation message appears at the top of the page.


Choose What the Pipeline Writes

By default, a run creates a record for every row that matches none, updates every record a row matches, and writes every mapped field each time. Rules on the Mapping step change that for one pipeline.

Check That Rules Apply to Your Pipeline

Rules are available on custom pipelines that import Workers, Jobs, Locations, Location Groups, Openings or Datasets, and on custom outbound pipelines. Prospect and Applicant imports always create and update. A standard pipeline, listed under Templates, is read-only: clone it from its ⋮ menu, set rules on the copy, and select the copy wherever the original runs, such as in an automation. If a sync in Settings > Connectors runs the pipeline, keep the default settings: with rules or At creation fields, the sync stops with an error at its next run.

Set Create and Update Rules

Two questions are answered separately: what happens to a row that matches no record, and what happens to a row that matches one. The pipeline's matching keys decide which case applies (see How Imports Match Existing Records in Data Pipelines).

  1. On the Mapping step, select Create & update rules in the top bar.

  2. Under Workers not in Fountain yet, choose Create a worker, Create a worker only when… or Don't create any workers.

  3. Under Workers already in Fountain, choose Update the worker, Update the worker only when… or Don't update any workers.

  4. For an only when… option, build the condition: a column of your file, an operator (is one of, is not one of, is empty, is not empty or starts with) and values written exactly as in the file, case and spaces included. Conditions read the file before Calculated Fields run. Select Add a line for more lines, and set Match to all of these or any of these.

  5. Select Done, then test and save the pipeline (see Test the Mapping).

The labels follow the pipeline's data type, for example Locations not in Fountain yet. A dot on the Create & update rules button shows that the pipeline has rules other than the default.

Import Active Workers Only, Keep Departures

Choose Create a worker only when… with your status column is one of every status that counts as working, such as active and on leave. Keep Update the worker with no condition, so workers already in Fountain still receive their departure as long as your file includes them.

Rows a rule leaves out are not errors and send no alert email. After the first runs, check Record outcomes in the pipeline logs (see View Pipeline Logs).

The top of the panel shows who last changed the rules and when, including changes made through the Fountain API. Show JSON shows the rules as read-only JSON. Restore defaults returns to the default rules and sets every At creation field back to On every run when you save.

Set a Field Only When the Record Is Created

To keep a value your team edits in Fountain, have the pipeline write its field only when it creates the record. Know two things first:

  • The field is written only by a run that creates the record. A record that already exists, or that another source created, never gets it from this pipeline, and a value missing at creation is not filled in later.

  • Keep a worker's employment status on On every run. Set at creation only, a worker who leaves stays active in Fountain.

To set the field:

  1. On the field's mapping row, select ⋮.

  2. Under This field is written, select Only when the record is created. The row shows an At creation tag.

  3. Save the pipeline.

Some fields are always written on every run, and the menu shows the option as unavailable:

  • Fields Fountain uses to match rows, such as IDs, email and the names it matches on.

  • An Opening's location, unless the pipeline also maps the Opening's Fountain or Hire ID straight from a column of your file.

  • An Opening's Active field while Go Enabled is written on every run. To set Active at creation only, set Go Enabled at creation only too.

Set Sending Rules on an Outbound Pipeline

An outbound pipeline sends every record by default. A failed export can't be retried once its Sending rules have changed, so retry any failed export you still need before you change them. After the change, start a new export instead.

  1. On the Mapping step of the outbound pipeline, select Sending rules in the top bar.

  2. Select Send only when… and build the condition from the record's fields in Fountain.

  3. Select Done, then save the pipeline.

Records left out are listed as Not sent in the run, and the run still succeeds.

Know What Rules Don't Cover

A few cases need another approach:

  • A condition can't run a script or read a Calculated Field. When the decision needs other logic, add a column to your source file that holds the result, and test that column.

  • Rules don't apply to a sync in Settings > Connectors. To filter HRIS data with rules, have an automation run the pipeline instead: on a file sent by SFTP, a webhook, or a scheduled report from Workday or Dayforce.

  • A Dataset pipeline without a key column only adds rows, so its update rule is unavailable. Once the pipeline is saved with a key column, you can switch the key to another mapped column but not remove it. To add every row again, create a new pipeline without a key.


View Pipeline Logs

The Logs page shows the execution history for all pipeline runs. Select Explore Logs from the Data Pipelines page to access it.

Each log entry displays:

  • Direction — Whether the run was an import or an export

  • File Name — The name of the file that was processed

  • Data Pipeline — The pipeline used to process the file

  • Status — Whether the run succeeded or failed

  • Last Attempted At — The date and time of the run in local time

Select a log entry to view the full execution detail, including row-level statistics: total rows processed, success count, failure count, create count, and update count.

Rows that fail to match are listed in the execution detail with their line number and a message that explains what happened. See Fix Rows That Fail below.

For a pipeline with rules, the execution detail also shows Record outcomes: rows read and how many were Created, Not created, Updated, Not updated, Not sent and Failed, with the reason for each skipped row. Rows left out by rules are not failures, so they don't trigger the alert email.

Select Copy payload to copy the raw execution log to your clipboard.

Fix Rows That Fail

The pipeline logs list each failed row with its line number and one of these messages:

Message

What happened

What to do

This row matches more than one job: name (ID), name (ID).

The row's keys point at different records.

Fix the data, or remove the column that disagrees.

No job has the ID ID. A Fountain ID only updates an existing record.

The Fountain ID matches nothing.

Check the ID, or leave it empty so the row can create a record.

This job already has HRIS ID ID. A pipeline can't change it.

The row carries a different HRIS ID than the one stored.

Correct the ID in your source system.

No active user in this account matches value. Use a WX user ID, a Hire user ID or an email.

An owner or supervisor matches no active user, or several.

Use a value that identifies one active user.

Couldn't verify the owner.

Fountain could not read your users at that moment.

Run the import again.

Validation failed: name: Required

The row has no name.

Add the name, even when the row has an ID.

Duplicate job name 'name' (first seen at row n)

Two rows in the same file share a name. This check ignores case.

Keep one row per record.

The record type in each message follows the data type: job, location, worker, and so on.

Did this answer your question?