Switch Node with Google Doc File Problem

Hello everyone! I set up workflow file transfer in supabase. Google Drive trigger receives file data, transfers it to switch, it determines what kind of file it is (google sheet, google doc, pdf) and then transfers it to the vector database.
I successfully transfer google shield and pdf file, but doc does not see. Switch settings are shown in the image. How to set up the is equal to field correctly so that switch transfers the document ID further through the nodes?

Hi @Boba228ai,

what is the full Mime Type you’re using for doc, it’s not clear from the screenshot,

can you please try this one:

application/vnd.openxmlformats-officedocument.wordprocessingml.document
2 Likes

Oh yeah pal, it works and Switch sees that it’s a doc file. But after that I have another problem: doc node can’t get file by id, even though id is correct. Before your answer I had this mimeType for GoogleDoc - application/vnd.google-apps.document. What should I do to fix this problem? Check images please <3


Hi @Boba228ai, Glad the first issue is solved!

Now from the new screenshots, the Bad Request error..
Are you sure you’re the owner of the document?
Also, is the Google Docs account credential working?
Can you test it with a normal file to confirm that it works?

Thanks for your attention @mohamed3nan ! I solved this problem, for application/vnd.google-apps.document i downloaded word document which I made in windows, not google doc. That’s why there was an error. Now everything works fine for me and node passed to supabase successful. Thanks again for help with this issue!

1 Like

Glad to hear everything is working now! :tada:

If you don’t mind @Boba228ai , could you please mark my reply as the solution? It’ll help those who run into the same issue, Thanks!

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