Every night a workflow sends payment reminders for about 2,000 rows from a sheet. How would you design it so that one bad row does not stop the others?
Automation workflows · Intermediate 1
Short answer
I process rows one by one or in small batches and catch errors per row. A failed row is written to a failed-items list with the reason, and the loop continues. I mark each row as sent so a rerun skips it. At the end I send a summary: sent, skipped, failed. I alert if failures cross a limit.
Deeper answer
By default many tools stop the whole run at the first error. With 2,000 rows, a wrong phone number in row 212 would then block 1,788 customers. So I separate two kinds of failure. A row problem, such as a missing number, should fail only that row. A system problem, such as the messaging service being down, should stop the run early, because every row will fail.
I validate each row first, set the send step to continue on error, and record the result against the row: sent, with the time, or failed, with the reason. That status column also makes the run safe to restart. A limit such as 'stop if 50 rows fail one after another' protects against a system problem. Next morning the owner gets a summary and the failed list to correct. Interviewers listen for isolation per row, a record of failures and safe reruns.
What a strong answer covers
- Handles errors per row so the loop continues
- Writes failed rows to a list with the reason
- Marks the status of each row so a rerun skips rows already sent
- Stops early when the whole system is failing
- Sends a summary and alerts the owner
Answer it out loud in the mock interview about 2 min
Follow-ups to expect
- How do you tell a bad row from a problem with the whole system?
- The run stopped at row 900. How do you restart without sending reminders twice?
- Who corrects the failed rows, and how do they know?
Common mistakes
- Letting the first error stop the whole run
- Ignoring failed rows without a record
- No status per row, so a rerun sends duplicates
Learn it
- Design an automation that reads supplier invoices from email and enters them into accounting software.
- An API your workflow calls starts returning 429 errors. What do you do?
- Your team of three runs 40 workflows for different departments. How would you set up monitoring and alerts so that problems are seen without flooding the team?
- An automation prepares vendor payments, and a manager must approve any payment above ₹50,000. How would you design the approval step?
- You built a workflow that enriches each new CRM contact. Now the business wants it run on the 20,000 contacts that already exist. How do you do that safely?
- A colleague who built 15 workflows is leaving next week. They all run on connections made with their own Google account and API keys. What do you do?
- Five teams depend on one of your workflows. How would you set up the way changes to it are made, so that an edit does not break their work?
- Your support inbox automation sends an acknowledgement to every incoming email. Overnight it exchanged 3,000 emails with another company's auto-responder. How do you stop it and prevent it?
- How do you measure the accuracy of a document extraction step, and why is one overall percentage not enough?
- Three months after launch, the workflow runs well, but the team lead says it has not saved any time. How do you find out if that is true?
- Your workflow needs to read one Google Sheet and post to one Slack channel. What is the difference between connecting with OAuth and with an API key, and what access do you give it?
- Your bot logs in to a supplier's web portal every morning to download statements. It breaks every few weeks when the page changes, and now the portal asks for an OTP. What do you do?
- For one step in a workflow, how do you choose between a no-code rule, a script and an AI step?
- A workflow that should send the daily sales report at 9 am India time ran at 2:30 pm, and one day it did not run at all. What do you check?
- You are asked to automate purchase order approval. The written procedure says one thing, but the staff do it differently. What do you do?
- A lead-routing workflow has shown 'success' on every run for two weeks, but the sales team says no new leads arrived in that time. What happened, and how do you prevent it?
- Your new workflow writes to the live CRM and emails real customers. How do you test it before it goes live?
- What is schema validation, and why would you validate incoming JSON at the start of a workflow instead of handling errors later?
- A payment provider says its webhooks are delivered 'at least once'. What does that mean for the workflow that receives them?
- Your automation created every order twice last night. How do you find and fix it?
- Tell me about an automation you built and how much time it saved.
- How would you build AI triage for a support inbox?
- The AI in your invoice automation sometimes reads the total wrong. How do you stop wrong amounts reaching the accounts?
- A client's old billing software has no API. How would you automate data entry into it?
- An API returns JSON in a different shape from what the next app needs. How do you handle it?
- How do you measure the return on an automation project?
- How would you choose between n8n, Zapier, Make and Power Automate?
- When would you use RPA instead of an API integration?
- In a 1,500-person company, staff in different departments have built about 200 automations on their own, and your central team of 4 cannot build everything people ask for. What operating model and rules do you set?
- Your automation programme reports 60,000 hours saved in a year, which you valued at ₹2 crore. The CFO says the salary bill has not changed and asks what the company really gained. How do you answer?
- At renewal, the vendor of your automation platform raises the price from ₹18 lakh to ₹54 lakh a year. You run 180 workflows on it, and 20 of them are critical to finance. Do you pay, negotiate or migrate, and how do you decide?
- Walk me through building a simple automation in n8n or Zapier.
- What is a webhook, and how is it different from polling?
- How do you decide which process to automate first?
- How would you design a WhatsApp assistant for a small business, and when should it hand over to a person?
- Your automation fails halfway through. How do you design for that?