Btree Error 1-9
Home Contents Search

Up

 

01 INVALID OPERATION

    Problem : The operation parameter specified in the call is invalid.

    Solution : Call Northern Software

02 I/O ERROR

    Problem : An error occurred during disk read/write. This status code indicates that  the file has been damaged and must be recreated, or that the file specified on the open call was not created. This status code also occurs if the application passed  an invalid position block.

    Solution : Rebuild the indicated file.

03 FILE NOT OPEN

    Problem : The operation can not execute because the file is not open. This error may also occurre if the application passed an invalid position block for the file.

    Solution : 

04 KEY VALUE NOT FOUND

    Problem : The specified key value in the index path was not found.

    Solution : 


05 DUPLICATE KEY VALUE

    Problem : A record with a key field containing a duplicate key value cannot be added to an index that does not allow duplicate values.

    Solution : 


06 INVALID KEY NUMBER

    Problem : The value stored in the key number parameter was not valid for the file beind accessed. The key number must correspond to one of the keys defined when the file was created or to a supplemental index.

    Solution : 

07 DIFFERENT KEY NUMBER

    Problem : The key number parameter changed before a Get Next, Get Next Extended, Get Previous, Get Previous Extended, Update, or Delete operation. The operation specified requires the same key number parameter as the previous operation because Btrieve uses positioning information relative to the previous key number.

If you need to change key numbers between consecutive Get Next, Get Next Extended, Get Previous, or Get Previous Extended operations, use a Get Position operation followed by a Get Direct operation to re-establish positioning for the new index path.

    Solution : 

08 INVALID POSITIONING

    Problem : The current position must be established to update or delete a record. Perform a Get or Step operation to establish the current position. This status code may also occur if the application passed an invalid position block for the file.

    Solution : 

09 END-OF-FILE

    Problem : The operation tried to read past the file boundaries (end-of-file or start-of-file). When reading a file in ascending order according to an index path, Btrieve returns the last record in that index path. When reading a file in descending order according to an index path, Btrieve returns the first record in the index path.

The Get Extended and Step Extended operations return this status code if the number of records satisfying the filtering condition is less than the number of specified records to be returned and the reject count has not been reached.

    Solution : Rebuild the indicated file.  If that does not work, the file was damaged beyond repair or even truncated.  You will have to restore the file from a back up.