Hi,
I have a problem with the xamPivotGrid.
I select a cube names Orders.
In visual studio I change the cube name to Orders1 and save the changes.
I then drag a the CustomerId into filter.
I get the error: The object 'Orders' was not found Parameter name: index.
I catch this exception in :myWindow.Dispatcher.UnhandledException += new DispatcherUnhandledExceptionEventHandler(Dispatcher_UnhandledException);
I close the window.
If i bring up the window again with a valid cube the drag drop is gone.
Screen shot:
How do i get the drag drop back. The only way is to close the application and reopen it again.
Regards,
Paw Kyhl Jensen
Could you explain more about how you are changing the cube name? You mentioned that you are doing that in visual studio. I’m assuming that you did this thru the Server Explorer before you run your application but please give me the step by step.
Can you duplicate this using the Adventure Works cube?
The rest of your steps, from where you are dragging a dimension, I assume are done at run time.
Hi I did it in Visual Studio 2008. But it does not matter how the name is changed.
I will make a small project that does this.
Paw
Hi again,
Here is a small solution similar to what I am trying to accommplis.
It is a WinForms project calling the dll containing the cube browser.
Hot to produce the drag drop problem:
1. Run the soulution (You might need to fix the references)
2. Enter the Server name , Database name and the Cube name you want to browse.
3. Click the Open button. The simple browser will apear and all is fine.
4. Rename the cube in Visual Studio (I did it like: File->Open->Analysis Services Database...)
5. Then drag something into the grid or the fields below. A messagebox should popup with an error.
6. Close the message box
7. Close the browser
8. change the cube name in the textbox to a valid cube or the renamed one if it has been processed.
9. click open
10. try to drag an item. (You cannot)
I would also like to know how to catch the exception when the server name is invalid.
Regards
Is there any luck recreating the problem.
Hello,
In order to get error notifications related to connecting to desired server you have to listen for DataSourceBase.LoadSchemaCompleted event and check if LoadSchemaCompletedEventArgs.Error property is different than null.
Plamen.
Our developers were able to duplicate the behavior you reported and I am in the process of logging a development issue.
I will open a private case for you and I will contact you directly thru that case
I passed your comments onto our developers. I expect to hear from them shortly and I will keep you updated.
Sorry, I guess the use of the word browser. I can see the problem. :-) The browser I am refering to is the cube browser like in the sample I made.
I wonder if you are able to get the error: Object "CUBE NAME" was not found.
I found a simple way to reproduce the problem.
Run the sampel.
Enter server name, Database name and Cube to view.
Press Open (Do not do any thing else)
Rename the cube like in my previous post.
In the Window with that was opened by pressing Open in the sample drag a dimension into the rows box.
You should get the error Object "CUBE NAME" was not found (It pops up a couple of times)
Close the window
The enter the name that the cube was renamed to in the Cube Name textbox and press open
It will display fine but now you cannot drag the dimensions into the rows box..
If you restart the sample an set up the connetion to the cube again you can drag drop the dimesions.
Paw.
Our developers have been looking at your sample and working with the steps you defined. We are still not able to reproduce the behavior that you described.
We noticed that in your steps you made several references to “browser” and “browses” but your application uses WinForms/WPF.
Could you give us some clarification on the steps to reproduce the behavior, specifically the “browser” steps?
I do not need a better approach to rename a cube. That is one of the things our product can do.
I just think that our users should be able to do the drag and drop without restarting our application.
Another way to reproduce the problem is to make a change to the cube that will requier a re-proccesing of the cube like adding a dimension.
So a use case/user story/scenario could be:
A user browses a cube and notices that he/she forgot to add a dimension to the cube.
The user adds the dimension to the cube without closing the browser and the deploys the cube (He/she forgets to process the cube).
The user then drags an object in the browse into grid or boxes below.
He gets the error Object "CUBE NAME" was not found......
He closes the browser and processes the cube
Reopen the browser and here comes the problem he/she cannot drag/drop any more.