Guide · Crystal Reports
ODBC architecture mismatch and "Data source name not found" in Crystal Reports
Windows has two ODBC Administrators, one for 32-bit programs and one for 64-bit programs, and a data source made in one is invisible or broken in the other. When Sage, Crystal and Excel don't all agree on 32-bit or 64-bit, these are the two messages you see.
Updated
The short version.
A 32-bit program needs a 32-bit driver and a data source made in C:\Windows\SysWOW64\odbcad32.exe. A 64-bit program needs a 64-bit driver and a data source made in C:\Windows\System32\odbcad32.exe. Find out which your copy of Crystal is, then make or fix the data source in the matching administrator, with the exact name the report expects.
The messages
What each one means.
"The specified DSN contains an architecture mismatch between the Driver and Application"
The data source exists, but its driver is the other bitness from the program using it: a 32-bit program pointed at a 64-bit driver, or the reverse.
"Data source name not found and no default driver specified"
The program looked for the data source by name and didn't find it among the data sources for its bitness. It may exist only in the other administrator.
The data source isn't in Crystal's list
Same cause, no message. SAP notes that a data source created in the other bitness's ODBC Administrator simply isn't listed in Crystal.
Which is which
32-bit or 64-bit, program by program.
Crystal Reports designer
Crystal Reports 2013 and 2016 are 32-bit. Crystal Reports 2020 is 64-bit.
Sage 300 (Accpac)
Sage's installation guide says Sage 300 is a 32-bit program, so its data sources are set up in C:\Windows\SysWOW64\odbcad32.exe.
Sage 300 CRE (Timberline)
Version 24 added a 64-bit ODBC driver so Crystal Reports 2020 can be used; Sage tests that driver only with Crystal Reports 2020, and says nothing changes if you use Crystal Reports 2016 or earlier. From 26.1, reports run on a 64-bit Crystal runtime and custom reports on 32-bit data sources must be converted. Other tools that read Timberline data, such as Microsoft Office, can still need 32-bit data sources.
Sage 100
Sage 100 2026 is a 64-bit only application. Earlier versions could be installed as 32-bit or 64-bit, so check which one each workstation runs before you make a data source for it.
Fix it
Make the bitness match.
Find out which program is failing
The designer, the Sage screen that prints the report, Excel, or a scheduler. Each one can be a different bitness on the same computer.
Open the matching ODBC Administrator
C:\Windows\SysWOW64\odbcad32.exe for 32-bit programs, C:\Windows\System32\odbcad32.exe for 64-bit ones. The names are the wrong way round on purpose: Microsoft kept the 64-bit tools in System32.
Look for the exact name the report uses
The report asks for its data source by name. If it's missing here but present in the other administrator, create it here with the same name, using the driver of the matching bitness.
Check User DSNs too
Microsoft notes that User DSNs show up in both administrators, so one can look present and still belong to a driver of the other bitness. A System DSN made in the right administrator avoids that.
Test it, then run the report
Use the driver's own test button before blaming the report. If the data source tests fine and the report still fails, open it in the designer and check Database > Set Datasource Location.
Every workstation set up differently?
After an upgrade or a move to new PCs, I can go through which programs need which data sources and fix the reports that point at the wrong ones. You get a fixed price for it in writing before any work starts.
Tell Me What You're SeeingQuestions
32-bit and 64-bit questions.
- Can I just use the 64-bit version of everything?
- Only if every program that reads the data is 64-bit. Sage 300 is a 32-bit program, and on Sage 300 CRE, Sage notes that tools such as Microsoft Office can still need 32-bit data sources after the move to 64-bit Crystal.
- Why does the report work in the designer but not from Sage?
- The designer and the Sage program that prints the report can be different bitness, so each needs its own data source with the same name.
- Can one computer have both a 32-bit and a 64-bit data source with the same name?
- Yes. They live in separate administrators, and that's often the fix: one for each bitness, both pointing at the same data.
Contact
Tell me what you need.
Tell me about your project or the problem you need solved.
Email me at andy@codingandy.com, text or leave a voicemail at 612-249-6882, or use the form.