# Errors when saving vtkMRMLTextNode to scene

**URL:** https://discourse.slicer.org/t/errors-when-saving-vtkmrmltextnode-to-scene/13907
**Category:** Support
**Created:** [October 6, 2020, 8:27pm UTC](https://discourse.slicer.org/t/errors-when-saving-vtkmrmltextnode-to-scene/13907 "2020-10-06T20:27:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)
#### Post date: [October 6, 2020, 8:27pm UTC](https://discourse.slicer.org/t/errors-when-saving-vtkmrmltextnode-to-scene/13907/1 "2020-10-06T20:27:49Z")

</div>

I was following the suggestion from [here](https://discourse.slicer.org/t/whats-the-best-approach-to-saving-additional-data-associated-with-a-module/9018/3) to use a vtkMRMLTextNode when the amount of text to store is a bit large or complex for a ParameterNode. However, I now get errors when trying to save the scene. Specifically, I get red “X” icons next to any text node I try to save, and the following error in the log:

```
No writer found to write file QVariant(QString, "C:/Users/mikeb/Documents/Neuro/TEMP/Testing/Slicer/RSO_TextNode.txt") of type "MyFileType"

```

No .txt files are saved and when I load the scene the text nodes are empty.  
Also, in the Save dialog, the text nodes always show “Not Modified” in the status regardless of whether they have been modified or not (and since they’ve never actually been successfully saved, they should probably all show as “Modified” until a successful save).

I have tried fiddling a bit with the SetForceCreateStorageNode() function and tried CreateDefaultStorageNode(), but neither seemed to affect the saving bug.

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [October 6, 2020, 8:51pm UTC](https://discourse.slicer.org/t/errors-when-saving-vtkmrmltextnode-to-scene/13907/2 "2020-10-06T20:51:07Z")

</div>

This false alarm is caused by a testing script. I’ll submit a fix soon.

---

<div class="post-metadata">

### Author: ![mikebind](https://avatars.discourse-cdn.com/v4/letter/m/71e660/32.png) [@mikebind](https://discourse.slicer.org/u/mikebind)
#### Post date: [October 6, 2020, 9:10pm UTC](https://discourse.slicer.org/t/errors-when-saving-vtkmrmltextnode-to-scene/13907/3 "2020-10-06T21:10:23Z")

</div>

Thanks! Is there a workaround until then?

---

<div class="post-metadata">

### Author: ![lassoan](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/lassoan/32/13_2.png) [@lassoan](https://discourse.slicer.org/u/lassoan)
#### Post date: [October 7, 2020, 3:44am UTC](https://discourse.slicer.org/t/errors-when-saving-vtkmrmltextnode-to-scene/13907/4 "2020-10-07T03:44:33Z")

</div>

Fixed - [https://github.com/Slicer/Slicer/commit/23171356da12fb67ed3232822a524d2f6abf9f37](https://github.com/Slicer/Slicer/commit/23171356da12fb67ed3232822a524d2f6abf9f37). As a workaround, you can delete `SlicerScriptedFileReaderWriterTest.py`.
