Showing results for 
Search instead for 
Did you mean: 

Exception from HRESULT: 0xFFFFE498 on matrix Query

Former Member
0 Kudos

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.


View Entire Topic
Active Contributor
0 Kudos

Hi Adnan,

For me your code works perfectly.

Maybe cleanup all intermediate and binary files (DLLs (especially the PIAs (Primary Interop. Assemblies)!), *.obj etc.) in your project folder and compile and run again?

Don't you get an error text together with the exception code?



Former Member
0 Kudos

hi frank

i have same problem like Adnan

do you have other advice

thank yaad