E10: Calling PartAdapter.InvokeSearch only works first time

Hello,

I am using the Part Adapter to retrieve parts based on their product code.
The first time I call InvokeSearch, it returns the correct number of parts. All subsequent calls, in the same session, return no rows even though there are matching records.
To make sure, I reversed the ProdCode filters below and the same results. First call was good, second call says zero rows.

Here is what I have:
Session EpiSession = new Session("xxxx", "xxxx", Session.LicenseType.Default, @"C:\Epicor\ERP10.0ClientTest\Client\config\ERP10.sysconfig");
ILauncher EpiLaunch = new ILauncher(EpiSession);

PartAdapter part = new PartAdapter(EpiLaunch);
part.BOConnect();

Ice.Lib.Searches.SearchOptions opts = new Ice.Lib.Searches.SearchOptions(Ice.Lib.Searches.SearchMode.AutoSearch);
opts.DataSetMode = Ice.Lib.Searches.DataSetMode.RowsDataSet;
opts.PreLoadSearchFilter = "ProdCode = 'BX6'";

part.InvokeSearch(opts);
MessageBox.Show(part.PartData.Part.Count.ToString());

opts.PreLoadSearchFilter = "ProdCode = 'EVTI8ML2'";
part.ClearData();
part.ClearList();
part.InvokeSearch(opts);
MessageBox.Show(part.PartData.Part.Count.ToString());

[cid:e853bf.png@82a0d5ae.499a2649]


Joe Rojas
Director of Information Technology
(781) 408-9278 Mobile
(781) 573-0291 Local
(781) 232-5191 Fax


[http://matsinc.com/images/e-mail-signatures/tagline.jpg%5d
[http://matsinc.com/images/e-mail-signatures/graphics/logo_matsinc.png%5d<http://matsinc.com> [http://matsinc.com/images/e-mail-signatures/graphics/icon_twitter.png%5d <http://twitter.com/Mats_Inc> [http://matsinc.com/images/e-mail-signatures/graphics/icon_facebook.png%5d <http://www.facebook.com/commercial.flooring> [http://matsinc.com/images/e-mail-signatures/graphics/icon_youtube.png%5d <http://www.youtube.com/user/MatsIncTV> [http://matsinc.com/images/e-mail-signatures/graphics/icon_pinterest.png%5d <http://www.pinterest.com/contractfloors/> [http://matsinc.com/images/e-mail-signatures/graphics/icon_blog.png%5d <http://matsinc.com/blog>



[Non-text portions of this message have been removed]