Zapier · Gmail (trigger)
Gmail failed: command SEARCH illegal in state AUTH
Short answer
This Gmail trigger error means the Mailbox selected in the trigger options is invalid. Advanced values can't be used for Mailbox, so choose an existing mailbox from the dropdown.
VerifiedLast verified
01Error text
Gmail failed: command SEARCH illegal in state AUTH, only allowed in states SELECTED02Likely causes
- An invalid Mailbox is selected in the trigger options. Advanced (custom) values can't be used for Mailbox.
03How to fix it
- Choose an existing Mailbox from the dropdown.
- If the mailbox doesn't exist yet, create it in Gmail first, then select it.
04Fix it with AI
Copy this prompt into Claude Code, ChatGPT or any AI assistant. It already holds the error, the likely causes and the fix steps, so the assistant starts from what is known instead of guessing.
I'm getting this error in Zapier (Gmail (trigger)):
Gmail failed: command SEARCH illegal in state AUTH, only allowed in states SELECTED
What it usually means: This Gmail trigger error means the Mailbox selected in the trigger options is invalid. Advanced values can't be used for Mailbox, so choose an existing mailbox from the dropdown.
Likely causes:
- An invalid Mailbox is selected in the trigger options. Advanced (custom) values can't be used for Mailbox.
Fix steps that usually work:
1. Choose an existing Mailbox from the dropdown.
2. If the mailbox doesn't exist yet, create it in Gmail first, then select it.
Help me fix it. If you can read my project files, find where this error comes from. If not, ask me for what you need (the failing step, its input, the connection or config). Check the likely causes one by one, tell me which one it is and why, then give me the exact change to make. Do not change anything in production. Reference: https://ipaaserrors.com/zapier/gmail-command-search-illegal-in-state-authNothing is sent anywhere from this page. Read what the assistant suggests before you apply it.
05Official documentation
→Related errors
Test every fix in a non-production environment before you apply it to production. See how entries are verified.
More for Zapier work:Open Zapier jobsZapier pay estimates