The given key was not present in the dictionary

Hi

By setting the assistants on SfDiagramComponent I'm getting the error but the key is existing. I dont know what I'm doing wrong.

System.AggregateException: One or more errors occurred. (The given key '0eb5a764-61e2-4634-b4f8-9184644d13e4' was not present in the dictionary.)

       ---> System.Collections.Generic.KeyNotFoundException: The given key '0eb5a764-61e2-4634-b4f8-9184644d13e4' was not present in the dictionary.

         at System.Collections.Generic.Dictionary`2[[System.String, System.Private.CoreLib, Version=6.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[Syncfusion.Blazor.Diagram.Internal.LayoutInfo, Syncfusion.Blazor, Version=19.4.0.55, Culture=neutral, PublicKeyToken=null]].get_Item(String key)

         at Syncfusion.Blazor.Diagram.Internal.HierarchicalTree.SetDepthSpaceForAssitants(ILayout layout, Node shape, Double bottom, Nullable`1 lev, Double vSpace)

         at Syncfusion.Blazor.Diagram.Internal.HierarchicalTree.UpdateTree(ILayout layout, Double x, Double y, Node node, Nullable`1 level, Node prev, Boolean doNotUpdate)

         at Syncfusion.Blazor.Diagram.Internal.HierarchicalTree.UpdateHorizontalTree(ILayout layout, Node shape, Double x, Double y, Int32 level)

         at Syncfusion.Blazor.Diagram.Internal.HierarchicalTree.UpdateTree(ILayout layout, Double x, Double y, Node node, Nullable`1 level, Node prev, Boolean doNotUpdate)

         at Syncfusion.Blazor.Diagram.Internal.HierarchicalTree.DoLayout(ILayout layout, DiagramObjectCollection`1 nodes, DiagramPoint viewport, String uniqueId)

         at Syncfusion.Blazor.Diagram.Internal.HierarchicalTree.UpdateLayout(DiagramObjectCollection`1 nodes, Dictionary`2 nameTable, Layout layoutProp, DiagramPoint viewport, String uniqueId)

         at Syncfusion.Blazor.Diagram.Internal.DiagramLayerContent.DoLayout()

         at Syncfusion.Blazor.Diagram.SfDiagramComponent.DoLayout()

         at Syncfusion.Blazor.Diagram.Internal.DiagramLayerContent.OnAfterRenderAsync(Boolean firstRender)

         --- End of inner exception stack trace ---

Thank you for your support


1 Reply

RA Ranjitha Amirthalingam Syncfusion Team March 24, 2022 12:16 PM UTC

We have prepared the sample to replicate the issue on our end based on the provided details. But it is not reproduced. We have shared the sample for your reference.


Could you please check the provided sample and let us know whether the reported scenario is addressed in the sample or not. If not, please replicate the issue in the provided sample or share your code to replicate the issue. These details help us to serve you better.


Attachment: OrgChart_957ba034.zip

Loader.
Up arrow icon