DataFlex migration — old character-mode and Visual DataFlex apps, off the embedded database
DataFlex is alive and on version 25. The system your business runs is usually much older: a character-mode DataFlex 3.x program compiled to .FLX files long ago, or a Visual DataFlex build nobody has opened since its developer left, keeping everything in .DAT, .TAG and .K files listed in FILELIST.CFG. We move it to SQL and .NET, or keep it running while you decide, and prove the numbers did not move.
Invoice # : 0031874 Customer : PRAIRIE SEED SUPPLY Inv date : 11/24/26 Lines : 7 Total : 3,918.40
Invoice 0031874 PARITY ✓
Illustrative screens, fictional data. Somebody has to decide which century the “26” on the left belongs to. Current DataFlex does it with an epoch setting (30 by default); the new system has to make the same call the old one did, or an invoice quietly moves a hundred years.
The situation you are probably in
Data Access Corporation was founded in Miami in 1976 and has used the DataFlex name since 1981. The character-mode product ran on DOS and a long list of Unix systems, with 3.0 in 1991 and 3.2 as the last of the line. From version 4 in 1996 the Windows product was called Visual DataFlex; today it is plain DataFlex again, from Data Access Worldwide, at 25.0 since June 2025. The vendor’s own download pages tell anyone still on character-mode DOS to talk about migrating. Most of these apps are somewhere near that:
- Every table is a set of files sharing one root name:
.DATfor the data (with the structure in its header),.TAGfor the column names,.K1to.K15for indexes, sometimes a.VLDholding compressed data and a.HDRcopy of the header. Somebody copying “just the .DAT files” to a new server takes the data and leaves the parts needed to repair it. - Programs do not open tables by name. The compiler swaps names for filelist numbers taken from the
.FDfiles, and at runtime those numbers are looked up inFILELIST.CFG. Before DataFlex 3.2 and Visual DataFlex 7 a filelist held only 255 slots, so older systems often juggle several. Two filelists that disagree about table 27 produce a bug that looks exactly like corrupted data. - The embedded database has hard ceilings: 2 GB per table file, about 16.7 million rows, 255 columns, 15 indexes per table, 16 KB per record. A history or transaction table that has been growing since the nineties reaches 2 GB without much warning.
- Text is stored in the DOS (OEM) character set. Current DataFlex handles Unicode and its documentation says OEM tables should no longer be used; the OEM-to-ANSI conversion wizard changes data irreversibly, so it is not something to run on a Friday afternoon without a full copy.
- Compiled
.FLXprograms are tied to the runtime revision. Anything compiled with 3.1 or later will not run on an older runtime, and older programs need recompiling first. When the source has disappeared, the.FLXfiles can at least be decompiled; the runtime itself cannot.
How we migrate DataFlex systems
-
Assessment: map what you actually have
We inventory the code, data, reports, integrations and — crucially — which parts are still used. You get a written, risk-ranked migration roadmap at a fixed price, yours to keep whoever executes it.
-
Parity harness: capture today’s truth
Before any new code, we build an automated harness that runs your real workflows on the existing system and records the results — totals, calculated fields, rounding, sort orders. That becomes the contract the new system must satisfy; behaviour is preserved because it is tested, not assumed.
-
Data first, verifiably
A repeatable pipeline moves your data into SQL Server or PostgreSQL with counts and checksums on every run — encodings, null and date semantics, and any business logic hidden in indexes handled explicitly. The mirror runs from day one, so it is always fresh.
-
Rebuild in slices on .NET
Modules are rebuilt on .NET 8 against the mirrored data. Read-only functions (reports, lookups) move first for instant, low-risk value; write functions cut over one workflow at a time, each gated by parity. There is no weekend where everything switches at once.
-
Cutover with a way back
When the last write path passes parity, the old system becomes read-only, then an archive. You get the full parity report — evidence, not assurances — plus the documentation the legacy system never had.
What survives the migration
- Business rules validations, auto-numbering, what happens to the lines when a header is deleted, the posting logic at month-end. They are spread through the program code, and they get extracted and covered by tests before anything is rewritten.
- Your data, in the right characters OEM text converted to proper Unicode with every accented name checked, dates resolved with the epoch the old app actually used, and row counts and checksums per table on every run.
- Table relationships the parent-child links between tables become foreign keys in SQL, and the filelist numbering stops mattering to anyone.
- Reports and month-end figures identical totals, or a signed-off note explaining each difference and why.
What does not survive: the 2 GB ceiling hanging over your biggest table, and the reindex somebody has to remember after a hard crash.
Related
A character-mode DataFlex app hits the same Windows 11 walls as a Clipper program (emulators, printing, drive letters): see Clipper/xBase migration and why old DOS programs break on Windows 11. If the same business also runs DBF-based tools beside it, dBase/DBF migration covers that side.
Frequently asked questions
DataFlex is still a current product. Why not upgrade instead of migrating?
If you have DataFlex developers and the source, upgrading can be the sensible route, and the assessment will weigh it honestly. From character-mode 3.x, though, the user interface has to be rebuilt either way, since a Windows or web DataFlex app is a different program, and current DataFlex wants OEM tables converted. At that point the question is which platform you want to own for the next twenty years, not whether to touch the app.
Can we move the data to SQL Server first and keep the old program?
Current DataFlex ships Connectivity Kits that let an app work against SQL Server, Db2 and ODBC sources directly. Whether your old runtime can use one is the first thing we check. If it cannot, we still mirror the embedded tables to SQL nightly from day one, so reporting moves off the live files long before the program changes.
A reindex left a .BAD file. Can we delete it?
Not before someone looks at it. DataFlex writes rows it could not place, duplicates or damaged records, into rootname.BAD during a repair. Those are real rows that just left the table, and the parity harness counts them so nothing goes missing silently.
Accented names come out garbled when we export to Excel.
That is the OEM character set meeting a Windows program that expects something else. The data is usually fine. The fix belongs in the export path, mapped per code page, and it gets settled once for the migration rather than patched report by report.
The app still runs on a DOS box or an old Windows machine. How urgent is this?
Less urgent than the hardware makes it look, if you act before the machine dies. A character-mode DataFlex app can usually be kept running under an emulator on a new PC, and that containment is a legitimate first step. It also gives us a working system to build the parity harness against, which is much harder once the only copy has stopped booting.
Start with an assessment, not a rewrite.
Send us the stack you are on and what hurts. You get a written read of your data and code, the realistic options — including the ones that cost you less — and what parity testing would cover. Fixed price, agreed before we start.