Re: ReadFirstKey cannot find a record
Vlado Marko
10-7-20
I am not the original poster. Just one suggestion in case someone encounters this. It happens when you add a new index or modify existing index. Keep in mind indexes are not regenerated when you modify them in datadef.hal New entries which you save AFTER index modification, will have index records and you will find them, but not records before you modified the index. You need to empty and reimport the register to regenerate. There is even a last resort option which I have used in case of seriously corrupted register (--drop-register).


I do not recommend modifying existing index (key) in any way. It is best to use hal command to drop index and recreate it from scratch in datadef.hal. Then clear the register and reimport as mentioned above.

Another cause of the issue you are reporting is when your index is not unique - remember each index must contain all componentes of Main key, even if you think the index would be unique in another way.

My experience :)
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
Reino Botha
Please check your version of android if it is the same as the server you are connecting too. ...
08:24 21 Nov 2024
Bror-Erik Kotiranta
In NC you hace operations>>ai chats. They are used for these Br, Bror-Erik...
05:12 21 Nov 2024