[ORD 2020 R1] Cif Exceptions when using display rules

Hi,

since new update of ORD I encountered plenty of problems when using display rules or adding templates to corridor with new components. Every time I get an error with message Exception logged to:... 

It only happens when I try to add something new to corridor like template with new components or turn on display rule which displays new component. What is strange that such templates work correctly in new files but not in created in U7 and before. 

Does anyone know what could be the problem? I uploaded last free exceptions that I had received.

Best regards

Krzysztof Jędrych

Exception-20200203-084437.log
Exception caught in source file e:\Builds\cif10080088\Source\Cif\src\managed\ui\tools\PrimitiveCommand\PrimitiveCommand.cs at method OnDataButtonInternal

================================================================================
Exception : The ObjectSpace was previously disposed

In Assembly : Bentley.CifNET.Objects.4.0

Stack Trace :
   w Bentley.CifNET.Objects.Engine.ObjectSpace.CheckDisposed()
   w Bentley.CifNET.Objects.Engine.ObjectSpace.GetInstanceInternal(ObjectKeyInternal key, Boolean mustBePersisted)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.GetObjectInternal(ObjectKey ecKey, Boolean persisting)
   w Bentley.CifNET.Objects.Engine.ObjectBucket.GetObject()
   w Bentley.CifNET.Objects.Engine.ObjectHolderInternal.get_ObjectReference()
   w Bentley.CifNET.Model.NamedEntity.GetNamedEntitySet()
   w Bentley.CifNET.Model.NamedEntity.GetIsNamed()
   w Bentley.CifNET.Model.EC.ECNamedEntityBinder.SnapShot.IsNamingRefenceSolved(NamedEntity ent)
   w Bentley.CifNET.Model.EC.ECNamedEntityBinder.SnapShot..ctor(NamedEntity ent)
   w Bentley.CifNET.GeometryModel.EC.ECLinearEntity3dBinder.SnapShot..ctor(LinearEntity3d ent)
   w Bentley.CifNET.GeometryModel.EC.ECLinearEntity3dBinder.GetSnapShot(Object obj)
   w Bentley.CifNET.Objects.Engine.Instance.StoreSnapShot(Boolean haveToRecreateSnapShot)
   w Bentley.CifNET.Objects.Engine.Instance.BuildChangeSet(InternalChangeSet changeSet, PersistDepth persistDepth)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.ReleaseChangeSetBuild()
   w Bentley.CifNET.Objects.Engine.ObjectSpace.ApplyBusinessRules(ICollection`1 chgs)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.ProcessChangeSetInMemory(InternalChangeSet changeSet, InstanceChangeEventAggregation externalEventArgs)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.ProcessChangeSet(InternalChangeSet changeSet, InstanceChangeEventAggregation externalEventArgs)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.HandlePersistenceModeTransition(PersistenceModeTransition transition)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.PersistTransients()
   w Bentley.CifNET.Objects.Engine.ObjectSpace.Bentley.CifNET.Objects.IObjectSpace.PersistTransients()
   w Bentley.CifNET.GeometryModel.Tool.GeometryCommand.ObjectSpaceHolder.PersistTransients()
   w Bentley.Civil.RoadwayDesigner.Commands.CreateParametricConstraint.MoveToNextState(CreateParametricConstraint command)
   w Bentley.CifNET.UI.Tools.ParameterEntryState`2.Entered()
   w Bentley.CifNET.UI.Tools.ParameterEntryState`2.InternalPrimitiveParameterState.OnParameterAccepted(AcceptMethod acceptMethod, Object parameterValue)
   w Bentley.CifNET.UI.Tools.ParameterState.DoParameterAccepted(AcceptMethod acceptMethod, Object parameterValue)
   w Bentley.CifNET.UI.Tools.CursorPrompt.ParameterPromptManager.PromptDialogManagerOnDialogResult(Object sender, DialogResultEventArgs e)
   w Bentley.CifNET.UI.Tools.CursorPrompt.PromptDialogManager.SetResult(Object value, AcceptMethod acceptMethod)
   w Bentley.CifNET.UI.Tools.CursorPrompt.ParameterPromptManager.Bentley.CifNET.UI.Tools.ICommandParameterPrompter.OnDataPoint(IButtonEvent pointEvent)
   w Bentley.CifNET.UI.Tools.PrimitiveCommand.<>c__DisplayClass106_0.<OnDataButtonInternal>b__0()
   w Bentley.CifNET.UI.Tools.PrimitiveCommand.ManagedBooleanCallBack(Func`1 method, Boolean exitCommandAndCleanupCaches, Boolean retValue, String message, String memberName, String sourceFilePath, Int32 sourceLineNumber)
Exception-20200203-084950.log
Exception caught in source file e:\Builds\cif10080088\Source\Cif\src\managed\ui\tools\PrimitiveCommand\PrimitiveCommand.cs at method OnDataButtonInternal

