dbf icon indicating copy to clipboard operation
dbf copied to clipboard

Uncomplete DBF loading

Open m0rgancz opened this issue 2 years ago • 1 comments

Hi,

table = dbf.Table ( filename=DBF_FILE, on_disk=True )

when i open DBF table (link below) it will not load all columns (only 47 instead of 58). If i specified column names, it deleted all data in DBF. I tried specify codepage, but it not helped. Im I missing something or only this DBF file have something wrong? Thanks

SFGX_test.zip

m0rgancz avatar May 12 '22 06:05 m0rgancz

It is partially a bug in the dbf code -- it should not be showing the fields marked as SYSTEM -- there are 11 such fields. dbf is expecting SYSTEM fields to be at the end of the record, which is why mingled SYSTEM fields are showing, and the last 11 fields are not.

Can you tell me why there are fields marked as SYSTEM? Typically those fields are solely for the use of the dbf program -- for example, if there are any fields that can be null, a _NULL C(x) SYSTEM BINARY field is added to keep track of which fields in a record are nulled.

ethanfurman avatar May 12 '22 17:05 ethanfurman