# Unable to save labelmap node to file using slicer.util.saveNode()

**URL:** <https://discourse.slicer.org/t/unable-to-save-labelmap-node-to-file-using-slicer-util-savenode/2450>\
**Category:** Support\
**Created:** [March 28, 2018, 9:45am UTC](https://discourse.slicer.org/t/unable-to-save-labelmap-node-to-file-using-slicer-util-savenode/2450 "2018-03-28T09:45:28Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![drusmanbashir](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/drusmanbashir/32/1282_2.png) [@drusmanbashir](https://discourse.slicer.org/u/drusmanbashir)\
**Post date:** [March 28, 2018, 9:45am UTC](https://discourse.slicer.org/t/unable-to-save-labelmap-node-to-file-using-slicer-util-savenode/2450/1 "2018-03-28T09:45:28Z")

</div>

Hi,  
I have a node called labelmapVolumeNode:

(MRMLCorePython.vtkMRMLLabelMapVolumeNode)000000001C9821C8

But when i try to save it i get ‘False’ return:

file\_path = os.path.join(os.getcwd(), “temporary.nrrd”)  
slicer.util.saveNode(labelmapVolumeNode, file\_path)  
False

The code works if the node in question is a volume node.

Any tips?  
Thanks  
Usman.

---

<div class="post-metadata">

**Author:** ![drusmanbashir](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/drusmanbashir/32/1282_2.png) [@drusmanbashir](https://discourse.slicer.org/u/drusmanbashir)\
**Post date:** [March 28, 2018, 9:58am UTC](https://discourse.slicer.org/t/unable-to-save-labelmap-node-to-file-using-slicer-util-savenode/2450/2 "2018-03-28T09:58:35Z")

</div>

I realised the labelMapvolumenode was empty. Code works now