================================================================================
Inner Exception : Odwołanie do obiektu nie zostało ustawione na wystąpienie obiektu.

In Assembly : Bentley.ECObjects.MixedMode3

Stack Trace :
   w Bentley.ECObjects.Instance.ECDInstance.InitClassLayout(IECClass ecClass)
   w Bentley.ECObjects.Instance.ECDInstance..ctor(IECClass ecClass, ClassLayout classLayout)
   w Bentley.ECObjects.Instance.StandaloneECDInstance..ctor(IECClass ecClass)
   w Bentley.DgnPlatformNET.DgnEC.DgnECManager.CreateECDInstanceFromNativeInstance(IECInstance* nativeInstance, DgnFile dgnFile)
   w Bentley.DgnPlatformNET.ItemType.CreateTemplateInstance()
   w Bentley.CifNET.GeometryModel.RoadwayDesigner.Corridor.LinearEntity3dEvaluationBucket.Commit(Corridor corridor, String name, IObjectTracker objectSpace)
   w Bentley.CifNET.GeometryModel.RoadwayDesigner.Corridor.EndEvaluation(IObjectTracker objectSpace)
   w Bentley.CifNET.GeometryModel.RoadwayDesigner.BaseCorridorRule.Evaluate(IObjectTracker objectSpace, IEnumerable`1 changeEvents)
   w Bentley.CifNET.GeometryModel.RoadwayDesigner.BaseCorridorRule.Evaluate(IObjectTracker objectSpace, IEnumerable`1 changeEvents, DependencyCycleInfo info)
   w Bentley.CifNET.Objects.RuleManagement.ActionList.ActionNodeRoot.Process(IRuleEvaluationLogger logger, DependencyCycleInfo transactionInfo, CheckStopProcessingRule checkStop, Int32 waveCount)

================================================================================
Exception : Error in Rule Evaluation

In Assembly : Bentley.CifNET.Objects.RuleManagement.4.0

