Isabel Carvalho wrote:

When I try to read a dbf file, using XBase in PERL, I immediately have an
error:
'DBD::XBase::st execute failed: Table xxxxxx not found: Missmatch in header
of xxxxx: record_len 2048 but offset 1696'

I believe the last field mentioned in the Header is not populated in the
actual records, therefore the mismatch, but I really need to read the file
!

Just having a column unpopulated probably isn't the problem -- if I create a new table in DBD::XBase and only populate the first column, it reads fine (and all columns start out unpopulated). So maybe it's a problem with the type of that column (is it a memo field?) or the name of the column (is it a SQL-compliant name?) or something about whatever created the table (how was the table created?) Did you transfer the table via FTP in a way that may have modified the line endings of the table? If none of those questions provide an answer, maybe you should post a small sample table that illustrates the problem. Also tell us what version of DBD::XBase, XBase, DBI, and perl you are using and on what OS.

--
Jeff



Reply via email to