Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
605
Exception on DataSource refresh
posted

Hello,

I have posted same question on Silverlight forum and had no answers. Hope the reason was just wrong forum I've selected to post to...

Here is the original post : 

I have a problem with xamPivotGrid exceptions occurring in the following scenario:

1. Pivot grid is loaded with previously saved layout view.

2. Data Source could be updated from underlying sources (webservices) at any given moment

3. If I then try to add new dimension to the grid from data selector eventually I see

System.InvalidOperationException  exception thrown from InfragisticsWPF4.Olap.FlatData.v11.1 :

 

System.InvalidOperationException was unhandled

Message=Operation is not valid due to the current state of the object.

Source=InfragisticsWPF4.Olap.FlatData.v11.1

StackTrace:

at Infragistics.Olap.FlatData.FlatDataModelProvider.UpdateLevelMembers(IEnumerable`1 items, IHierarchy hierarchy, HierarchyDescriptor hierarchyDescriptor, Int32 levelIndex, DimensionMetadata dimensionMetadata, String uniqueNamePart)

at Infragistics.Olap.FlatData.FlatDataModelProvider.UpdateLevelMembers(IEnumerable`1 items, IHierarchy hierarchy, HierarchyDescriptor hierarchyDescriptor, Int32 levelIndex, DimensionMetadata dimensionMetadata, String uniqueNamePart)

at Infragistics.Olap.FlatData.FlatDataModelProvider.OnRemoveItemsFromItemsSource(ItemsSourceChangedEventArgs eventArgs, IList`1& deletedDataObjects, IList`1& modifiedHierarchies)

at Infragistics.Olap.FlatData.FlatDataModelProvider.OnUpdateHierarchiesData(ItemsSourceChangedEventArgs args)

at Infragistics.Olap.FlatData.FlatDataModelProvider.<>c__DisplayClass11.<ItemsSourceChanged>b__f()

at System.Threading.ThreadHelper.ThreadStart_Context(Object state)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)

at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)

at System.Threading.ThreadHelper.ThreadStart()

InnerException:

/////////////////////////////////////////////////////////////////////////////////////////////////////////////

In my previous discussion of the problem with Plamen Pilev I understand that exception occurs while Data Source is not fully refreshed yet and (I am citing now from one of Plamen's e-mail) :

"OnRemoveItemsFromItemsSource collects an information about the hierarchies affected by this collection change.

UpdateLevelMembers method goes through the levels of affected hierarchies and remove the members that are no longer present because all data items which this member represents are removed.

This exception is signal that there is no such member in the level – because it’s not created yet I think. That might happen when the processing of the new added to rows/columns hierarchy is not finished yet, so its hierarchy structure (levels and members) is not ready and in the same time we try to remove an element of that structure."

I was advised by Plamen to continue discussion of this problem in the forum as it seems more appropriate from Dev. Support point of view.

Thanks a  lot in advance for the help.

Alex Nebogatov

 

 

 

 

Parents Reply Children
No Data