SSIS package error: ERROR [IM014] [Microsoft][ODBC Driver Manager] The specified DSN contains an architecture mismatch between the Driver and Application

Marvin Xu 1 Reputation point
2022-11-04T15:32:35.64+00:00

Hi,
Please help me solve the below issue,

I use SSMS v17.8.1 to build a package; it runs successfully on SSMS, but fails when I create a SQL job to run it. It also fails when I use MS data tools to build a similar package.

My testing:
I used SQL 2017 Execute package Utility to run the package; there is no issue. I checked the ODBC drive, I use the 32-bit tool, and it works on MS Excel and Access, but not SS data tools "recently".
However, the package runs with no problem on my Win10 PC. but not MS 2019 server.

Environment,
data source: ODBC 32-bit driver

Data destination: MS server 2019, MS SQL 2019 Std, SSMS v 17.8.1, Visual Studio 15.9.50

SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,705 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ZoeHui-MSFT 41,496 Reputation points
    2022-11-07T02:18:52.033+00:00

    Hi @Marvin Xu ,

    fails when I create a SQL job to run it. It also fails when I use MS data tools to build a similar package.

    What's the error message?

    In the SQL Agent Jobs' configuration, the job step properties dialog: General > Advanced tab there is a checkbox labelled "32-bit runtime".

    Have you chosen this to run the package if you are using ODBC 32bit?

    There is a Run64bitRuntime property at the Project level in VS that defaulted to TRUE. You may set it to false.
    Regards,

    Zoe Hui


    If the answer is helpful, please click "Accept Answer" and upvote it.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.