Need help "passing through" original input files, accounting for skipped loops due to Error Shields

I have successfully created a flow that does the following:

  1. Analyzes Drive files (a mix of video and image ads from different brands) and describes them
  2. Rewrites each file description into a creative brief for a NEW brand (URL input)

Workbook link: https://www.gumloop.com/pipeline?workbook_id=h8CpadhkLUXURNf1tKCkeF

I need to somehow carry the input file all the way through this flow to return it as an output along with the final rewritten brief output in the final step. The issue is, there are many loops of the Drive file analysis step that encounter errors and are skipped with my error shield, so there is a risk of list mismatch with any Drive file I attempt to pass through.

I would appreciate any input on how to solve this! I’m sure it’s something simple.

Hey @Peter_Czepiga! If you’re reporting an issue with a flow or an error in a run, please include the run link and make sure it’s shareable so we can take a look.

  1. Find your run link on the history page. Format: https://www.gumloop.com/pipeline?run_id={{your_run_id}}&workbook_id={{workbook_id}}

  2. Make it shareable by clicking “Share” → ‘Anyone with the link can view’ in the top-left corner of the flow screen.
    GIF guide

  3. Provide details about the issue—more context helps us troubleshoot faster.

You can find your run history here: https://www.gumloop.com/history

Hey @Peter_Czepiga, the issue you’re facing can be solved using a subflow. Since you’re working with multiple URLs and want to avoid list mismatch issues, subflows make this much easier.

You can keep the Drive Folder Reader in your main flow and pass its output into a subflow that contains your creative brief writer nodes. The subflow will process each URL one at a time, so you don’t need to handle lists or worry about errors breaking the sequence. This also makes the flow much easier to manage.

I set up a working flow you can try and clone into your workspace: https://www.gumloop.com/pipeline?workbook_id=tbwDqz8ZHEj6Mu2J3Y6rwT

Also, because your input files can be either videos or images, I used a Join Paths node after the Analyze Video and Analyze Image nodes inside the subflow. That makes sure whichever node successfully processes the file, its result continues to the next step.

Let me know if that helps or if you have any questions.

I really appreciate the help @Rithen_Gumloop. I tested your flow, and I seem to always get a blank output now. The “Ask AI” node that reformats the Google Drive file into a download link is still working, but then the “Analyze Image” and “Analyze Video” nodes no longer recognize the file as an input. They simply return a blank output.

Sharing an example run here: https://www.gumloop.com/pipeline?run_id=SQnL3hqKJoiDfuLWeBJYcF&workbook_id=szCmiA8pZEMT35rTbzNn9W&tab=1

Any clue what changed?

Hey @Peter_Czepiga, I think I figured out what was going wrong.

It looks like your flow was set up to return Drive links, but since I moved everything into a subflow, the files were being returned directly instead. That mismatch is probably what caused the error when you ran it.

I just updated the flow to fix that: https://www.gumloop.com/pipeline?workbook_id=w9rxny3vzqPvZqBWCMRtDf

Also removed the Ask AI node that was formatting the links. Now the files go straight into the Analyze Image and Analyze Video nodes, which should work more reliably.

Give it a spin and let me know if it works better now.

This worked perfectly, thank you @Rithen_Gumloop! I can now pass through the Drive file to the end of the flow. However, I have one small issue. The Drive file output that is passing through is not a readable Google Drive link. It is in this format (example): 1RaU2XBi_nSJc2b6YO1VF80aFaAzjupic/Statics + Headlines_Luka_Get a better breed of Style 2.png

It seems to be combining the folder ID with the file name. Do you know if it’s possible to return the actual openable Drive file link?

Hey @Peter_Czepiga, if you want Drive links as the output from the node, here’s how to do it:

  1. Click on the Google Drive Folder Reader node.

  2. Click “Show more options.”

  3. Turn ON “Return Drive Links Only.”

That’ll make sure you get actual shareable Drive URLs like https://drive.google.com/file/d/.../view.

Let me know if that makes sense!

Absolutely, I actually tried that, however, it breaks the Analyze Image/Video nodes for some reason…

Hey @Peter_Czepiga, here you go: https://www.gumloop.com/pipeline?workbook_id=w9rxny3vzqPvZqBWCMRtDf

The reason your Analyze Image/Video nodes were breaking is that once you switched to passing file links, those nodes needed to be updated to accept URLs instead of the raw file objects they were originally getting.

This above workflow has those changes in place, so the links from the Drive Folder Reader will work all the way through. Give it a try and let me know if you need any more help.

This worked perfectly! Thank you Rithen!

1 Like

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