cancel
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.

itemListDataSource.Query(conditionCollection);

Accepted Solutions (1)

Accepted Solutions (1)

former_member185703
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?

Regards,

Frank

Former Member
0 Kudos

hi frank

i have same problem like Adnan

do you have other advice

thank yaad

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi, try this way

//Add condition to Data Source.

itemListDataSource.Clear;

itemListDataSource.Query(conditionCollection);

Former Member
0 Kudos

hi

i can't do this because of in line itemListDataSource.Clear

i get error that can't do this on system DataSource

my situation is:

i create user table and create form that bind to DataSource , when i want to find record on form i press on find button and then the system open "choose from list form" in this form i need to fill matrix with my DataSource, but when i do this line

itemListDataSource.Query() - with out condition (i try to do this line with condition)

i get the error : Exception from HRESULT: 0xFFFFE498

thank yaad