I’m building a scenario to organize my receipts. The goal is:
Search for a folder for the current month/year.
If the folder doesn’t exist (Search results = 0), create it.
Always upload the file to either the found folder OR the newly created one.
Add a row to Google Sheets.
My Setup:
Module 17 (Search): Looks for the folder.
Router:
Path 1 (Bottom): Has a filter Total number of bundles Equal to 0. It goes to Module 18 (Create Folder).
Path 2 (Top): Is a Fallback (or empty filter) route. It goes to Module 6 (Upload File), then Google Sheets.
The Problem: In Module 6 (Upload File), I want to use {{ifempty(17.id; 18.id)}} for the Folder ID. However, I cannot select Module 18’s ID in the mapping list because it’s behind a filter, and I often get the error: “Referenced module is not accessible”.
If I use a router, the “Fallback” path only runs if the first path fails. But if the folder is created (Path 1), the scenario stops there and never reaches the “Upload File” module (Path 2). If I don’t use Fallback, I’m struggling to pass the ID correctly from both modules.
How can I ensure the file is always uploaded to the correct folder ID without creating duplicates or breaking the mapping?
HI!
I think that What you’re seeing is expected behavior in Make.
Modules behind different router paths (especially filtered ones) can’t reliably expose their outputs to another path, so the “module not accessible” error is basically a scoping issue, not a mapping mistake.
At a high level, the fix is:
Don’t try to reference both IDs (Search vs Create) directly in the upload module.
Instead, make sure the scenario resolves one final folder ID in a single execution line, then continue with upload + Sheets from there.
There are a couple of clean patterns to do this (merge-after-branch vs. get-or-create style), but they depend a bit on how you want to handle concurrency and duplicates.
If the previous/related discussions are not similar to your question, please reply providing additional details to demonstrate the difference(s) between your question and the ones above.
If you require help understanding or implementing workarounds/solutions in the related discussions, please reply with more details of what you have tried, including screenshots.
— @samliew P.S.: investing some effort into the tutorials in the Make Academy will save you lots of time and frustration using Make!