Zendesk trigger nodes : cannot activate workflow

Hi,

I have difficulties with a workflow that use multiple Zendesk Trigger nodes.
Even tough it works when executing the workflow manually, I can’t activate the workflow.

I receive the following message :

“There was a problem and the workflow could not be activated:
Bad request - please check your parameters
Show Details
Pending ticket: 400 - undefined

“Pending ticket” is the name of one of the zendesk trigger nodes, that starts the flow when a zendesk ticked is pending. But sometimes the message change, after trying to activate the workflow several time : I had the same 400 error with the “New ticket” zendesk trigger node instead of the “Pending ticket” node.

Below is my workflow, could you help me with this please ?

Thanks in advance :pray:
Flow below

{
  "nodes": [
    {
      "parameters": {
        "authentication": "oAuth2",
        "operation": "append",
        "sheetId": "=1umv8iVJZuctfng7HLPaw6aqaRclrflbsuV1zqAQWnE0",
        "range": "ALL tickets!A:Z",
        "options": {
          "valueInputMode": "USER_ENTERED"
        }
      },
      "name": "Google Sheets2",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 1,
      "position": [
        2080,
        300
      ],
      "credentials": {
        "googleSheetsOAuth2Api": "Google Sheets OAuth2 Prod"
      }
    },
    {
      "parameters": {
        "value": "={{$json[\"date_today\"]}}",
        "dataPropertyName": "Date de création",
        "options": {
          "fromFormat": ""
        }
      },
      "name": "Date & Time",
      "type": "n8n-nodes-base.dateTime",
      "typeVersion": 1,
      "position": [
        1670,
        300
      ]
    },
    {
      "parameters": {
        "functionCode": "var date = new Date().toISOString();\nvar day = new Date().getDay();\nconst weekday = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\n\nitems[0].json.date_today = date;\nitems[0].json.day_today = weekday[day];\n\nreturn items;"
      },
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "position": [
        1460,
        300
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "Equipe",
              "value": "={{$json[\"ticket.organization.name\"]}}"
            },
            {
              "name": "Email",
              "value": "={{$json[\"ticket.requester.email\"]}}"
            },
            {
              "name": "Demandeur",
              "value": "={{$json[\"ticket.requester.name\"]}}"
            },
            {
              "name": "Statut du ticket",
              "value": "={{$json[\"ticket.status\"]}}"
            },
            {
              "name": "ID du ticket",
              "value": "={{$json[\"ticket.id\"]}}"
            },
            {
              "name": "Navigateur",
              "value": "={{$json[\"ticket.ticket_field_360001484580\"]}}"
            },
            {
              "name": "Environnement",
              "value": "={{$json[\"ticket.ticket_field_360010224019\"]}}"
            },
            {
              "name": "Bloc fonctionnel",
              "value": "={{$json[\"ticket.ticket_field_360004423199\"]}}"
            },
            {
              "name": "Expertise",
              "value": "={{$json[\"ticket.ticket_field_360003786359\"]}}"
            },
            {
              "name": "Description",
              "value": "={{$json[\"ticket.title\"]}}"
            },
            {
              "name": "Date de mise à jour",
              "value": "={{$json[\"Date de création\"]}}"
            }
          ]
        },
        "options": {
          "dotNotation": true
        }
      },
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        1880,
        300
      ]
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "options": {
          "fields": [
            "ticket.title",
            "ticket.id",
            "ticket.description",
            "ticket.url",
            "ticket.external_id",
            "ticket.via",
            "ticket.status",
            "ticket.priority",
            "ticket.ticket_type",
            "ticket.group.name",
            "ticket.requester.name",
            "ticket.requester.first_name",
            "ticket.requester.email",
            "ticket.organization.name",
            "ticket.ticket_field_360004423199",
            "ticket.ticket_field_360001484580",
            "ticket.ticket_field_360010224019",
            "ticket.ticket_field_360003428459",
            "ticket.ticket_field_360003786359"
          ]
        },
        "conditions": {
          "all": [
            {
              "value": "new"
            }
          ],
          "any": []
        }
      },
      "name": "New ticket",
      "type": "n8n-nodes-base.zendeskTrigger",
      "typeVersion": 1,
      "position": [
        450,
        -10
      ],
      "webhookId": "82ca3cf1-6e78-4f44-be75-95251538c20c",
      "credentials": {
        "zendeskOAuth2Api": "Zendesk OAuth2 API"
      }
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "options": {
          "fields": [
            "ticket.title",
            "ticket.description",
            "ticket.url",
            "ticket.id",
            "ticket.external_id",
            "ticket.via",
            "ticket.status",
            "ticket.priority",
            "ticket.ticket_type",
            "ticket.group.name",
            "ticket.brand.name",
            "ticket.due_date",
            "ticket.account",
            "ticket.assignee.email",
            "ticket.assignee.name",
            "ticket.assignee.first_name",
            "ticket.assignee.last_name",
            "ticket.requester.name",
            "ticket.requester.first_name",
            "ticket.requester.last_name",
            "ticket.requester.email",
            "ticket.requester.language",
            "ticket.requester.phone",
            "ticket.requester.external_id",
            "ticket.requester.requester_field",
            "ticket.requester.details",
            "ticket.organization.name",
            "ticket.organization.external_id",
            "ticket.organization.details",
            "ticket.organization.notes",
            "ticket.ccs",
            "ticket.cc_names",
            "ticket.tags",
            "ticket.current_holiday_name",
            "current_user.name",
            "current_user.first_name",
            "current_user.email",
            "ticket.ticket_field_360001874520",
            "ticket.ticket_field_360001487180",
            "ticket.ticket_field_360003432480",
            "ticket.ticket_field_360001558159",
            "ticket.ticket_field_360005111200",
            "ticket.ticket_field_360003786359",
            "ticket.ticket_field_360003428459",
            "ticket.ticket_field_360010224019",
            "ticket.ticket_field_360004423199",
            "ticket.ticket_field_360001484580",
            "ticket.ticket_field_360001487200"
          ]
        },
        "conditions": {
          "all": [
            {}
          ]
        }
      },
      "name": "Open ticket",
      "type": "n8n-nodes-base.zendeskTrigger",
      "typeVersion": 1,
      "position": [
        450,
        150
      ],
      "webhookId": "03b1c4c1-d533-40aa-a9c6-dff31b9a25e8",
      "credentials": {
        "zendeskOAuth2Api": "Zendesk OAuth2 API"
      }
    },
    {
      "parameters": {
        "mode": "mergeByIndex",
        "join": "outer"
      },
      "name": "Merge",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 1,
      "position": [
        740,
        120
      ]
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "options": {
          "fields": [
            "ticket.url",
            "ticket.id",
            "ticket.description",
            "ticket.external_id",
            "ticket.via",
            "ticket.status",
            "ticket.priority",
            "ticket.ticket_type",
            "ticket.group.name",
            "ticket.brand.name",
            "ticket.title",
            "ticket.assignee.name",
            "ticket.assignee.first_name",
            "ticket.due_date",
            "ticket.account",
            "ticket.assignee.email",
            "ticket.requester.email",
            "ticket.requester.language",
            "ticket.requester.external_id",
            "ticket.organization.external_id",
            "ticket.organization.details",
            "ticket.tags",
            "current_user.name",
            "ticket.requester.last_name",
            "ticket.requester.first_name",
            "ticket.requester.name",
            "ticket.requester.requester_field",
            "ticket.organization.name",
            "ticket.organization.notes",
            "ticket.ticket_field_360001487180",
            "ticket.ticket_field_360001874520",
            "ticket.ticket_field_360003432480",
            "ticket.ticket_field_360001558159",
            "ticket.ticket_field_360005111200",
            "ticket.ticket_field_360003786359",
            "ticket.ticket_field_360003428459",
            "ticket.ticket_field_360010224019",
            "ticket.ticket_field_360004423199",
            "ticket.ticket_field_360001484580",
            "ticket.ticket_field_360001487200"
          ]
        },
        "conditions": {
          "all": [
            {
              "value": "pending"
            }
          ]
        }
      },
      "name": "Pending ticket",
      "type": "n8n-nodes-base.zendeskTrigger",
      "typeVersion": 1,
      "position": [
        450,
        310
      ],
      "webhookId": "de7b96c5-2496-4918-9159-74d4c6a328e0",
      "credentials": {
        "zendeskOAuth2Api": "Zendesk OAuth2 API"
      }
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "options": {
          "fields": [
            "ticket.title",
            "ticket.description",
            "ticket.url",
            "ticket.id",
            "ticket.external_id",
            "ticket.via",
            "ticket.status",
            "ticket.priority",
            "ticket.ticket_type",
            "ticket.group.name",
            "ticket.brand.name",
            "ticket.due_date",
            "ticket.account",
            "ticket.assignee.email",
            "ticket.requester.name",
            "ticket.requester.first_name",
            "ticket.requester.last_name",
            "ticket.requester.email",
            "ticket.requester.language",
            "ticket.requester.phone",
            "ticket.requester.external_id",
            "ticket.requester.requester_field",
            "ticket.requester.details",
            "ticket.organization.name",
            "ticket.organization.external_id",
            "ticket.organization.details",
            "ticket.organization.notes",
            "ticket.tags",
            "ticket.current_holiday_name",
            "current_user.name",
            "current_user.first_name",
            "current_user.email",
            "current_user.organization.name",
            "satisfaction.current_rating",
            "satisfaction.current_comment",
            "ticket.ticket_field_360001874520",
            "ticket.ticket_field_360001487180",
            "ticket.ticket_field_360003432480",
            "ticket.ticket_field_360001558159",
            "ticket.ticket_field_360005111200",
            "ticket.ticket_field_360003786359",
            "ticket.ticket_field_360010224019",
            "ticket.ticket_field_360003428459",
            "ticket.ticket_field_360004423199",
            "ticket.ticket_field_360001484580",
            "ticket.ticket_field_360001487200"
          ]
        },
        "conditions": {
          "all": [
            {
              "value": "solved"
            }
          ]
        }
      },
      "name": "Solved ticket",
      "type": "n8n-nodes-base.zendeskTrigger",
      "typeVersion": 1,
      "position": [
        450,
        470
      ],
      "webhookId": "dc80a8fd-0e1d-40c1-b40b-ee6c293382ce",
      "credentials": {
        "zendeskOAuth2Api": "Zendesk OAuth2 API"
      }
    },
    {
      "parameters": {
        "mode": "mergeByIndex",
        "join": "outer"
      },
      "name": "Merge1",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 1,
      "position": [
        740,
        310
      ]
    },
    {
      "parameters": {
        "mode": "mergeByIndex",
        "join": "outer"
      },
      "name": "Merge2",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 1,
      "position": [
        1010,
        220
      ]
    },
    {
      "parameters": {
        "mode": "mergeByIndex",
        "join": "outer"
      },
      "name": "Merge3",
      "type": "n8n-nodes-base.merge",
      "typeVersion": 1,
      "position": [
        1260,
        300
      ]
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "options": {
          "fields": [
            "ticket.title",
            "ticket.description",
            "ticket.url",
            "ticket.id",
            "ticket.external_id",
            "ticket.via",
            "ticket.status",
            "ticket.priority",
            "ticket.brand.name",
            "ticket.group.name",
            "ticket.ticket_type",
            "ticket.due_date",
            "ticket.account",
            "ticket.assignee.email",
            "ticket.assignee.name",
            "ticket.requester.name",
            "ticket.requester.first_name",
            "ticket.requester.last_name",
            "ticket.requester.email",
            "ticket.requester.language",
            "ticket.requester.phone",
            "ticket.requester.external_id",
            "ticket.requester.requester_field",
            "ticket.requester.details",
            "ticket.organization.name",
            "ticket.organization.external_id",
            "ticket.organization.details",
            "ticket.organization.notes",
            "ticket.tags",
            "satisfaction.current_rating",
            "satisfaction.current_comment",
            "ticket.ticket_field_360001874520",
            "ticket.ticket_field_360001487180",
            "ticket.ticket_field_360003432480",
            "ticket.ticket_field_360001558159",
            "ticket.ticket_field_360005111200",
            "ticket.ticket_field_360003786359",
            "ticket.ticket_field_360003428459",
            "ticket.ticket_field_360004423199",
            "ticket.ticket_field_360010224019",
            "ticket.ticket_field_360001487200",
            "ticket.ticket_field_360001484580"
          ]
        },
        "conditions": {
          "all": [
            {
              "value": "closed"
            }
          ]
        }
      },
      "name": "Zendesk Trigger",
      "type": "n8n-nodes-base.zendeskTrigger",
      "typeVersion": 1,
      "position": [
        450,
        630
      ],
      "webhookId": "3ba6ad19-ef61-425d-b4f5-a6474b34dacb",
      "credentials": {
        "zendeskOAuth2Api": "Zendesk OAuth2 API"
      }
    }
  ],
  "connections": {
    "Date & Time": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Function": {
      "main": [
        [
          {
            "node": "Date & Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set": {
      "main": [
        [
          {
            "node": "Google Sheets2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "New ticket": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Open ticket": {
      "main": [
        [
          {
            "node": "Merge",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pending ticket": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Solved ticket": {
      "main": [
        [
          {
            "node": "Merge1",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge1": {
      "main": [
        [
          {
            "node": "Merge2",
            "type": "main",
            "index": 1
          }
        ]
      ]
    },
    "Merge2": {
      "main": [
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Merge3": {
      "main": [
        [
          {
            "node": "Function",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Zendesk Trigger": {
      "main": [
        [
          {
            "node": "Merge3",
            "type": "main",
            "index": 1
          }
        ]
      ]
    }
  }
}

Hi @bkaplan, I hope you are having a good day thus far?

First of all let me say sorry for the inconvenience this causes. I quickly copied your workflow and did not run into any problems when activating the workflow on my own Zendesk instance. Would you be able to share the full error you are seeing (if there are any more details)?

Also, we have released a bunch of changes recently affecting the Zendesk node. Would you be able to confirm whether the problem still persists when using the recent 0.144.0 release of n8n?

If the above doesn’t help, it might be worth reaching out to Zendesk’s support team as a 400 response suggests the server (in this case the Zendesk API) didn’t like the request we were sending to them. So they should be able to provide additional details on what exactly was wrong here.

Don’t know if it helps but 141 and 142 are both working with trigger nodes.

Hi @MutedJam, I am good thanks, how are you ?

I actually shared the full error message (no more details available) and despite the recent release the problem remains : I cannot activate the workflow (even though executing it manually does work).

I just realized that the successive merges might be part of the reason : when working with only one trigger node, i can activate the workflow without problem.

So I should have a workaround solution (create 5 simples flows instead of a complex one) but now i have a new problem : even though my workflow is activated and I have no error message of any kind, the flow does not work.
To be more precise : When I do the exact action that trigger the workflow successfully in manual mode, the is no execution when the flow is active. No execution, no error message, i look at my history and nothing appears.

Did I forget something in the activation process ?

here is the simplified flow :

{
  "nodes": [
    {
      "parameters": {
        "authentication": "oAuth2",
        "operation": "append",
        "sheetId": "=1umv8iVJZuctfng7HLPaw6aqaRclrflbsuV1zqAQWnE0",
        "range": "ALL tickets!A:Z",
        "options": {
          "valueInputMode": "USER_ENTERED"
        }
      },
      "name": "Google Sheets2",
      "type": "n8n-nodes-base.googleSheets",
      "typeVersion": 1,
      "position": [
        1240,
        70
      ],
      "credentials": {
        "googleSheetsOAuth2Api": "Google Sheets OAuth2 Prod"
      }
    },
    {
      "parameters": {
        "value": "={{$json[\"date_today\"]}}",
        "dataPropertyName": "Date de création",
        "options": {
          "fromFormat": ""
        }
      },
      "name": "Date & Time",
      "type": "n8n-nodes-base.dateTime",
      "typeVersion": 1,
      "position": [
        830,
        70
      ]
    },
    {
      "parameters": {
        "functionCode": "var date = new Date().toISOString();\nvar day = new Date().getDay();\nconst weekday = [\"Sunday\", \"Monday\", \"Tuesday\", \"Wednesday\", \"Thursday\", \"Friday\", \"Saturday\"];\n\nitems[0].json.date_today = date;\nitems[0].json.day_today = weekday[day];\n\nreturn items;"
      },
      "name": "Function",
      "type": "n8n-nodes-base.function",
      "position": [
        620,
        70
      ],
      "typeVersion": 1
    },
    {
      "parameters": {
        "keepOnlySet": true,
        "values": {
          "string": [
            {
              "name": "Equipe",
              "value": "={{$json[\"ticket.organization.name\"]}}"
            },
            {
              "name": "Email",
              "value": "={{$json[\"ticket.requester.email\"]}}"
            },
            {
              "name": "Demandeur",
              "value": "={{$json[\"ticket.requester.name\"]}}"
            },
            {
              "name": "Statut du ticket",
              "value": "={{$json[\"ticket.status\"]}}"
            },
            {
              "name": "ID du ticket",
              "value": "={{$json[\"ticket.id\"]}}"
            },
            {
              "name": "Navigateur",
              "value": "={{$json[\"ticket.ticket_field_360001484580\"]}}"
            },
            {
              "name": "Environnement",
              "value": "={{$json[\"ticket.ticket_field_360010224019\"]}}"
            },
            {
              "name": "Bloc fonctionnel",
              "value": "={{$json[\"ticket.ticket_field_360004423199\"]}}"
            },
            {
              "name": "Expertise",
              "value": "={{$json[\"ticket.ticket_field_360003786359\"]}}"
            },
            {
              "name": "Description",
              "value": "={{$json[\"ticket.title\"]}}"
            },
            {
              "name": "Date de mise à jour",
              "value": "={{$json[\"Date de création\"]}}"
            }
          ]
        },
        "options": {
          "dotNotation": true
        }
      },
      "name": "Set",
      "type": "n8n-nodes-base.set",
      "typeVersion": 1,
      "position": [
        1040,
        70
      ]
    },
    {
      "parameters": {
        "authentication": "oAuth2",
        "options": {
          "fields": [
            "ticket.title",
            "ticket.description",
            "ticket.url",
            "ticket.id",
            "ticket.external_id",
            "ticket.via",
            "ticket.status",
            "ticket.priority",
            "ticket.ticket_type",
            "ticket.group.name",
            "ticket.brand.name",
            "ticket.due_date",
            "ticket.account",
            "ticket.assignee.email",
            "ticket.assignee.name",
            "ticket.assignee.first_name",
            "ticket.assignee.last_name",
            "ticket.requester.name",
            "ticket.requester.first_name",
            "ticket.requester.last_name",
            "ticket.requester.email",
            "ticket.requester.language",
            "ticket.requester.phone",
            "ticket.requester.external_id",
            "ticket.requester.requester_field",
            "ticket.requester.details",
            "ticket.organization.name",
            "ticket.organization.external_id",
            "ticket.organization.details",
            "ticket.organization.notes",
            "ticket.ccs",
            "ticket.cc_names",
            "ticket.tags",
            "ticket.current_holiday_name",
            "current_user.name",
            "current_user.first_name",
            "current_user.email",
            "ticket.ticket_field_360001874520",
            "ticket.ticket_field_360001487180",
            "ticket.ticket_field_360003432480",
            "ticket.ticket_field_360001558159",
            "ticket.ticket_field_360005111200",
            "ticket.ticket_field_360003786359",
            "ticket.ticket_field_360003428459",
            "ticket.ticket_field_360010224019",
            "ticket.ticket_field_360004423199",
            "ticket.ticket_field_360001484580",
            "ticket.ticket_field_360001487200"
          ]
        },
        "conditions": {
          "all": [
            {}
          ]
        }
      },
      "name": "Open ticket",
      "type": "n8n-nodes-base.zendeskTrigger",
      "typeVersion": 1,
      "position": [
        410,
        70
      ],
      "webhookId": "03b1c4c1-d533-40aa-a9c6-dff31b9a25e8",
      "credentials": {
        "zendeskOAuth2Api": "Zendesk OAuth2 API"
      }
    }
  ],
  "connections": {
    "Date & Time": {
      "main": [
        [
          {
            "node": "Set",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Function": {
      "main": [
        [
          {
            "node": "Date & Time",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Set": {
      "main": [
        [
          {
            "node": "Google Sheets2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Open ticket": {
      "main": [
        [
          {
            "node": "Function",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Hi @jon , what do you mean ?

I meant that I tested with 2 different versions of n8n and Zendesk Trigger nodes seemed to activate and work without issue.

I did update to 144 to use the new Zendesk node features and the triggers still appear to be working. Out of interest have you tried using the Token option instead of OAuth? There was a change that broke some of the oauth processes so it could just be that you are seeing that.

Have you tried adding N8N_USE_DEPRECATED_REQUEST_LIB=true to your environment options to see if that helps?

By any chance, does your callback URL says localhost?