Subject Re: Database Engine Error: Corrupt file - other than header.
From Andy Taylor <andy.taylor.1959@outlook.com>
Date Fri, 16 May 2025 12:18:09 +0100
Newsgroups dbase.getting-started

[See answer in d.bug-reports, as Mervyn points out not actually a bug]
Andy

> I am getting the Corrupt file message when I run the AppendCompetitorARDF.prg program.  I've used it may times over many years and it's always worked.
>
> The program reads in the Competitor.csv file and fills the Competitor.dbf with all of the same fields as the csv file. The only changes I've made are some of the fields.  This program is what gets the data into the whole system for me to produce start lists, and other reports.
>
> I attached the csv file beginning with ardf2025 for reference since it has the header in it.
>
> I desperately need to get this program to work and I have no idea what is wrong. The place where the program stops is on the append.
>
> ? "Copying competitor data"
>        d = _app.databases[1]
>        d.emptyTable( "competitor" )
> use competitor exclusive
> append from competitor.csv delimited
> reindex
>
> Can anyone help me figure out what is wrong?  I am not very good with object oriented programming.  I can normally debug problems pretty well, but this has me stumped.
>
> Thanks for any help that you can give me.
> Ruth