Blog & Insights

How do you move from manual exports to maintainable data pipelines?

List the exports people run by hand, rank them by what depends on them, and replace them one at a time with scheduled jobs that check their own results. Run the old export and the new job side by side until they agree, then retire the export.

List every export that someone runs by hand, rank them by what depends on them, and replace them one at a time with a scheduled job that pulls from the source system, checks what it loaded and tells someone when it fails. Run the old export and the new job side by side until they agree, then retire the export on purpose. A pipeline is maintainable when a second person can read it, rerun it and fix it.

Find every export that someone runs by hand

Some you know about already. The rest turn up in a few places.

  • Ask each department which files they download, clean up and send on, and how often.
  • Look in shared drives for workbooks with a month or a date in the file name.
  • List the scheduled reports that your ERP, CRM and billing systems send by email, and who receives them.
  • Open your BI tool and find the reports whose source is a spreadsheet or a CSV file in someone’s personal folder.

For each export, write down who runs it, how often, which system it comes from, what the person changes by hand, where the file goes next and who uses the result. The last of those matters most. An export that nobody reads can stop.

Decide which to replace first

Rank the list by what depends on each export. Put at the top the ones that feed the month-end close, customer billing, payroll or a report the executive team reads, and the ones that only one person knows how to run. Which of your systems and processes depend on one person? covers how to find those.

Leave two kinds alone. A one-off pull for an analysis is a normal use of an export. A file that needs judgment every time, where a person decides row by row what to keep, is a process to redesign before it is something to automate.

Then pick one and finish it before you start the next.

Write down what the person does to the file

Sit with the person while they run the export, and record each change they make, such as deleting test accounts, correcting customer names that are always wrong, remapping old product codes and pasting in rows from a second system. Each of those edits is a business rule that exists only in their hands.

Each rule belongs in one of two places. A correction to bad data belongs in the source system, so that every report gets the fix. A real business rule, such as which accounts to exclude, belongs in the pipeline, written where a reviewer can read it. A pipeline built without these rules will produce numbers that differ from the spreadsheet, and people will believe the spreadsheet.

Choose how the data leaves the source system

In order of preference:

  1. The vendor’s API. It is supported and documented, and it survives upgrades better than the alternatives.
  2. Read access to the database, or to a replica of it. Read from views where you can, so that a change to a table does not break the load.
  3. A scheduled export that the system produces itself, delivered to a folder or a file store with no person involved.
  4. Automating the screens a person clicks through. Use this last, and only until something better is available. It breaks whenever the screen changes.

Check what your contract with the vendor allows before you depend on an API or on direct database access. If the volume permits, reload the full set on each run at first. It is easier to reason about than loading only what changed, and you can move to incremental loads when the volume requires it.

Build it so that someone else can run it

These properties separate a pipeline from a script on one person’s laptop.

  • The code or the pipeline definition is in source control, in a repository the company controls.
  • It runs under a service account, with its credentials kept in a vault. A job that runs under one employee’s login stops when that person’s account is disabled.
  • It lands the data unchanged first, then transforms it in a separate step. You can see what the source said, and you can rerun a corrected rule without extracting again.
  • It is safe to rerun. Running the same load twice leaves the same result, with no doubled rows.
  • It checks its own work. After each load it compares row counts and a control total with the source, looks for duplicate keys, and records when it finished.
  • Failures go to a shared mailbox or channel. An alert that reaches one person’s inbox is missed the week they are away.
  • It has one page of instructions: what it loads, when, how to rerun it, and who owns the numbers it produces.

Use the scheduler and the integration tool your team already knows.

Run both until they agree

Keep the manual export going while the pipeline runs beside it, and compare the two results for at least one full cycle of whatever the data feeds. If it feeds the close, that means one month-end.

Each difference has one of two causes. Either the pipeline is missing a rule the person applies, or the manual process has been making an error that nobody noticed. Settle each one with the person who ran the export and the person who owns the number.

When the two agree, retire the export deliberately. Take the task off the person’s list, archive the old workbook where it cannot be mistaken for the current one, and point every report at the new source. If the spreadsheet stays in circulation, you have two versions of the number.

Give it an owner and keep watching it

Source systems change. A vendor update renames a field, a new product line adds a code nobody mapped, or a customer starts sending a file in a new layout. Name an owner in IT for the pipeline and an owner in the business for the numbers, and have the two of them review the failures and the check results on a regular schedule.

Getting the data from whoever already has it

Sometimes the better fix is to stop keying the data at all. Express Freight Handlers unloads trucks for wholesale food distributors and deals with millions of purchase orders. In his review on Clutch, its president, Jim Wissing, says the company had been doing the work manually. He says that at our suggestion it now receives data files from its customers, and that the load information is ingested each morning, so that when a site manager enters a purchase order the details fill in on the tablet.

Before you build a pipeline from your own system, ask whether a customer, a supplier or another system already holds the data in a form it could send you.

What usually goes wrong

  • The export is automated and the hand edits are not, so the new numbers do not match the old ones.
  • The job runs under one person’s account on one person’s machine, which recreates the dependence it was meant to remove.
  • Every export is taken on at once, and none is finished.

Common questions

Do we need a data warehouse before we build pipelines? No. A pipeline can load the reporting database you already have. The discipline is the same wherever the data lands: scheduled, checked, in source control and owned. A warehouse becomes worth building when many systems feed the same reports.

Should we buy an integration tool or write code? Use whichever your team can maintain. A purchased tool gives you connectors and scheduling without building them, and code gives you more control over unusual sources. Either is fine if the work is in source control, runs under a service account and checks its results.

What if the source system has no API? Ask the vendor for a scheduled export or for read access to the database. A file that the system delivers to a folder on its own is a workable source. A file that waits for a person to click a button leaves you where you started.

If the exports feed something you intend to build properly, such as a reporting layer or a set of integrations, a VDP Sprint produces the requirements, a technology-stack recommendation and a roadmap with the investment for the first release, for a fixed fee.

Related service: Data & Analytics

More like this, in your inbox. Subscribe for our latest thinking, resources, and events.

Get started

Want results like these?