An error on a branch shuts down the execution of another branch

Hello everyone ! I was not able to find some details about this on the documentation so here is my issue :

Context : I have a workflow connected to a stripe event when a customer subscribe to our solution. When a customer suscribes for the first time, I have mainly two actions :

  • Find the contact on Hubspot and create or update the deal
  • Update the contact on SendInBlue/Brevo

However, on one of my past executions, I had a problem on the SendInblue part as there was no contact matching. It’s not a problem on its own but the issue is that this error stopped the Hubspot branch although those two are unrelated.

Here is the execution :
{
“meta”: {
“instanceId”: “b207c83941bb6c206b341bc41dc52f7e1426b18d4816a829433eef6e3d5df322”
},
“nodes”: [
{
“parameters”: {
“webhookUri”: “https://discord.com/api/webhooks/1090692367872442398/5HF0Sl76tim7rF3WSzLNytg09F35YGDBmvY1Iu8tyQ8d6EPG3TS56f64CIdMAaoxnPsW”,
“text”: “=:repeat_one: Nouveau {{ $json["data"]["object"]["lines"]["data"][0]["description"] }}. Client : {{ $json["data"]["object"]["customer_email"] }}\n\n:point_right: Facture : {{ $json["data"]["object"]["invoice_pdf"] }}”,
“options”: {}
},
“id”: “ac7e53af-93bd-4d8c-b8f8-563adb78893f”,
“name”: “Discord - Abonnement”,
“type”: “n8n-nodes-base.discord”,
“typeVersion”: 1,
“position”: [
1520,
-180
]
},
{
“parameters”: {
“authentication”: “appToken”,
“resource”: “contact”,
“operation”: “search”,
“filterGroupsUi”: {
“filterGroupsValues”: [
{
“filtersUi”: {
“filterValues”: [
{
“propertyName”: “email”,
“value”: “={{ $node["Stripe Trigger"].json["data"]["object"]["customer_email"] }}”
}
]
}
}
]
},
“additionalFields”: {}
},
“id”: “c2d45ea0-d70a-470f-b71a-6d8e8ed3ea22”,
“name”: “HubSpot”,
“type”: “n8n-nodes-base.hubspot”,
“typeVersion”: 1,
“position”: [
1760,
-180
],
“alwaysOutputData”: false,
“credentials”: {
“hubspotAppToken”: {
“id”: “13”,
“name”: “MVMS HubSpot account”
}
}
},
{
“parameters”: {
“authentication”: “appToken”,
“operation”: “search”,
“filterGroupsUi”: {
“filterGroupsValues”: [
{
“filtersUi”: {
“filterValues”: [
{
“propertyName”: “=associations.contact”,
“value”: “={{ $json["id"] }}”
},
{
“propertyName”: “nom_du_produit”,
“value”: “={{ $node["Stripe Trigger"].json["data"]["object"]["lines"]["data"]["0"]["price"]["product"] }}”
},
{
“propertyName”: “pipeline”,
“value”: “28789604”
}
]
}
}
]
},
“additionalFields”: {}
},
“id”: “96ef87b0-6380-4024-a68c-d289f2226a6d”,
“name”: “HubSpot4”,
“type”: “n8n-nodes-base.hubspot”,
“typeVersion”: 1,
“position”: [
2000,
-180
],
“alwaysOutputData”: true,
“credentials”: {
“hubspotAppToken”: {
“id”: “13”,
“name”: “MVMS HubSpot account”
}
}
},
{
“parameters”: {
“conditions”: {
“string”: [
{
“value1”: “={{ $json["id"] }}”,
“operation”: “isNotEmpty”
}
]
}
},
“id”: “0c557296-ed03-4b0a-b4fb-ad97ec45a926”,
“name”: “If exist1”,
“type”: “n8n-nodes-base.if”,
“typeVersion”: 1,
“position”: [
2200,
-180
]
},
{
“parameters”: {
“authentication”: “appToken”,
“operation”: “update”,
“dealId”: “={{ $json["id"] }}”,
“updateFields”: {
“description”: “=Facture : {{ $node["Stripe Trigger"].json["data"]["object"]["invoice_pdf"] }}\nMontant : {{ $node["Stripe Trigger"].json["data"]["object"]["amount_paid"] / 100 }}€\nPromo : {{ $node["Stripe Trigger"].json["data"]["object"]["discount"] / 100 }}€”,
“stage”: “=66066309”
}
},
“id”: “53305021-cfa4-474a-8fa0-3fdc98197d94”,
“name”: “HubSpot5”,
“type”: “n8n-nodes-base.hubspot”,
“typeVersion”: 1,
“position”: [
2440,
-360
],
“credentials”: {
“hubspotAppToken”: {
“id”: “13”,
“name”: “MVMS HubSpot account”
}
}
},
{
“parameters”: {
“authentication”: “appToken”,
“stage”: “=66066309”,
“additionalFields”: {
“customPropertiesUi”: {
“customPropertiesValues”: [
{
“property”: “nom_du_produit”,
“value”: “={{ $node["Stripe Trigger"].json["data"]["object"]["lines"]["data"]["0"]["price"]["product"] }}”
}
]
},
“dealName”: “={{ $node["Stripe Trigger"].json["data"]["object"]["customer_email"] }} - {{ $node["Stripe Trigger"].json["data"]["object"]["lines"]["data"][0]["description"] }}”,
“pipeline”: “28789604”
}
},
“id”: “70bbe186-f03c-442f-9d9e-4d5a52bccab2”,
“name”: “HubSpot7”,
“type”: “n8n-nodes-base.hubspot”,
“typeVersion”: 1,
“position”: [
2440,
-160
],
“credentials”: {
“hubspotAppToken”: {
“id”: “13”,
“name”: “MVMS HubSpot account”
}
}
},
{
“parameters”: {
“resource”: “contact”,
“operation”: “update”,
“identifier”: “={{ $node["Stripe Trigger"].json["data"]["object"]["customer_email"] }}”,
“updateAttributes”: {
“updateAttributesValues”: [
{
“fieldName”: “ABONNEMENT”,
“fieldValue”: “1”
}
]
}
},
“id”: “1ae9a73c-a8ac-4bc3-89ed-f945339b4ea6”,
“name”: “Ajout de l’abonnement Basique1”,
“type”: “n8n-nodes-base.sendInBlue”,
“typeVersion”: 1,
“position”: [
2120,
-760
],
“credentials”: {
“sendInBlueApi”: {
“id”: “23”,
“name”: “SendInBlue account”
}
}
},
{
“parameters”: {
“resource”: “contact”,
“operation”: “update”,
“identifier”: “={{ $node["Stripe Trigger"].json["data"]["object"]["customer_email"] }}”,
“updateAttributes”: {
“updateAttributesValues”: [
{
“fieldName”: “ABONNEMENT”,
“fieldValue”: “2”
}
]
}
},
“id”: “f227d521-bd02-41da-a400-293314e7ff42”,
“name”: “Ajout de l’abonnement Standard1”,
“type”: “n8n-nodes-base.sendInBlue”,
“typeVersion”: 1,
“position”: [
2120,
-580
],
“credentials”: {
“sendInBlueApi”: {
“id”: “23”,
“name”: “SendInBlue account”
}
}
},
{
“parameters”: {
“resource”: “contact”,
“operation”: “update”,
“identifier”: “={{ $node["Stripe Trigger"].json["data"]["object"]["customer_email"] }}”,
“updateAttributes”: {
“updateAttributesValues”: [
{
“fieldName”: “ABONNEMENT”,
“fieldValue”: “3”
}
]
}
},
“id”: “9b2836ba-3aee-4ed8-80b5-8b212e45a358”,
“name”: “Ajout de l’abonnement Privilège1”,
“type”: “n8n-nodes-base.sendInBlue”,
“typeVersion”: 1,
“position”: [
2120,
-400
],
“credentials”: {
“sendInBlueApi”: {
“id”: “23”,
“name”: “SendInBlue account”
}
}
},
{
“parameters”: {
“dataType”: “string”,
“value1”: “={{ $node["Stripe Trigger"].json["data"]["object"]["lines"]["data"]["0"]["price"]["product"] }}”,
“rules”: {
“rules”: [
{
“value2”: “prod_NbUgaRaO17fJ8J”
},
{
“value2”: “prod_NfAP1VQL4nhGP4”,
“output”: 1
},
{
“value2”: “prod_NXORmkLZGlzo3G”,
“output”: 1
},
{
“value2”: “prod_NbUgqE5WcIUlWK”,
“output”: 2
}
]
},
“fallbackOutput”: 3
},
“id”: “31fca3f8-3fcf-4804-ad73-433ac0d2e002”,
“name”: “Quel abonnement ?1”,
“type”: “n8n-nodes-base.switch”,
“typeVersion”: 1,
“position”: [
1800,
-400
]
},
{
“parameters”: {
“operation”: “sendTemplate”,
“templateId”: 542,
“receipients”: “={{ $node["Stripe Trigger"].json["data"]["object"]["customer_email"] }}”,
“additionalFields”: {}
},
“id”: “43fbd688-6922-4664-8733-3819c4d86719”,
“name”: “Envoi du mail d’abonnement”,
“type”: “n8n-nodes-base.sendInBlue”,
“typeVersion”: 1,
“position”: [
2440,
-580
],
“credentials”: {
“sendInBlueApi”: {
“id”: “23”,
“name”: “SendInBlue account”
}
}
}
],
“connections”: {
“Discord - Abonnement”: {
“main”: [
[
{
“node”: “HubSpot”,
“type”: “main”,
“index”: 0
},
{
“node”: “Quel abonnement ?1”,
“type”: “main”,
“index”: 0
}
]
]
},
“HubSpot”: {
“main”: [
[
{
“node”: “HubSpot4”,
“type”: “main”,
“index”: 0
}
]
]
},
“HubSpot4”: {
“main”: [
[
{
“node”: “If exist1”,
“type”: “main”,
“index”: 0
}
]
]
},
“If exist1”: {
“main”: [
[
{
“node”: “HubSpot5”,
“type”: “main”,
“index”: 0
}
],
[
{
“node”: “HubSpot7”,
“type”: “main”,
“index”: 0
}
]
]
},
“Ajout de l’abonnement Basique1”: {
“main”: [
[
{
“node”: “Envoi du mail d’abonnement”,
“type”: “main”,
“index”: 0
}
]
]
},
“Ajout de l’abonnement Standard1”: {
“main”: [
[
{
“node”: “Envoi du mail d’abonnement”,
“type”: “main”,
“index”: 0
}
]
]
},
“Ajout de l’abonnement Privilège1”: {
“main”: [
[
{
“node”: “Envoi du mail d’abonnement”,
“type”: “main”,
“index”: 0
}
]
]
},
“Quel abonnement ?1”: {
“main”: [
[
{
“node”: “Ajout de l’abonnement Basique1”,
“type”: “main”,
“index”: 0
}
],
[
{
“node”: “Ajout de l’abonnement Standard1”,
“type”: “main”,
“index”: 0
}
],
[
{
“node”: “Ajout de l’abonnement Privilège1”,
“type”: “main”,
“index”: 0
}
]
]
}
}
}

Should I make an only branch to deal with Hubspot then with SendInBlue ? Or is there a way to keep the executions of this two branches autonomous although they are simultaneous ?

Thanks and have a good day !

Hi @Romain_Mangattale, welcome to the community :tada:

This is expected. By default n8n would stop the execution when it encounters an error, so no further nodes would run regardless of their branch.

You can override this behaviour in the node options like so:

image

Once the Continue On Fail option is enabled, n8n would no longer stop when hitting an error and instead passes on the error to the next node as if it was regular data.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.