ReadFirstKey cannot find a record
Aldevinas Katkus
9-24-20
Operating system: macOS
I am checking for an existing invoice like this

IVr2.OfficialSerNr=inline;
if (ReadFirstKey("OfficialSerNr",IVr2,1,true))then begin
...

if inline=VPLT25790C11LT then ReadFirstKey() returns false even though such key exists. I have checked the invoices browse window - the same issue - I cannot find an invoice even it is in the list.
If I search for VPL25866 it works fine.
Is it a bug?
Leave Comment
You can subscribe to notifications for this post by selecting the 'star' icon on the top right corner of the post.
Latest Posts
Yavuz Yigiterhan
More explanation @Paul: When the issue occurs, should see if restarting presence or lookup helps. If so - that is the issue and should be sorted. First need to ensure that that is the issue...
07:18 2 July 2025
Arzu Erdogdu
Hello! You can mark it as closed as option. If document is connected with other documents you can not delete it so you will not be able to delete PO, as you will not be able to remove Goods receipt...
09:29 13 Jun 2025