Jump to content

Exception occured When trying to open document from library using .Net API in spotfire 10.3.3 client


Recommended Posts

Posted

Hello,

when trying to open a document from a tool using C# API in spotfire 10.3.3, I'm receiving following exception :

Error opening document from library: System.InvalidOperationException: There are 1 event handlers that triggers on property 'Items' on node of type 'Spotfire.Dxp.Data.DataTableCollection' which has not been torn down:

External event handler on a node of type 'Spotfire.Dxp.Application.PlotHeuristics.RecommendationManager' with method name 'TickGeneration'.at Spotfire.Dxp.Framework.DocumentModel.Triggers`1.ValidateNoEventTriggers(DocumentNode node, EventListenerToString`1 eventListenerToString)

at Spotfire.Dxp.Framework.DocumentModel.EventTriggers.ValidateNoEventTriggers(DocumentNode node)

at Spotfire.Dxp.Framework.DocumentModel.State.DetachedDocumentNodeState.ValidateNoEventTriggers(DocumentNode documentNode)

at Spotfire.Dxp.Framework.DocumentModel.DocumentNode.DisposeDocumentNode()

...

at Spotfire.Dxp.Application.AnalysisApplication.CloseDocument()

at Spotfire.Dxp.Application.AnalysisApplication.d__90.MoveNext()

at Spotfire.Dxp.Application.AnalysisApplication.ConsumeDataLoadPromptRequests(IEnumerable`1 prompts)

at Spotfire.Dxp.Application.AnalysisApplication.OpenFromLibraryCore(Guid entryId, DocumentOpenSettings settings)

at Spotfire.Dxp.Application.AnalysisApplication.Open(LibraryItem libraryItem, DocumentOpenSettings settings)

at MashupWebPanel.Core.Adapters.SpotfireApplicationAdapter.OpenDocumentFromLibrary(String documentLibraryPath, String configurationBlockText) in

It seems that theRecommendationManager doesn't unsubscribe its triggers on disposing.

How can I force this document node to unsubscribe its trigger before opening a new document

Thanks for your help.

  • 2 weeks later...
Posted

Hi Gabriel,I have tried to reproduce the reported issue to no avail.Is this reproducible every time and for every type of analysis loaded or does it require some certain preconditionsAlso, what is the full stack trace (you left some part out with ...)There is no way to force the Recommendation Manager to unsubscribe from these event. If this component where to be correctly disposed, they should already have been removed.Regards

Erik

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...