R
R
Roman Dolgin2018-04-07 17:57:46
Data recovery
Roman Dolgin, 2018-04-07 17:57:46

What could be the reasons for the unreadability of the dbf file?

The message "Error #: -200 File is not a Data File" pops up, a system window, and not from 1C.
The code is as follows:
PathToFile = ShortLP(PathToFile);
FileDBF = New XBase; // create a new object
FileDBF.Encoding=EncodingXBase.OEM;
FileDBF.OpenFile(PathToFile,,True); // open file
FileDBF.First(); // sets the cursor to the first record
While NOT FileDBF.AtEnd() Loop
// actions with data
here FileDBF.Next(); //move cursor further
EndCycle;

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Sasha Milyutin, 2018-04-15
@milyutin1

It looks like a broken file or its absence as such. Check the correct path to the file, and then check the file itself. I can also offer a service to restore dbf online

K
kalapanga, 2018-04-07
@kalapanga

Does the file name follow the 8.3 format?

R
res2001, 2018-04-07
@res2001

Broken file, i.e. its structure is broken. Open with any DBF editor/viewer, even with the same excel as shurshur suggested , but better with something more specialized (CDBF is a good utility for this purpose).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question