Hi
Strictly speaking this is a problem with the WPF xampivotgrid but i cant find anywhere in the forum to raise this so I thought I'd put it here because my guess is that the silverlight grid has the same issue...
I've got a really basic Analysis Services 2005 cube containing a couple of dimensions and a couple of measures. I can connect to this using adomd and get the data into the xampivotgrid. All looks good apart from not being able to get a double click event (that's another story).
If I add a calculated measure that has a parent of 'Measures', when the app starts up and (i think) the grid loads its data, I get this exception. The fact that it's refering to LoadMeasuresWorkerCompleted makes me suspect the problem is related to the calculated measure.
at System.ComponentModel.AsyncCompletedEventArgs.RaiseExceptionIfNecessary() at Infragistics.Olap.Adomd.AdomdDataProvider.LoadMeasuresWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e) at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e) at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.DispatcherOperation.InvokeImpl() at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state) at System.Threading.ExecutionContext.runTryCode(Object userData) at System.Runtime.CompilerServices.RuntimeHelpers.ExecuteCodeWithGuaranteedCleanup(TryCode code, CleanupCode backoutCode, Object userData) at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, 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.Windows.Threading.DispatcherOperation.Invoke() at System.Windows.Threading.Dispatcher.ProcessQueue() at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled) at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o) at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs) at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam) at MS.Win32.UnsafeNativeMethods.MessageBox(HandleRef hWnd, String text, String caption, Int32 type) at System.Windows.MessageBox.ShowCore(IntPtr owner, String messageBoxText, String caption, MessageBoxButton button, MessageBoxImage icon, MessageBoxResult defaultResult, MessageBoxOptions options) at Infragistics.Windows.Licensing.UltraLicenseProvider.ShowMessageBoxDelayed(DependencyObject d, String title, String message)
Has anyoue out there got a xampivotgrid working with calculates measures ? Is this a know problem to infragistics?
For me, the ability to display the value of calculated values in the grid is pretty vital!
Thanks in advance
Nigel
Have you tried to use it with Analysis Services 2008? Is it the same?
Todor
I get the exact same error and the same stack trace. We have an Analysis Services 2008 R2 data source, using ADOMD.NET. Our cube also has calculated measures in it.
This defect makes the control pretty much unusable for us. Is there a workaround?
I am getting the same issue on my end. Please find my connection settings below.
I am using SQL 2008 R2 Enterprise
<UserControl.Resources> <olap:AdomdDataSource x:Key="AdomdDataSource" Database="DTTAP iCube Production" Cube="DTTAPDEV" > <olap:AdomdDataSource.ConnectionSettings> <olap:AdomdConnectionSettings ConnectionString="Provider=MSOLAP.4;Integrated Security=SSPI;Initial Catalog=DTTAP iCube Production;Persist Security Info=True;Data Source=dtgerdc1sdb06"/> </olap:AdomdDataSource.ConnectionSettings> </olap:AdomdDataSource> </UserControl.Resources>