# Wrong type argument error on org-roam-find-file

**URL:** <https://org-roam.discourse.group/t/wrong-type-argument-error-on-org-roam-find-file/681>\
**Category:** Troubleshooting\
**Created:** [August 28, 2020, 7:29am UTC](https://org-roam.discourse.group/t/wrong-type-argument-error-on-org-roam-find-file/681 "2020-08-28T07:29:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![paddypatpat](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/paddypatpat/32/322_2.png) [@paddypatpat](https://org-roam.discourse.group/u/paddypatpat)\
**Post date:** [August 28, 2020, 7:29am UTC](https://org-roam.discourse.group/t/wrong-type-argument-error-on-org-roam-find-file/681/1 "2020-08-28T07:29:43Z")

</div>

I’ve just updated emacs to 27.1, updated spacemacs develop, and updated packages (including org-roam).

After doing this, when I run org-roam-find-file to create a new file, everything works okay until I go to Finish the capture buffer. Then it exits with the error:

```
Wrong type argument: char-or-string-p, nil

```

Also, this process is dropping my many split windows and leaves me with just two windows, one on top of the other.

Here is the results from a debug-on-error.

```
Debugger entered--Lisp error: (wrong-type-argument char-or-string-p nil)
  ucs-normalize-NFD-string(nil)
  #f(compiled-function (--cl-nonspacing-mark-p-- s) #<bytecode 0x1ff3d7514995>)(#f(compiled-function (char) #<bytecode 0x1ff3d751497d>) nil)
  org-roam--title-to-slug(nil)
  org-roam--update-file-name-on-title-change(nil "Thoughts are transient")
  run-hook-with-args(org-roam--update-file-name-on-title-change nil "Thoughts are transient")
  org-roam--handle-title-change()
  run-hooks(after-save-hook)
  basic-save-buffer(nil)
  save-buffer()
  #f(compiled-function (&optional stay-with-capture) "Finalize the capture process.\nWith prefix argument STAY-WITH-CAPTURE, jump to the location of the\ncaptured item after finalizing." (interactive "P") #<bytecode 0x1ff3d76d51f5>)(nil)
  apply(#f(compiled-function (&optional stay-with-capture) "Finalize the capture process.\nWith prefix argument STAY-WITH-CAPTURE, jump to the location of the\ncaptured item after finalizing." (interactive "P") #<bytecode 0x1ff3d76d51f5>) nil)
  org-capture-finalize(nil)
  funcall-interactively(org-capture-finalize nil)
  call-interactively(org-capture-finalize nil nil)
  command-execute(org-capture-finalize)

```

Would someone be able to help me with this error please? Have I screwed something up?

---

<div class="post-metadata">

**Author:** ![jethro](https://avatars.discourse-cdn.com/v4/letter/j/b5a626/32.png) [@jethro](https://org-roam.discourse.group/u/jethro)\
**Post date:** [September 1, 2020, 4:28am UTC](https://org-roam.discourse.group/t/wrong-type-argument-error-on-org-roam-find-file/681/2 "2020-09-01T04:28:26Z")

</div>

This is fixed in master

---

<div class="post-metadata">

**Author:** ![paddypatpat](https://yyz2.discourse-cdn.com/free1/user_avatar/org-roam.discourse.group/paddypatpat/32/322_2.png) [@paddypatpat](https://org-roam.discourse.group/u/paddypatpat)\
**Post date:** [September 1, 2020, 4:31am UTC](https://org-roam.discourse.group/t/wrong-type-argument-error-on-org-roam-find-file/681/3 "2020-09-01T04:31:05Z")

</div>

Thank you!!
