Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How I fixed the "The specified DSN contains an architecture mismatch" error

Community Beginner ,
Jul 18, 2025 Jul 18, 2025

I got the infamous architecture mismatch trying to set up an ODBC Data Source from Cold Fusion(2011) to an AS400 data source(1st screentshot).

Since it took me two days to track this one down I thought I'd pay it forward by showing you how I fixed it in the hopes of saving someone some time in the future.

I tried many different fixes to match architectures thinking I had the 32 bit version of the ODBC driver vs the 64 bit version and vice versa. I have both, it didn't matter.

The problem was in the Windows Registry, specifically the data source HAS TO HAVE the same name across 32 and 64 bit ODBC entries for it(2nd and 3rd screenshots).

 

Stack Trace:

Connection verification failed for data source: AS400
java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error: The specified DSN contains an architecture mismatch between the Driver and Application
The root cause was that: java.sql.SQLException: [Macromedia][SequeLink JDBC Driver][ODBC Socket]internal error: The specified DSN contains an architecture mismatch between the Driver and Application

 

MismatchError.png

AS400Mispelled.pngFixed.png

172
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jul 19, 2025 Jul 19, 2025
LATEST

Congratulations on resolving the issue, and thanks for sharing your solution. It will certainly help someone else in future.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources