Think Build Implement Repeat
London, UK +44 7367 067226
WhatsApp FOLLOW f in X
Python & Django

The Files That Arrive and Get Processed by Hand

Last updated:

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

Frequently asked questions

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

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.

Book a free 30-minute call Get a project estimate WhatsApp us

Related services

What we build for problems like this one

Custom Software DevelopmentWeb DevelopmentMachine Learning