If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Pervasive.SQL > BUTIL problem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-21-04, 11:44
rduq23 rduq23 is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
Unhappy BUTIL problem

I'm trying to use butil to clone a btrieve 6.15 datafile for Lytec 2001 ... Lytec did not include butil with their app ... I was able to find butil 7 but not one referencing 6.15 ... so I tried 7 ... all I got was 3 errors ... BUTIL-14: the file that caused the error is north34.dat and BUTIL-100: Microkernel error = 20. The key buffer parameter is too short. ... after that line is BUTIL-9: the command did not complete due to an unrecoverable error.

Can anyone shed some light on this?

Is there a butil for 6.15? Do I need to change a parameter for butil 7 to work?

Thank you very much for any assistance.
Reply With Quote
  #2 (permalink)  
Old 12-21-04, 11:54
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
There was a BUTIL for Btrieve 6.15. Are you sure the Microkernal error was 20? THat's not a "Key buffer parameter too short" (it's a 21). Does Lytec have a tool to rebuild data files? If so use that. What was the exact command you used?
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #3 (permalink)  
Old 12-21-04, 12:10
rduq23 rduq23 is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
I used butil -clone northd34.dat northc34.dat

Lytec has a tool for a rebuild but it had no effect on fixing the original problem ... error2: inserting record to file northc34.dat - when starting Lytec and error 8: updating record from file northc.34.dat The current file position invlaid - when trying to create a new bill for a customer

If you hit OK a couple times you get by the error and you can work ... but each time you go to create a new bill you get the same error

Last edited by rduq23; 12-21-04 at 12:14.
Reply With Quote
  #4 (permalink)  
Old 12-21-04, 17:49
mirtheil mirtheil is offline
Registered User
 
Join Date: Dec 2001
Posts: 1,026
Sounds like more of a problem with Lytec. Almost like it's reporting the wrong error. That looks like the right command line. Do you have the Maintence Utility? You can try that one. Other than that, it might be time to call Lytec. You can also try a third party tool or dev tool. For example, you can use the Btrieve Rebuild DLL (http://www.mirtheil.com/rebuild.asp) but it's more of a development tool.
__________________
Mirtheil Software
Certified Pervasive Developer
Certified Pervasive Technician
Custom Btrieve/VB development
http://www.mirtheil.com
I do not answer questions by email. Please post on the forum.
Reply With Quote
  #5 (permalink)  
Old 12-24-04, 20:00
jbuttery jbuttery is offline
Registered User
 
Join Date: Dec 2004
Posts: 3
The file sounds like it's a version 5 format. The butil 14 is a pre-image file error. Do a butil -stat on northd34.dat and post here.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On