Case study · Distribution

A supplier import held together by scripts was rebuilt, so that a bad file is stopped and explained.

A supplier's daily file had corrupted the catalogue more than once. We built a pipeline that checks every file and holds a bad one with reasons.

Who
A distributor with a small operations team and one technical lead, importing a daily product file from its main supplier.
Time
Six weeks.
Before

Scripts and spreadsheet steps had corrupted the catalogue more than once.

After

Every file is checked, and a bad one is held with a reason.

What we did.

How the work ranSteps in order: 1 Agree the stages: Scripts, a sample, the stages and the price; 2 Write it down: Each stage's input, output and checks; 3 Build and test: Each stage on made-up faulty files; 4 Join and run: A real sample, start to finish; 5 Review each stage: And the whole pipeline, independently; 6 You approve it: Each stage, then handover with a manual. You decide at step 1 and step 6.1 Agree the stagesScripts, a sample, thestages and the price2 Write it downEach stage's input,output and checks3 Build and testEach stage on made-upfaulty files4 Join and runA real sample, start tofinish5 Review each stageAnd the whole pipeline,independently6 You approve itEach stage, thenhandover with a manualYou decide here How the work ranSteps in order: 1 Agree the stages: Scripts, a sample, the stages and the price; 2 Write it down: Each stage's input, output and checks; 3 Build and test: Each stage on made-up faulty files; 4 Join and run: A real sample, start to finish; 5 Review each stage: And the whole pipeline, independently; 6 You approve it: Each stage, then handover with a manual. You decide at step 1 and step 6.1 Agree the stagesScripts, a sample, the stages and the price2 Write it downEach stage's input, output and checks3 Build and testEach stage on made-up faulty files4 Join and runA real sample, start to finish5 Review each stageAnd the whole pipeline, independently6 You approve itEach stage, then handover with a manualYou decide here
The steps in order. A box with a coloured border is where the client decided.

How we checked it.

All 3 had to pass before we asked for sign-off.

The 3 checks
  • For each kind of fault in the agreed test set, the pipeline holds or rejects the file or row, with a reason, and releases the clean files.
  • A run on the agreed sample, from start to finish, produces a report in which the numbers add up.
  • The company approved every stage, and its technical lead ran the pipeline from the manual without our help.

What happened.

Each morning the supplier's product file arrived, and a chain of scripts and manual steps turned it into updates on the company's store. It had grown piece by piece: downloading, decoding, reading, category rules, picture checks and publishing lived in different scripts and in one person's head.

What we found, and the technical detail

It had failed or corrupted data more than once. Each new fault was fixed in one place and broke another. Adding a second supplier meant copying the same fragile steps again.

No single script was the trouble. Nowhere in the chain was a bad file stopped and explained. A file with a changed column, a broken character or a thousand missing prices went straight through to the store.

So we started by writing down each stage: what goes in, what comes out, what is checked and what happens to a file or a row that fails. Then we rebuilt each stage as a small tested step, with a set of made-up test files for every kind of fault the company had seen. Joined together, the stages make a pipeline: a fixed series of automatic checks that every file passes through.

Technical detail. The stages are fetch, decode, parse, category mapping, picture checks where the feed has pictures, a comparison with the previous file, and a decision to hold the file with reasons or release it. Each stage has a written specification and tests against made-up files for its kind of fault. A run produces a hold-or-release report in which the numbers add up: rows read equal rows released plus rows held plus rows rejected.

What they have now.

The company received the specification, the pipeline code and its tests in a code storage account it owns, the test files, the report from the sample run, and a step-by-step manual covering when it runs, what alerts it sends and what to do when a file is held. Its technical lead ran the pipeline from the manual alone before the company approved it. The company's own team then switched its daily import over to the pipeline.

More on what they have now

The first real bad file the pipeline held was a delivery with a column moved. It was stopped with a reason before it reached the store.

What we did not do.

4 things this work did not cover
  • We did not switch the company's live import ourselves. Its own team did that after approving the pipeline.
  • We never held the supplier's credentials or any live access.
  • We did not clean or correct product data already in the store.
  • This covers one supplier feed and one target import. A second supplier is quoted separately.

Our own work you can inspect.

Our own upgrade of the open-source Tracks app: Its 647 tests ran with no failures before and after, yet 2 problems still got through. Every change is public. It is not a client, and we are not affiliated with Tracks.

See what the tests missedRead the full diff on GitHub

The service behind this.

A supplier import you can trust checks every file, and holds a bad one with a reason.

Project

Rebuild a supplier feed pipeline

Replace one fragile supplier-to-store import with a tested pipeline: fetch, check, compare with the last file, then hold or release, with category and image stages if your feed needs them.

From $5,850. You pay: The payment schedule is set in the written proposal. Nothing is charged until you have agreed it.

Get a priceSee what is included

More case studies.

All case studies

Get a price for something like this

You are asking about: Rebuild a supplier feed pipeline.

Preparing the form. If it stays unavailable, use the email link below; nothing has been submitted.

Add detail (optional)

A web address anyone can open, with no login in it. No code or logs.

We reply by email. Sending this emails your request to our team; nothing is kept in a website database. Please do not send passwords, keys or customer records. Privacy notice.

Sending this is not an order. We check we can help, then agree what is included, safe access and the price in writing before any work. Prefer email? hello@syntheticindustry.ai.