How to get more information on which items triggered an error?

I am trying to give access to a drive folders to a bunch of emails. This operation is gonna be repeated in different ways so I cannot activate the email notification to notify users.
The issue is : some of these emails are not linked to a Google account.
When this is the case and notification is turned off, it triggers an error.

I’m thinking of the following solution: using the “on error: Continue (using error output)” option, and then running the same node with the notification activated - as you can see in the middle branch.

However the only output I get on the error branch is the error message.

Is there a way to know which items triggered the error so I could grab associated emails to run the request again?
Any better option I could go with?

Any help greatly appreciated!

self hosted on hostinger, v 1.95.3

1 Like

In the second gmail node, which receives the error, the “Send Notification Email” option is added, but is not enabled.

This node is not configured.
My issue is I dont know how to get the data I need passed to this node.

This is what I get :

And what I need is to identifiy the emails that match the items that output errors in the previous node.

Perhaps you need to use the Loop node here. Iterate over each email, do your validations and processing, then move onto the next. This way you should know which email was flagged and then you can reference the node with the content using a named references like $('Get Email').first().json

1 Like

I’ve simplified and duplicated the workflow so it’s clearer.

Are you suggesting something like this ?

I feel like there is something to do with this idea but I’m still stuck :sweat_smile:

I can see which email was successfully processed if I go through the output by hand but still cant pass the data automatically.

Not sure how to use $('Get Email').first().json

Could you precise what you have in mind ?

Thanks for the support!

I actually miss read your initial issue, but I understand it now. You want to give valid google accounts access to a google drive folder. What do you want to do with the failed email accounts? I’ll update your workflow shortly. For now I’ll just list the failed email accounts when the loop is done

With the failed email accounts I want to share the same folder but this time with notification option turned on (this is the condition so Google can send them an invite).

Thanks mate!

Here is my solution:

I had 2 valid gmail accounts which worked and 2 fake accounts which failed

2 Likes

In that case the same thing, just add the Drive node with notification, however, why dont you just have a single drive node with the notificaiton option always enabled? This way everyone will get the notificaiton?

1 Like

That’s perfect thanks a lot mate!

I didn’t know we could call for some data that doesn’t show in the output!

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