Subject |
Re: Database Engine Error: Corrupt file - other than header. |
From |
Pieter <pieter@pret.co.za> |
Date |
Tue, 3 Jun 2025 03:48:13 +0200 |
Newsgroups |
dbase.getting-started |
On 15/05/2025 18:25, Ruth Bromer wrote:
> 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
I have a client that had the same error message (randomly) and it was
because she was on a wi-fi connection to the server. After we changed
the connection through a network cable, the error disappeared.
|
|