Google Drive Trigger node common issues#
Here are some common errors and issues with the Google Drive Trigger node and steps to resolve or troubleshoot them.
401 unauthorized error#
The full text of the error looks like this:
1 |
|
This error occurs when there's an issue with the credential you're using and its scopes or permissions.
To resolve:
- For OAuth2 credentials, make sure you've enabled the Google Drive API in APIs & Services > Library. Refer to Google OAuth2 Single Service - Enable APIs for more information.
- For Service Account credentials:
- Enable domain-wide delegation.
- Make sure you add the Google Drive API as part of the domain-wide delegation configuration.
Handling more than one file change#
The Google Drive Trigger node polls Google Drive for changes at a set interval (once every minute by default).
If multiple changes to the Watch For criteria occur during the polling interval, a single Google Drive Trigger event occurs containing the changes as items. To handle this, your workflow must account for times when the data might contain more than one item.
You can use an if node or a switch node to change your workflow's behavior depending on whether the data from the Google Drive Trigger node contains a single item or multiple items.