# Failed to export node to file

**URL:** <https://discourse.slicer.org/t/failed-to-export-node-to-file/30325>\
**Category:** Development\
**Tags:** python\
**Created:** [June 30, 2023, 3:20pm UTC](https://discourse.slicer.org/t/failed-to-export-node-to-file/30325 "2023-06-30T15:20:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Li](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/patrick_li/32/66178_2.png) [@Patrick\_Li](https://discourse.slicer.org/u/Patrick_Li)\
**Post date:** [June 30, 2023, 3:20pm UTC](https://discourse.slicer.org/t/failed-to-export-node-to-file/30325/1 "2023-06-30T15:20:29Z")

</div>

I’m attempting to export multiple vtkMRMLTableNodes from an array to a directory

```auto
        for preset in self.presets:
            if preset and preset.IsA('vtkMRMLStorableNode') and preset.GetStorageNode():
                filename = presetsDir + '\\' + preset.GetName()
                if '.csv' not in filename:
                    filename += '.csv'
                slicer.util.exportNode(preset, filename)

```

But preset.GetStorageNode() continually returns None despite preset.IsA(‘vtkMRMLStorableNode’) being True. When I remove preset.GetStorageNode(), this shows up.

```auto
[Python] Failed to export node to file: C:\directory\...
[Python] Error: Unable to find a storable node with ID vtkMRMLTableNode1

```

However, the program successfully exports other table nodes that are in the subject hierarchy. I tried adding the tables I wanted to save to the hierarchy, but the issue persists.
