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.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
Hello Alex,
We have shipped out a new service release where your issue is resolved. I'd be glad to find out if you had tested it out and if it had met your requirements.
You can download the Service Releases by logging to our web site and going to Account \My Keys and Downloads.
I apologize for the delay. The Untested build is now ready and will provide your colleague with it through the private case.
Hi Stefan,
Even thought the case was transferred to my colleague I wonder if the test buld is out ?
I am rolling off the project soon and I'd like to get some issues fixed.
Thanks a lot,
Alex
The case has been transfered to your colleague.
I have added the info required for case transfer to the case page.