Searching CodeGear/Embarcadero newsgroups I was only able to find that error related to setting/using the Filter property. I would search the project looking for anything setting the component's Filter property and check if the component is bound to any UI controls that could indirectly set the filter property (ex. DevExpress's TcxGrid, Infopower's Filter dialog, etc)
Another suggestion is to wrap opening of the dataset in a disable/enablecontrols. If the dataset is bound to a UI control, the control should not attempt to apply any actions (applying a filter) that could cause an exception.
function TdmESShip.GetESPackageID(const PackageID : Integer): String;
var
ESPackageID :string; // for debugging
begin
with qESPackage do
begin
ESPackageID := '';
DisableControls();
try
try
Parameters.ParamByName('PackageID').Value := PackageID;
Open();
if NOT(IsEmpty()) then
begin
ESPackageID := qESPackageESPackageID.AsString;
end;
Close(); // No need to keep open
except
on E:Exception do
begin
ESPackageID := '9999999'; // ex. return a known bogus value
// log the error, re-raise a more meaningful error, etc
end;
end;
finally
EnableControls();
Result := ESPackageID;
end;
end;
end;
Good luck