Skip to Content
0
Former Member
Aug 26, 2005 at 10:18 PM

Exception from HRESULT: 0xFFFFE498 on matrix Query

21 Views

Hey All:

I am setting up a very simple condition on a matrix, but whenever I try to add the query to the datasource I get the following error and the application crashes:

Exception from HRESULT: 0xFFFFE498

Attached is the code: Any input is appreciated.

SAPbouiCOM.Conditions conditionCollection = null;

SAPbouiCOM.Condition itemListCondition = null;

SAPbouiCOM.DBDataSource itemListDataSource = null;

//Obtain the item List Data Source.

itemListDataSource = objChooseFromListForm.DataSources.DBDataSources.Item("OITM");

//Create a Condition to filter the result.

conditionCollection = new ConditionsClass();

itemListCondition = conditionCollection.Add();

itemListCondition.BracketOpenNum = 1;

itemListCondition.Alias = "ItmsGrpCod";

itemListCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL;

itemGroupID = 107;

itemListCondition.CondVal = itemGroupID.ToString();

itemListCondition.BracketCloseNum = 1;

//Add condition to Data Source.

itemListDataSource.Query(conditionCollection);