# N8n executions on loop causing error

**URL:** <https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058>\
**Category:** Questions\
**Created:** [November 17, 2020, 9:02pm UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058 "2020-11-17T21:02:14Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcnaveen](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mcnaveen/32/53924_2.png) [@mcnaveen](https://community.n8n.io/u/mcnaveen)\
**Post date:** [November 17, 2020, 9:02pm UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/1 "2020-11-17T21:02:14Z")

</div>

All of a sudden single execution is running multiple times.

Making Multiple Entries in MySQL Database, Multiple push in Gotify.

**n8n version: 0.93.0**

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/6/6797d28557a93948cb6ba53f5ae3ca22daee284d.png)

Gotify:

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/2/2efd19c34d9a7982cfdd3bb45a7962d61623a3de.png)

My Workflow:

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [November 17, 2020, 11:28pm UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/2 "2020-11-17T23:28:05Z")

</div>

Did you check in WooCommerce if there are for some reason multiple Webhook-Triggers? Because that is the only thing I can think of right now.

---

<div class="post-metadata">

**Author:** ![mcnaveen](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mcnaveen/32/53924_2.png) [@mcnaveen](https://community.n8n.io/u/mcnaveen)\
**Post date:** [November 18, 2020, 5:41am UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/3 "2020-11-18T05:41:31Z")

</div>

Possibly a bug in WooCommerce.

I have created an issue, Let’s see how it goes.

> <https://github.com/woocommerce/woocommerce/issues/28329>
>
> \*\*Prerequisites (mark completed items with an \[x\]):\*\*
> \- \[x\] I have have carried… out troubleshooting steps and I believe I have found a bug.
> \- \[x\] I have searched for similar bugs in both open and closed issues and cannot find a duplicate.
> 
> \*\*Describe the bug\*\*
> order.created webhook fired multiple times
> \*\*Expected behavior\*\*
> Fire only once when the order is created.
> \*\*Actual behavior\*\*
> All of sudden, Webhook fires multiple times like 10 - 15 times when the single order has been made.
> \*\*Steps to reproduce the bug (We need to be able to reproduce the bug in order to fix it.)\*\*
> Steps to reproduce the bug:
> 1. Setup webhook
> 2. Set order created webhook and place an order.
> 3. Monitor your automation provider logs
> 4. See error
> 
> \*\*Screenshots\*\*
> 
> This is the screenshot of my automation provider.
> !\[image\](https://user-images.githubusercontent.com/8493007/99487292-f7d42300-298b-11eb-8509-8da2351fb0d9.png)
> 
> 
> 
> 
> \*\*Isolating the problem (mark completed items with an \[x\]):\*\*
> \- \[x\] I have deactivated other plugins and confirmed this bug occurs when only WooCommerce plugin is active.
> \- \[\] This bug happens with a default WordPress theme active, or \[Storefront\](https://woocommerce.com/storefront/).
> \- \[x\] I can reproduce this bug consistently using the steps above.
> 
> \*\*WordPress Environment\*\*
> We use the \[WooCommerce System Status Report\](https://docs.woocommerce.com/document/understanding-the-woocommerce-system-status-report/) to help us evaluate the issue. 
> Without this report we won't be able to fully evaluate this issue.
> \<details\>
> \`\`\`
> \`
> \### WordPress Environment ###
> 
> WordPress address (URL): 
> Site address (URL): 
> WC Version: 4.7.0
> REST API Version: ✔ 4.7.0
> WC Blocks Version: ✔ 3.6.0
> Action Scheduler Version: ✔ 3.1.6
> WC Admin Version: ✔ 1.6.3
> Log Directory Writable: ✔
> WP Version: 5.5.3
> WP Multisite: –
> WP Memory Limit: 256 MB
> WP Debug Mode: –
> WP Cron: ✔
> Language: en\_US
> External object cache: –
> 
> \### Server Environment ###
> 
> Server Info: Apache/2.4.25 (Debian)
> PHP Version: 7.4.12
> PHP Post Max Size: 100 MB
> PHP Time Limit: 600
> PHP Max Input Vars: 2500
> cURL Version: 7.52.1
> OpenSSL/1.0.2u
> 
> SUHOSIN Installed: –
> MySQL Version: 5.7.31-log
> Max Upload Size: 100 MB
> Default Timezone is UTC: ✔
> fsockopen/cURL: ✔
> SoapClient: ✔
> DOMDocument: ✔
> GZip: ✔
> Multibyte String: ✔
> Remote Post: ✔
> Remote Get: ✔
> 
> \### Database ###
> 
> WC Database Version: 4.7.0
> WC Database Prefix: wp\_
> Total Database Size: 6.09MB
> Database Data Size: 4.57MB
> Database Index Size: 1.52MB
> wp\_woocommerce\_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
> wp\_woocommerce\_api\_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_woocommerce\_attribute\_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
> wp\_woocommerce\_downloadable\_product\_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
> wp\_woocommerce\_order\_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
> wp\_woocommerce\_order\_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_woocommerce\_tax\_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
> wp\_woocommerce\_tax\_rate\_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_woocommerce\_shipping\_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
> wp\_woocommerce\_shipping\_zone\_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_woocommerce\_shipping\_zone\_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
> wp\_woocommerce\_payment\_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
> wp\_woocommerce\_payment\_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_woocommerce\_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
> wp\_actionscheduler\_actions: Data: 0.05MB + Index: 0.11MB + Engine InnoDB
> wp\_actionscheduler\_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
> wp\_actionscheduler\_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
> wp\_actionscheduler\_logs: Data: 0.05MB + Index: 0.03MB + Engine InnoDB
> wp\_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
> wp\_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
> wp\_ms\_snippets: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
> wp\_options: Data: 2.03MB + Index: 0.09MB + Engine InnoDB
> wp\_postmeta: Data: 1.52MB + Index: 0.11MB + Engine InnoDB
> wp\_posts: Data: 0.09MB + Index: 0.06MB + Engine InnoDB
> wp\_snippets: Data: 0.05MB + Index: 0.00MB + Engine InnoDB
> wp\_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_term\_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
> wp\_term\_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
> wp\_wc\_admin\_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
> wp\_wc\_admin\_note\_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
> wp\_wc\_category\_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
> wp\_wc\_customer\_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_wc\_download\_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_wc\_order\_coupon\_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_wc\_order\_product\_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB
> wp\_wc\_order\_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB
> wp\_wc\_order\_tax\_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB
> wp\_wc\_product\_meta\_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB
> wp\_wc\_reserved\_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB
> wp\_wc\_tax\_rate\_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
> wp\_wc\_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB
> 
> \### Post Type Counts ###
> 
> attachment: 4
> customize\_changeset: 1
> elementor\_library: 3
> gp\_elements: 2
> page: 7
> post: 1
> product: 2
> revision: 87
> shop\_coupon: 4
> shop\_order: 7
> 
> \### Security ###
> 
> Secure connection (HTTPS): ✔
> Hide errors from visitors: ✔
> 
> \### Active Plugins (11) ###
> 
> Personalizery: by MC Naveen – 1.0
> Code Snippets: by Code Snippets Pro – 2.14.0
> Elementor Pro: by Elementor.com – 2.9.5
> Elementor: by Elementor.com – 2.9.9
> Facebook for WooCommerce: by Facebook – 2.1.4 – Installed version not tested with active version of WooCommerce 4.7.0
> GP Premium: by Tom Usborne – 1.11.2
> Google Ads & Marketing by Kliken: by Kliken – 1.0.6 – Installed version not tested with active version of WooCommerce 4.7.0
> Instamojo for WooCommerce: by instamojo – 1.0.7 – Installed version not tested with active version of WooCommerce 4.7.0
> Checkout Manager for WooCommerce: by QuadLayers – 5.3.1 – Installed version not tested with active version of WooCommerce 4.7.0
> WOOCS - WooCommerce Currency Switcher: by realmag777 – 1.3.3.2 – Installed version not tested with active version of WooCommerce 4.7.0
> WooCommerce: by Automattic – 4.7.0
> 
> \### Inactive Plugins (0) ###
> 
> 
> \### Settings ###
> 
> API Enabled: –
> Force SSL: –
> Currency: INR (₹)
> Currency Position: left
> Thousand Separator: ,
> Decimal Separator: .
> Number of Decimals: 2
> Taxonomies: Product Types: external (external)
> grouped (grouped)
> simple (simple)
> variable (variable)
> 
> Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)
> exclude-from-search (exclude-from-search)
> featured (featured)
> outofstock (outofstock)
> rated-1 (rated-1)
> rated-2 (rated-2)
> rated-3 (rated-3)
> rated-4 (rated-4)
> rated-5 (rated-5)
> 
> Connected to WooCommerce.com: –
> 
> \### WC Pages ###
> 
> Shop base: #7 - /store/
> Cart: #8 - /cart/
> Checkout: #9 - /checkout/
> My account: #10 - /my-account/
> Terms and conditions: ❌ Page not set
> 
> \### Theme ###
> 
> Name: GeneratePress
> Version: 3.0.2
> Author URL: https://tomusborne.com
> Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme
> WooCommerce Support: ✔
> 
> \### Templates ###
> 
> Overrides: –
> 
> \### Action Scheduler ###
> 
> Complete: 76
> Oldest: 2020-11-09 16:39:38 +0000
> Newest: 2020-11-17 20:54:08 +0000
> 
> \`
> \`\`\`
> \</details\>

Will update this post too.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [November 18, 2020, 7:23am UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/4 "2020-11-18T07:23:43Z")

</div>

Great thanks. But did you check if multiple webhook URLs are set in WooCommerce?  
Because if there is only one webhook URL registered but it gets called multiple times it would be a WooCommerce bug. If there are multiple webhook URLs registered it would be an n8n bug.

---

<div class="post-metadata">

**Author:** ![mcnaveen](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mcnaveen/32/53924_2.png) [@mcnaveen](https://community.n8n.io/u/mcnaveen)\
**Post date:** [November 18, 2020, 7:32am UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/5 "2020-11-18T07:32:40Z")

</div>

@jan I’m confused man.

I’m using WooCommerce Trigger Node which uses Consumer Key, Consumer Secret, and URL.

- But I never created a webhook inside WooCommerce Store.

- So n8n will create a webhook inside WooCommerce with the credentials provided?

- Why I’m asking this because. I noticed the word ‘n8n’ inside the webhook tab of WooCommerce. (I removed everything, Yes. Multiple webhook)

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [November 18, 2020, 7:50am UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/6 "2020-11-18T07:50:33Z")

</div>

Yes exactly. That is how almost all the third-party Trigger-Nodes work. n8n takes automatically care of creating and deleting webhooks in the application if a workflow gets activated or deactivated.

Ah ok, so there were multiple ones. If you now deleted all of them and deactivate and reactivate your workflow it should create a new one. But only one. And then it should again just trigger just once.

---

<div class="post-metadata">

**Author:** ![mcnaveen](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mcnaveen/32/53924_2.png) [@mcnaveen](https://community.n8n.io/u/mcnaveen)\
**Post date:** [November 18, 2020, 7:55am UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/7 "2020-11-18T07:55:35Z")

</div>

What is the possible cause of multiple webhook being created and not getting deleted?

> And what are the minimum server requirements you prefer for n8n?  
> Asking this because, This will affect and create any problem like this?

---

<div class="post-metadata">

**Author:** ![mcnaveen](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mcnaveen/32/53924_2.png) [@mcnaveen](https://community.n8n.io/u/mcnaveen)\
**Post date:** [November 18, 2020, 8:02am UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/8 "2020-11-18T08:02:22Z")

</div>

Update:

n8n is actually creating multiple webhook (duplicate)

 ![image](https://europe1.discourse-cdn.com/n8n/original/2X/7/7b5e56dd07f8ab8d4aee4e0b3f1f6d5aca5f6d74.png)

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [November 18, 2020, 8:08am UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/9 "2020-11-18T08:08:03Z")

</div>

Honestly not 100% sure. That should theoretically not happen.

Server specs should not matter here.

There is actually just one duplicate, not two. Only the last two ones have the same webhook-URL. So I guess the first one is for another workflow. n8n creates a webhook for each Trigger-Node you create in n8n.

We have to investigate why this is happening.

---

<div class="post-metadata">

**Author:** ![mcnaveen](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mcnaveen/32/53924_2.png) [@mcnaveen](https://community.n8n.io/u/mcnaveen)\
**Post date:** [November 18, 2020, 8:14am UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/10 "2020-11-18T08:14:05Z")

</div>

@jan Issue Solved

Here is my mistake.

- I set the Workflow to active state which created a new webhook
- Then I executed the workflow which created one more webhook

This is the main cause of the issue. It’s not related to WooCommerce nor n8n.

Thanks for your time. Everything works great.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [November 18, 2020, 8:51am UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/11 "2020-11-18T08:51:50Z")

</div>

Thanks a lot for this additional information! Is really helpful.

But would still be an n8n bug as it should no matter what accumulate multiple webhooks. I already created an internal ticket and we will look into it.

---

<div class="post-metadata">

**Author:** ![RicardoE105](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ricardoe105/32/550_2.png) [@RicardoE105](https://community.n8n.io/u/RicardoE105)\
**Post date:** [November 19, 2020, 12:53am UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/12 "2020-11-19T00:53:38Z")

</div>

@mcnaveen do you have a Woocommerce sandbox that I can use for testing? Fixed the issue but have not been able to test it.

---

<div class="post-metadata">

**Author:** ![mcnaveen](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mcnaveen/32/53924_2.png) [@mcnaveen](https://community.n8n.io/u/mcnaveen)\
**Post date:** [November 19, 2020, 5:29pm UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/13 "2020-11-19T17:29:49Z")

</div>

Sorry for the delay bro. Will send you in Private Message.

Update: Sent bro. @RicardoE105 Please check inbox

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [November 20, 2020, 4:19pm UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/14 "2020-11-20T16:19:32Z")

</div>

We just released n8n@0.94.1 which should fix the bug.

---

<div class="post-metadata">

**Author:** ![mcnaveen](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mcnaveen/32/53924_2.png) [@mcnaveen](https://community.n8n.io/u/mcnaveen)\
**Post date:** [November 21, 2020, 8:37am UTC](https://community.n8n.io/t/n8n-executions-on-loop-causing-error/3058/15 "2020-11-21T08:37:40Z")

</div>

OMG, It was a surprise. Have this Watermelon 🍉
