Skip to main content

Your automation created every order twice last night. How do you find and fix it?

Automation workflows · Beginner 3

Short answer

Stop the workflow, list the duplicates and clean them up with the business. Then check the run history: often the trigger fired twice, a webhook was retried after a timeout, or a step was rerun after a failure. Fix it with idempotency: a unique order ID checked before creating, and safe retries. Add an alert for unusual volumes.

Deeper answer

Duplicates are one of the most common automation bugs. Webhook senders often retry when they do not get a quick success response, and many platforms rerun failed executions. If your 'create' step does not check whether the record already exists, every retry creates another copy.

The standard fix is an idempotency key, usually the source system's order or event ID, stored and checked before creating anything. Respond to webhooks quickly and do slow work after. Then add monitoring: a count of records created per hour with an alert when it jumps.

What a strong answer covers

Answer it out loud in the mock interview about 1.5 min

Follow-ups to expect

Common mistakes

Learn it

Error handling and retries

Today's AI turns are used

Lessons, roadmaps, videos, practice cards and the code playground stay free with your account, with no limit.