Is that the full text from the exception? I was expecting to see something like this:
Source File: c:\Documents and Settings\Marelizee\My Documents\Visual Studio 2005\WebSites\MSDNTutorials\Default.aspx.cs Line: 41
Stack Trace:
[COMException (0x8002000b): Invalid index. (Exception from HRESULT: 0x8002000B (DISP_E_BADINDEX))]
CrystalDecisions.ReportAppServer.DataDefModel.Fiel dsClass.get_Item(Int32 Index) +0
CrystalDecisions.CrystalReports.Engine.ParameterFi eldDefinitions.get_Item(Int32 index) +77
CrystalDecisions.CrystalReports.Engine.ParameterFi eldDefinitions.get_Item(String fieldName) +98
CrystalDecisions.CrystalReports.Engine.ReportDocum ent.SetParameterValue(String name, Object val) +266
_Default.ConfigureCrystalReports() in c:\Documents and Settings\Marelizee\My Documents\Visual Studio 2005\WebSites\MSDNTutorials\Default.aspx.cs:41
_Default.Page_Init(Object sender, EventArgs e) in c:\Documents and Settings\Marelizee\My Documents\Visual Studio 2005\WebSites\MSDNTutorials\Default.aspx.cs:76
System.Web.Util.CalliHelper.EventArgFunctionCaller (IntPtr fp, Object o, Object t, EventArgs e) +31
System.Web.Util.CalliEventHandlerDelegateProxy.Cal lback(Object sender, EventArgs e) +68
System.Web.UI.Control.OnInit(EventArgs e) +89
System.Web.UI.Page.OnInit(EventArgs e) +28
System.Web.UI.Control.InitRecursive(Control namingContainer) +459
System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1743
From what I see in your code, you have a try catch which is probably handling the error and you are copying what is displayed from Ex.Message.
Comment out your Try Catch Block, and allow the program to crash with an exception. Click the "Details>>" button and copy the text from in there.
-----
From the information you provided, it seems that objReport.DataDefinition.ParameterFields(0) does not exist, which is something you refer to in a few different lines of code. We need to find out exactly which line of code you are crashing on (it should be apparant once you remove the try catch block).
------
I am sorry, I cannot answer your question. I have no experience with Crystal Reports whatsoever, much less trying to connect it to OLAP data. I have a gut feeling that you are referring to SAP BW Cubes? I would think that a multidimensional cube would act like a single table of data (or more correctly a Sql DB View), but that is pure speculation, I really do not know the answer.
-Sean Campbell
firesickle.com