惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Stack Overflow Blog
Stack Overflow Blog
T
Tailwind CSS Blog
Recent Announcements
Recent Announcements
宝玉的分享
宝玉的分享
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
P
Proofpoint News Feed
D
Docker
Google DeepMind News
Google DeepMind News
aimingoo的专栏
aimingoo的专栏
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
M
MIT News - Artificial intelligence
云风的 BLOG
云风的 BLOG
小众软件
小众软件
Hugging Face - Blog
Hugging Face - Blog
WordPress大学
WordPress大学
IT之家
IT之家
H
Help Net Security
Apple Machine Learning Research
Apple Machine Learning Research
Martin Fowler
Martin Fowler
S
SegmentFault 最新的问题
B
Blog
D
DataBreaches.Net

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
File-Drop Automations: SFMC Pattern for Daily Imports
SapotaCorp · 2026-05-24 · via DEV Community

A logistics engagement we picked up had a daily email run that was breaking once or twice a week, always silently. The job was simple: each morning the client's order management system exported a CSV of customers whose shipments had just dispatched, dropped it to SFTP, and SFMC should import + send a tracking notification.

The broken part: the automation was scheduled at 8:00 AM every day. Most days the file arrived at 8:30 or 9:00. Half the time the automation ran with yesterday's file, half the time it ran and imported nothing. A thousand customers got the wrong tracking email.

The fix is the File Drop Starting Source.

File Drop vs Schedule

File Drop triggers the automation when a new file arrives in a specified SFTP folder, not on a clock. If the client uploads at 11am instead of 8am, the automation fires at 11am. If they upload at 2am, it runs at 2am. No dependency on fixed schedules.

Use File Drop whenever the upload time is not guaranteed. Use Schedule only when you know the upload happens reliably at a fixed time (e.g. SFMC itself runs the upstream job).

The canonical sequence

File Drop Starting Source  (watching /import/shipping/)
  -> Step 1: Import File Activity   (import the CSV into Shipping_Notification_DE)
  -> Step 2: Send Email Activity    (send from Shipping_Notification_DE)

Enter fullscreen mode Exit fullscreen mode

Two steps, runs the moment the file lands, no manual babysitting.

File Transfer vs Import File - the distinction that bites

These are two different Activity types:

  • File Transfer Activity - moves or decrypts a file on SFTP. Use when the file is encrypted (PGP) or needs to be relocated to a different folder.
  • Import File Activity - reads a file from SFTP and writes the rows to a Data Extension in SFMC.

If the file is delivered encrypted, the sequence becomes:

File Drop Starting Source
  -> Step 1: File Transfer Activity  (decrypt the .pgp file)
  -> Step 2: Import File Activity    (import the decrypted CSV into DE)
  -> Step 3: Send Email Activity     (send)

Enter fullscreen mode Exit fullscreen mode

Skipping Step 1 is a common first-engagement mistake. Import File Activity reports "File Not Found" because the .pgp file can't be read directly; the actual decrypted file doesn't exist yet.

Filename patterns and the capitalization trap

File Drop can trigger on either a specific file name or on a filename pattern (with a * wildcard). Always use pattern:

shipping_*.csv     matches shipping_20240115.csv, shipping_20240216.csv, etc.

Enter fullscreen mode Exit fullscreen mode

One afternoon our pipeline stopped running. No alert, no error, just silence. The client's upstream job had changed the file naming from shipping_20240115.csv to Shipping_20240115.csv (capitalized S). File Drop matches case-sensitively. The file landed, the File Drop didn't fire, the automation didn't run.

Two protections:

  1. Document the filename convention in the runbook. Share it with the client team that owns the export job.
  2. Configure a failure notification on the automation. If it doesn't run by 10am on a workday, someone gets paged.

The SFTP folder structure SFMC expects

Every Enhanced SFTP gets three default folders:

/Import    <- Import Activity reads files from here
/Export    <- Data Extract Activity writes files here
/Reports   <- Report scheduling output

Enter fullscreen mode Exit fullscreen mode

Do not delete these. Import Activity defaults to /Import and fails with "File Not Found" if you drop files elsewhere without reconfiguring the Activity.

Each Enterprise account can have one shared SFTP or one SFTP per child account (MID). Confirm which setup the client is running on day one - the folder paths and credentials differ.

Safehouse - where decrypted files live

File Transfer Activity writes decrypted or unzipped output into a restricted area called the Safehouse, not back to the public SFTP folder. Import File Activity reads from the Safehouse in that case.

encrypted file on SFTP
  -> File Transfer Activity (decrypt) -> Safehouse
  -> Import File Activity (read from Safehouse) -> DE

Enter fullscreen mode Exit fullscreen mode

SFMC auto-purges the Safehouse and SFTP after 21 days. SFTP is not long-term storage. Plan accordingly.

Takeaway

File Drop is the right Starting Source for anything where the file arrival time isn't under your control. Pair it with a filename pattern (not a hardcoded name), document the pattern with the upstream team, and add failure notifications so a silent skip becomes a visible alert. Three habits, a class of silent bugs eliminated.


Setting up SFMC data import pipelines? Our Salesforce team designs Automation Studio flows with SFTP, PGP decryption, and monitoring on production engagements. Get in touch ->

See our full platform services for the stack we cover.