Automation looping issue with licenses - solution needed

**I’m using Excel and everything is setup but..
**
I’m trying to deliver Licenses to Emails using BTCPay as a webhook and trigger for the automation but when I click " Run Once " It starts running as expected but just does not stop sending other Licenses I only need It to send 1 License Per Purchase.

Everything is working and It’s marking the Licenses It sends over to the Email as " used " but as I mention before that It doesn’t stop any fix for that problem? because I tried with AI too but it’s just no use.

It Just seems impossible.

**Steps taken:
**
*Aggegators, and every fix an AI could think of.
*
I used 2 AI’s, Gemini and Claude. For 3 hours straight trying to fix the issue.

Hi @PenguinBy,

Looks like the issue may not be Excel itself but the workflow execution logic.

If the license keeps sending repeatedly, it is usually related to how the row is being selected/updated after the webhook fires or how the scenario re-processes items after marking them as used.

A few quick questions:

• does BTCpay trigger one webhook per purchase?
• are you selecting only the first unused license or looping through the sheet results?
• after updating to “used”, is the scenario searching the sheet again?

Happy to take a quick look if you’re still stuck.

Website Portfolio: Click here to view my past automation setups.
Email: folafoluwaolaneye@gmail.com
Book a Call: Click here to schedule a walkthrough call session.

Hi @PenguinBy - this is probably the scenario processing multiple unused license rows, not Excel itself.

I would check whether the BTCPay payment id is being used as an idempotency key, whether the Excel search returns more than one unused row, and whether the email module is inside a loop over all returned rows instead of a single selected row.

If you are still stuck, this can be debugged without production secrets. Screenshots of the modules/filters, a fake BTCPay payload, and the Excel column layout should be enough to identify the exact change or produce a short fix map and test checklist so one purchase sends one license only.