Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
  1. Home
  2. Blog
  3. The Files That Arrive and Get Processed by Hand
Python & Django

The Files That Arrive and Get Processed by Hand

Automating files that arrive by email or into a folder each day: watch, validate, process and archive them, and raise an alert when one fails to arrive.

Updated 2 min readBy SpiderHunts Technologies

Free estimateNo obligation

Get a free estimate

Tell us what you need. A senior engineer reads every enquiry.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →

Quick answer — TL;DR

Files arriving by email or into a folder, opened and processed manually, are a common and easily automated cost. Watch, validate, process, archive, alert on anything unexpected.

The pattern is everywhere

A supplier emails a file every morning. Someone opens it, checks it, reformats it and loads it somewhere. Or a folder receives files that someone processes when they notice.

It is repetitive, rule-based and error-prone, which makes it close to ideal for automation.

What the automation does

  1. Watches the mailbox or folder for new files
  2. Identifies what kind of file it is
  3. Validates the structure and content before processing
  4. Processes it into the destination
  5. Archives the original and records what happened
The validation step is what makes it safe. A file with a changed column order processed blindly corrupts data in a way that is difficult to unpick.

Handle the awkward realities

  • Files that arrive late, or twice, or not at all
  • Column order or naming changing without notice
  • Encoding differences that break accented characters
  • Zero-byte or partially written files
  • The occasional file that is a different format entirely

Alert on absence

A file that does not arrive is as important as one that fails. If the daily file has not appeared by the expected time, somebody should be told.

That is the alert that catches a supplier changing their process without telling you, which happens more often than anyone expects.

Keep the originals

KeepWhy
The original fileReprocessing and disputes
A processing recordWhat happened and when
Anything quarantinedDiagnosis and reprocessing
The validation resultEvidence the check ran
A retention periodSo it does not grow indefinitely

FAQ

Frequently asked questions

The questions readers ask us after this guide.

Still have a question?

Ask us directly — a senior engineer will get back to you.

Ask about your project

Can it read email attachments?

Yes, through the mail provider's API. Microsoft 365 and Google Workspace both support this well.

What if a file is malformed?

Quarantine it with the reason and alert. Never process something that failed validation.

How do we handle files that arrive twice?

Deduplicate on a content hash or a defined key. Processing the same file twice is a common source of duplicate records.

What does this cost to build?

£2,000–£6,000 for a robust file processing automation including validation and alerting.

Keep reading

More on Python & Django

Python & Django

An API Other Systems Can Depend On

Designing a Python API service others can depend on: validation at the boundary, consistent errors and status codes, early versioning and documentation.

Python & Django

Moving and Transforming Data Reliably

Building data pipelines in Python that cope with malformed input: restartable stages, quarantining failures, reconciling counts and alerting on absence.

Start here

A file that arrives every morning and gets processed by hand?

That is a contained automation with a clear daily saving. Happy to scope it.

  1. You tell us what you needTwo minutes on the form, or a message on WhatsApp.
  2. A senior engineer reviews itAnd comes back with questions, a realistic range and an honest view on fit.
  3. Free 30-minute scoping callWe talk through scope, options and a realistic estimate — with no obligation.
Free estimateNo obligation

Talk to someone who builds this

Send a short brief and we will come back with an honest view and a realistic range.

Takes under a minute. We never share your details.

  • Free consultation
  • No commitment
  • NDA on request

Prefer to talk? Book a free 30-minute call →