# ROAM\_TAGS causing file to disappear from the database?

**URL:** <https://org-roam.discourse.group/t/roam-tags-causing-file-to-disappear-from-the-database/851>\
**Category:** Troubleshooting\
**Created:** [October 10, 2020, 8:51pm UTC](https://org-roam.discourse.group/t/roam-tags-causing-file-to-disappear-from-the-database/851 "2020-10-10T20:51:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ewag](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@ewag](https://org-roam.discourse.group/u/ewag)\
**Post date:** [October 10, 2020, 8:51pm UTC](https://org-roam.discourse.group/t/roam-tags-causing-file-to-disappear-from-the-database/851/1 "2020-10-10T20:51:10Z")

</div>

Hi everyone,  
I have what is probably a silly problem with an easy solution, but I really can’t figure it out.  
I’ve been keeping reference notes and permanent notes in the same directory, and initially differentiating between the two by adding “paper\_” or “book\_” preceding a reference note.  
I’ve since started trying to use ROAM\_TAGS (because obviously that makes way more sense…) but after adding a` #+ROAM_TAGS: bib` after the `#+title:` line, I can no longer find the file using `org-roam-find-file`. The file is no longer matched, and if I type in the full title into the minibuffer, it just creates a new note with that title.  
When I delete the ROAM\_TAGS line, the note becomes accessible once again with `org-roam-find-file`. Does anyone have any clue as to what is going on here? Roam tags seem super useful and I’d love to get this sorted out.  
Thank you!

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [October 10, 2020, 11:28pm UTC](https://org-roam.discourse.group/t/roam-tags-causing-file-to-disappear-from-the-database/851/2 "2020-10-10T23:28:18Z")

</div>

Did you try searching with prefix “bib” or “(bib)” — without the double quotation marks?

---

<div class="post-metadata">

**Author:** ![ewag](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@ewag](https://org-roam.discourse.group/u/ewag)\
**Post date:** [October 10, 2020, 11:55pm UTC](https://org-roam.discourse.group/t/roam-tags-causing-file-to-disappear-from-the-database/851/3 "2020-10-10T23:55:00Z")

</div>

Well, the problem isn’t that the tag doesn’t work, it’s that I can no longer open that file using `M-x org-roam-find-file` after adding a tag to it.

---

<div class="post-metadata">

**Author:** ![ewag](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@ewag](https://org-roam.discourse.group/u/ewag)\
**Post date:** [October 11, 2020, 12:32am UTC](https://org-roam.discourse.group/t/roam-tags-causing-file-to-disappear-from-the-database/851/4 "2020-10-11T00:32:30Z")

</div>

@nobiot Ok, I tried what you suggested and I now understand. Thank you! I think I just didn’t fully understand the behaviour of the roam\_tags, and expected to be able to access the file by name the same way as I had before. The files are now visible, but only after I precede the file name with “(bib)”

---

<div class="post-metadata">

**Author:** ![nobiot](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/nobiot/32/159_2.png) [@nobiot](https://org-roam.discourse.group/u/nobiot)\
**Post date:** [October 11, 2020, 8:39am UTC](https://org-roam.discourse.group/t/roam-tags-causing-file-to-disappear-from-the-database/851/5 "2020-10-11T08:39:13Z")

</div>

@ewag, for what is worth, I’m attaching a GIF to show how `org-roam-find-file` behaves on my PC. As you can see, I don’t have to “precede the file name with” a “(tag)” – in this example, I added a “test” as a tag to the first note you see.

 ![2020-10-10T103400_test-tag-and-file-find](https://global.discourse-cdn.com/free1/uploads/orgroam/original/1X/c024eac2ad2425424ad49cb27b53df0734f82437.gif)

I suspect the difference of behaviour between mine and yours may be related to the “completion engine”. I use Ivy.