Stack Trace :
   w Bentley.CifNET.Objects.RuleManagement.ActionList.ActionNodeRoot.Process(IRuleEvaluationLogger logger, DependencyCycleInfo transactionInfo, CheckStopProcessingRule checkStop, Int32 waveCount)
   w Bentley.CifNET.Objects.RuleManagement.ActionList.ProcessEvaluableCandidates(IRuleEvaluationLogger logger, DependencyCycleInfo info, CheckStopProcessingRule checkStop, Int32 waveCount)
   w Bentley.CifNET.Objects.RuleManagement.ActionList.ProcessChanges(IEnumerable`1 changes, IRuleEvaluationLogger logger, DependencyCycleInfo info, CheckStopProcessingRule checkStop, Int32 waveCount, RuleEvaluatorFilter ruleFilter)
   w Bentley.CifNET.Objects.RuleManagement.ActionList.ProcessWave(IEnumerable`1 changes, IRuleEvaluationLogger logger, DependencyCycleInfo info, CheckStopProcessingRule checkStop, Int32 waveCount, RuleEvaluatorFilter ruleFilter)
   w Bentley.CifNET.Objects.RuleManagement.RuleManager.ProcessWave(IObjectTracker objectSpace, IEnumerable`1 changes, CheckStopProcessingRule checkStop)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.ApplyBusinessRules(ICollection`1 chgs)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.ProcessChangeSetInMemory(InternalChangeSet changeSet, InstanceChangeEventAggregation externalEventArgs)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.ProcessChangeSet(InternalChangeSet changeSet, InstanceChangeEventAggregation externalEventArgs)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.HandlePersistenceModeTransition(PersistenceModeTransition transition)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.PersistTransients()
   w Bentley.CifNET.Objects.Engine.ObjectSpace.Bentley.CifNET.Objects.IObjectSpace.PersistTransients()
   w Bentley.CifNET.GeometryModel.Tool.GeometryCommand.ObjectSpaceHolder.PersistTransients()
   w Bentley.Civil.RoadwayDesigner.Commands.CreateParametricConstraint.MoveToNextState(CreateParametricConstraint command)
   w Bentley.CifNET.UI.Tools.ParameterEntryState`2.Entered()
   w Bentley.CifNET.UI.Tools.ParameterEntryState`2.InternalPrimitiveParameterState.OnParameterAccepted(AcceptMethod acceptMethod, Object parameterValue)
   w Bentley.CifNET.UI.Tools.ParameterState.DoParameterAccepted(AcceptMethod acceptMethod, Object parameterValue)
   w Bentley.CifNET.UI.Tools.CursorPrompt.ParameterPromptManager.PromptDialogManagerOnDialogResult(Object sender, DialogResultEventArgs e)
   w Bentley.CifNET.UI.Tools.CursorPrompt.PromptDialogManager.SetResult(Object value, AcceptMethod acceptMethod)
   w Bentley.CifNET.UI.Tools.CursorPrompt.ParameterPromptManager.Bentley.CifNET.UI.Tools.ICommandParameterPrompter.OnDataPoint(IButtonEvent pointEvent)
   w Bentley.CifNET.UI.Tools.PrimitiveCommand.<>c__DisplayClass106_0.<OnDataButtonInternal>b__0()
   w Bentley.CifNET.UI.Tools.PrimitiveCommand.ManagedBooleanCallBack(Func`1 method, Boolean exitCommandAndCleanupCaches, Boolean retValue, String message, String memberName, String sourceFilePath, Int32 sourceLineNumber)
Exception-20200203-084951.log
Exception caught in source file e:\Builds\cif10080088\Source\Cif\src\managed\ui\tools\PrimitiveCommand\PrimitiveCommand.cs at method OnDataButtonInternal

================================================================================
Exception : The ObjectSpace was previously disposed

In Assembly : Bentley.CifNET.Objects.4.0

Stack Trace :
   w Bentley.CifNET.Objects.Engine.ObjectSpace.CheckDisposed()
   w Bentley.CifNET.Objects.Engine.ObjectSpace.GetInstanceInternal(ObjectKeyInternal key, Boolean mustBePersisted)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.GetObjectInternal(ObjectKey ecKey, Boolean persisting)
   w Bentley.CifNET.Objects.Engine.ObjectBucket.GetObject()
   w Bentley.CifNET.Objects.Engine.ObjectHolderInternal.get_ObjectReference()
   w Bentley.CifNET.Model.NamedEntity.GetNamedEntitySet()
   w Bentley.CifNET.Model.NamedEntity.GetIsNamed()
   w Bentley.CifNET.Model.EC.ECNamedEntityBinder.SnapShot.IsNamingRefenceSolved(NamedEntity ent)
   w Bentley.CifNET.Model.EC.ECNamedEntityBinder.SnapShot..ctor(NamedEntity ent)
   w Bentley.CifNET.GeometryModel.EC.ECLinearEntity3dBinder.SnapShot..ctor(LinearEntity3d ent)
   w Bentley.CifNET.GeometryModel.EC.ECLinearEntity3dBinder.GetSnapShot(Object obj)
   w Bentley.CifNET.Objects.Engine.Instance.StoreSnapShot(Boolean haveToRecreateSnapShot)
   w Bentley.CifNET.Objects.Engine.Instance.BuildChangeSet(InternalChangeSet changeSet, PersistDepth persistDepth)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.ReleaseChangeSetBuild()
   w Bentley.CifNET.Objects.Engine.ObjectSpace.ApplyBusinessRules(ICollection`1 chgs)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.ProcessChangeSetInMemory(InternalChangeSet changeSet, InstanceChangeEventAggregation externalEventArgs)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.ProcessChangeSet(InternalChangeSet changeSet, InstanceChangeEventAggregation externalEventArgs)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.HandlePersistenceModeTransition(PersistenceModeTransition transition)
   w Bentley.CifNET.Objects.Engine.ObjectSpace.PersistTransients()
   w Bentley.CifNET.Objects.Engine.ObjectSpace.Bentley.CifNET.Objects.IObjectSpace.PersistTransients()
   w Bentley.CifNET.GeometryModel.Tool.GeometryCommand.ObjectSpaceHolder.PersistTransients()
   w Bentley.Civil.RoadwayDesigner.Commands.CreateParametricConstraint.MoveToNextState(CreateParametricConstraint command)
   w Bentley.CifNET.UI.Tools.ParameterEntryState`2.Entered()
   w Bentley.CifNET.UI.Tools.ParameterEntryState`2.InternalPrimitiveParameterState.OnParameterAccepted(AcceptMethod acceptMethod, Object parameterValue)
   w Bentley.CifNET.UI.Tools.ParameterState.DoParameterAccepted(AcceptMethod acceptMethod, Object parameterValue)
   w Bentley.CifNET.UI.Tools.CursorPrompt.ParameterPromptManager.PromptDialogManagerOnDialogResult(Object sender, DialogResultEventArgs e)
   w Bentley.CifNET.UI.Tools.CursorPrompt.PromptDialogManager.SetResult(Object value, AcceptMethod acceptMethod)
   w Bentley.CifNET.UI.Tools.CursorPrompt.ParameterPromptManager.Bentley.CifNET.UI.Tools.ICommandParameterPrompter.OnDataPoint(IButtonEvent pointEvent)
   w Bentley.CifNET.UI.Tools.PrimitiveCommand.<>c__DisplayClass106_0.<OnDataButtonInternal>b__0()
   w Bentley.CifNET.UI.Tools.PrimitiveCommand.ManagedBooleanCallBack(Func`1 method, Boolean exitCommandAndCleanupCaches, Boolean retValue, String message, String memberName, String sourceFilePath, Int32 sourceLineNumber)