# Markups saved with Scalar Visibility ON produce warning when loading

**URL:** <https://discourse.slicer.org/t/markups-saved-with-scalar-visibility-on-produce-warning-when-loading/28435>\
**Category:** Development\
**Tags:** markups\
**Created:** [March 17, 2023, 8:33pm UTC](https://discourse.slicer.org/t/markups-saved-with-scalar-visibility-on-produce-warning-when-loading/28435 "2023-03-17T20:33:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![keri](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/keri/32/11618_2.png) [@keri](https://discourse.slicer.org/u/keri)\
**Post date:** [March 17, 2023, 8:33pm UTC](https://discourse.slicer.org/t/markups-saved-with-scalar-visibility-on-produce-warning-when-loading/28435/1 "2023-03-17T20:33:56Z")

</div>

Hi,

Let’s suppose in Markups module we have set Active Scalars (PedigreeId for example) and Scalar Visibility to ON.  
Then we save the scene.  
Finally we load the scene and we can see the following warning:

```auto
[VTK] Warning: In /work/Preview/Slicer-0/Modules/Loadable/Markups/MRML/vtkMRMLMarkupsDisplayNode.cxx, line 926
[VTK] vtkMRMLMarkupsDisplayNode (0x66db9d0): UpdateAssignedAttribute() failed: assign markupsNode before calling this method.

```

Somewhere at loading step we are trying to call `vtkMRMLMarkupsDisplayNode::SetScalarVisibility` before Markups Node is set.

As a result Markups is not colored after the loading.

Slicer 5.3.0-2023-03-16 r31679 / 106cff2
