Delphi / Object Pascal · Database exception

BDE Error 8710 ($2206) - Could Not Find Record

What does BDE Error 8710 ($2206) - Could Not Find Record mean in Delphi / Object Pascal?

Raised when a Locate/lookup/GotoKey-style operation can't find a record matching the specified key or search criteria.

BDE Error 8710 ($2206) - Could Not Find RecordDelphi (VCL) · Delphi (BDE)

Condition

Raised when a Locate/lookup/GotoKey-style operation can't find a record matching the specified key or search criteria.

Fix

Check the search value actually exists in the dataset/index before assuming this is an error condition - many call sites should treat 'not found' as a normal outcome by testing the return value of Locate rather than relying on the exception where the API offers a non-raising alternative.

Pending source verification. Not yet checked against official documentation.

Related database exception