Shortcut fails with "get files of note", at least for this note

Testing version: 2.3.10 (13093)

What were you doing: running a shortcut

What feature did you use: get files of note

What happened: shortcut fails: “There was a problem running the shortcut”

What did you expect to happen: return files (if any) from note. This works except for a specific file that I don’t believe has any attachments.

The problem seems to be data dependent. I exported the note as a bear note but had to rename the extension from .bear to .textpack to be able to upload it.

Here is the problematic note:

Shortcut Analysis Dependencies.textpack (21.0 KB)

and here is the simple shortcut:

https://www.icloud.com/shortcuts/6f6e12737d374a13b2b332fe2801ca21

The note reported is supposed to don’t have any attachment, correct?
If this is the case, the shortcut runs fine for me and I suspect the issue might be on a database file level.

Yes, this note does not have any attachments, but the shortcut still fails for me.

If it is a database file issue, how do you suggest that I proceed?

Is there a safe way to rebuild the database or start from scratch without losing metadata like created and modified dates?

Would you like my database file for testing?

Thanks for the continued support.

If you are synching your notes (Bear Pro or Beta) try the following

  • Quit Bear
  • Delete/move this folder on your Mac ~/Library/Group Containers/9K33E33T4.net.shinyfrog.bear
    • In Finder, you can hit CMD+SHIFT+G, paste the path, and hit Enter.
  • Re-open Bear and let it sync all your notes.

I went ahead and re-built my database on my Mac but unfortunately the same shortcut continues to reliably fail with that same note :(.

For now I just don’t check for attachments.

I am having various other issues with shortcuts and bear which I list here for completeness. Hopefully there is some underlying issue on the part of shortcuts or bear that will be resolved in the future.

  1. The search for -#journal still doesn’t work for me, so I search without the -#journal qualifier and remove those results with a regex after the fact.
  2. I also have a shortcut that computes some [[date-based links]] then tries to update a bear note with the new information. It fails on my iPhone every morning when I first run it. So, I run it a second time and it has always worked so far.
  3. I have other shortcuts that call a 2nd shortcut in a loop that fail sometimes, but after a different number of iterations, with the same input data, so not after the same amount of processing. These shortcuts sometimes run as expected, but if they fail a second or third try will usually get me the results.
    It’s unsettling, but I am becoming accustomed to the behavior and have workarounds in all cases.

If I can be of any assistance in resolving these issue please let me know and I will happily help.

I had a similar problem and the issue is with any MOV/video files

I don’t believe that I have any MOV/video attachments anywhere in my database and this file is not supposed to have any attachments. But thanks for the comment because it got me thinking.

I took a closer look at the file that is causing the trouble and there may be an issue specific to this file. As I said it fails when I try to get files in shortcuts even though I don’t believe that there are any attachments to this note. But, I just did a search for @attachments in my database and this file showed up in the search results, which is strange. Maybe this file does have problems and they weren’t fixed by syncing to create a fresh database.

I can’t find any information about attachments in the info panel. Do you know how I might get some insight into the attachments (if any) of a note from within the app?

I can’t work with it from shortcuts because of the problem that I originally reported.

Thanks again for taking the time.

To re-phrase so I am understanding. When you search @attachments that note shows up but when navigating inside that note there are no attachments?

Apologies, I thought so, but I just unfolded all the headers (it’s a long note) and I may have found at least one, sorry!

I use a shortcut from u/gluebyte in r/shortcuts that allows me to view shortcuts in an html format that is useful for analysis. I used this to create html files while writing the note, then referenced them via links, but some links have an embed:true flag that may make them attachments. I clearly don’t understand.

This is the first screenshot.

The second is the real attachment (I think).

None of the files pointed to by these links exist now but I wouldn’t have expected that to break the shortcut action to get files from note.

(attachments)


As you can see in my comment from today, my file actually does have at least one attachment. I apologize for any confusion, I really thought that there were no attachments.

Please export the note as .bear and sent it here.

Here you go.

(Attachment Shortcut Analysis Dependencies.bear is missing)

I sent the .bear file to your shinyfrog.net email.

1 Like