# org-roam-db-sync: Symbol’s function definition is void: file

**URL:** <https://org-roam.discourse.group/t/org-roam-db-sync-symbol-s-function-definition-is-void-file/2464>\
**Category:** Troubleshooting\
**Created:** [February 19, 2022, 5:00pm UTC](https://org-roam.discourse.group/t/org-roam-db-sync-symbol-s-function-definition-is-void-file/2464 "2022-02-19T17:00:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![divansantana](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/divansantana/32/1104_2.png) [@divansantana](https://org-roam.discourse.group/u/divansantana)\
**Post date:** [February 19, 2022, 5:00pm UTC](https://org-roam.discourse.group/t/org-roam-db-sync-symbol-s-function-definition-is-void-file/2464/1 "2022-02-19T17:00:59Z")

</div>

Hi All,

I am running Org mode version 9.5.2 (9.5.2-gfbff08 @ /home/ds/.emacs.d/elpa/org-9.5.2/)

with 2.2.1 of org-roam.

Mostly everything was working ok (since an earlier v2 upgrade), but I  
wasn’t using the =org-roam-buffer-toggle= function.

When I tried to use =org-roam-buffer-toggle= function I got this error:

#+begin\_example  
org-roam-buffer-render-contents: Wrong type argument: characterp, (“CATEGORY” . “20210506152625-openbsd”)

org-roam-buffer-render-contents: Wrong type argument: characterp, (“CATEGORY” . “20211119164404-my\_openbsd\_laptop”)  
#+end\_example

I then upgrade to org-roam 2.2.0 since I’m not sure if 2.1.0 is compatible with org 9.5.2 (is there a document somewhere which says which roam versions should be mixed with which org versions?).

Since doing that, when I try initiate org-roam, by using this:

(require 'org-roam)  
(setq org-roam-directory “~/src/ds-org/”)  
(setq org-roam-completion-everywhere t)  
(setq org-roam-db-location “~/.cache/emacs/org-roam.db”)  
(org-roam-db-autosync-mode)

org-roam-db-sync: Symbol’s function definition is void: file

How can I troubleshoot this further?

---

<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:** [February 20, 2022, 7:43am UTC](https://org-roam.discourse.group/t/org-roam-db-sync-symbol-s-function-definition-is-void-file/2464/2 "2022-02-20T07:43:28Z")

</div>

Thought you were using Spacemacs?  
I’d suggest to try vanilla with no config other than org-roam and org.

> [@divansantana](#):
>
> Wrong type argument: characterp

This looks like a very low-level issue, which suggests to me that either your Emacs or Org is not properly installed, or something very basic is not working.

> [@divansantana](#):
>
> I then upgrade to org-roam 2.2.0

I believe this is copy and paste from your Slack issue (?) I do not how you upgrade from v2.2.1 to v2.2.0? I’m not saying it should be “downgrade” but how did you install v2.2.0 after you had v2.2.1? It’s not easy to do with built-in package.el, so it might give us more clue.

Edit: Looks like the latest version of Org-roam is v2.2.0 so I suppose you are on it not v2.2.1? This does not change my suggestion: try vanilla (no Spacemacs, no user configuration; just Org and Org-roam)

---

<div class="post-metadata">

**Author:** ![divansantana](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/divansantana/32/1104_2.png) [@divansantana](https://org-roam.discourse.group/u/divansantana)\
**Post date:** [February 20, 2022, 3:39pm UTC](https://org-roam.discourse.group/t/org-roam-db-sync-symbol-s-function-definition-is-void-file/2464/3 "2022-02-20T15:39:40Z")

</div>

Hello. No I was and am on plain emacs with own config.

Yes, I posted here first, but it wasn’t approved so posted something on slack.

But it’s solved. I basically switched from version in melpa-stable to version in melpa and all came right.

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:** [February 20, 2022, 5:57pm UTC](https://org-roam.discourse.group/t/org-roam-db-sync-symbol-s-function-definition-is-void-file/2464/4 "2022-02-20T17:57:54Z")

</div>

> [@divansantana](#):
>
> I posted here first, but it wasn’t approved

I didn’t know this forum had an approval; it didn’t when I joined…
