Error during template save with Spotfire 12

Prev Next

When saving a template from the LiveDesign Connector in Spotfire 12.0.X, an error related to a "Disposed" state can be raised and prevent from saving.

Details

If you create a template from scratch using the LiveDesign Connector in Spotfire version 12.0.X, then go in the Save as Template page and click on Save in order to save your template in the library, two "LiveDesign Connector Error" notifications are raised:

  • An error occurred during save current document as template
  • An error occured during <Template Name> save
    System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Runtime.Serialization.SerializationException: Attempt to read from a node that is in state 'Disposed': Spotfire.Dxp.Framework.DocumentModel.State.DisposedUndoablePropertyNodeState`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].
    Object reference chain leading to the fault (closest reference first):
        Spotfire.Dxp.Application.CustomNodeStandIn.Table
        Spotfire.Dxp.Application.CustomNodeStandIn.Tables[0]
        Spotfire.Dxp.Application.CustomNodes.Nodes[1]
        Spotfire.Dxp.Application.Document.CustomNodes
     ---> System.InvalidOperationException: Attempt to read from a node that is in state 'Disposed': Spotfire.Dxp.Framework.DocumentModel.State.DisposedUndoablePropertyNodeState`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]].
    

This is due to a Spotfire issue that prevent the regular default template (empty document) to be used as a base for saving a new document.

Resolution

This error can be fixed by replacing the regular empty document by one specifically created for the 12.0.X version of Spotfire. It needs to be done by a Spotfire administrator following the import library step of the installation guide but using this LDConnector_Spotfire_12.X.part0.zip file instead of the file provided in the package.