I'm trying to read rows of data from a csv and append them as records to an existing Visual FoxPro dbf. The existing Visual FoxPro dbf has many fields that are greater than 10 characters long, but this causes an error when using modules dbf or dbfpy.
Here is an example with a simplified version of the table structure:
import dbf
table=dbf.from_csv('seasdate.csv',field_names="zone_num season_code",dbf_type='Vfp')
#table to write to
table2=('temptable','zone_num C(2); season_code C(1)',dbf_type='Vfp')
for datum in table:
table2.append(datum)
This returns: 'dbf.ver_2.FieldSpecError: Maximum field name length is 10. 'season_code' is 11 characters long.'
I know it is possible to have a field name greater than 10 characters long in a Vfp table because, as I mentioned, the table I ultimately will append to already exists. Any help is greatly appreciated!