Describe the problem/error/question
Gmail Trigger Node issue: I’m encountering an issue with my workflow using the Gmail Trigger node in n8n version 2.20.7 and it was same for 2.20.6. My workflow is set to poll for unread emails every minute now have set to 5 min to not overburden with execution count, but it is counting executions even when no unread emails are found which is also logging it as an error in execution tab. This behavior is different from version 2.16, where such cases were not counted as executions. How can I configure my workflow so that it does not count executions when no emails are found? For now I am catching the specific kind of error and setting is to nothing, my only worry is it’s increasing my execution count and in this way I will surpass the monthly limit. I noticed this issue as I updated yesterday from 2.16.# to 2.20.6 as latest stable and today to 2.20.7 as latest stable.
What is the error message (if any)?
No specific error, it just shows: Problem in node ‘Gmail Trigger’ and in other information it shows the search query details as cause
[
{
“trigger”: {
“error”: {
“name”: “IsolateError”,
“cause”: {
“q”: “=from:@domain.com -from:group@domain.com newer_than:1d”,
“readStatus”: “unread”
}
},
“mode”: “trigger”
},
“workflow”: {
“id”: “#####”,
“name”: “Gmail Workflow Name”
}
}
]
Please share your workflow
Please note I have replaced the Id’s and names and email address with dummy data or #### so I don’t accidentally release confidential details.
(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)
{
"nodes": [
{
"parameters": {
"pollTimes": {
"item": [
{
"mode": "everyX",
"value": 5,
"unit": "minutes"
}
]
},
"maxResults": 1,
"filters": {
"q": "==from:@domain.com -from:group@domain.com newer_than:1d",
"readStatus": "unread"
}
},
"type": "n8n-nodes-base.gmailTrigger",
"typeVersion": 1.4,
"position": [
656,
1104
],
"id": "#####,
"name": "Group Gmail Trigger",
"alwaysOutputData": false,
"notesInFlow": false,
"credentials": {
"gmailOAuth2": {
"id": "####",
"name": "Gmail Group Support Gmail2"
}
}
}
],
"connections": {
"Group Gmail Trigger": {
"main": [
[]
]
}
},
"pinData": {},
"meta": {
"templateCredsSetupCompleted": true,
"instanceId": "#####"
}
}
Share the output returned by the last node
Error details
Other info
n8n version
2.20.7 (Cloud)
Error cause
{ “q”: “=from:@domain.com -from:group@domain.com newer_than:1d”
Information on your n8n setup
- n8n version: 2.20.7
- Database (default: SQLite):
- n8n EXECUTIONS_PROCESS setting (default: own, main):
- Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
- Operating system:
I look forward to any insights or if this is an error which is required fix by those who maintain the Gmail Trigger Node or to n8n version?
Thank you,
Nidhi Patel


