SSIS package that supposed to export data from SQL to Excel stopped working after upgrading to SQL2022

Alla 0 Reputation points
2024-10-30T19:46:03.3633333+00:00

Hello.

We have multiple SSIS packages that import data from Excel into SQL and export results back to Excel. All those SSIS packages were designed in VS 2012, connecting to SQL 2012 and Excel 2013, and we can run it successfully as a part of SQL job or as stand-alone package in Integration services. We have recently migrated some of those packages to a new SQL 2022 server, upgrading those to the latest version of VS 2022, for excel we are upgraded to Excel 2016. Upgraded package doesn't give us any errors, can connect to all sources from Visual Studio within the packages. We are able to run packages that import data from excel into sql 2022 - so all components are in place and functioning, but when we try to run SSIS that exports data into Excel - get no errors, package just fails. Tried to run it from Integration - same, no errors; tried logging errors - get message that package starts and then it bombs off without any reason. If I run the test package on the old server, pointing to a new server (exporting data from SQL 2022)- it runs fine under Integration or as a SQL job (runs under the same account, exports to the same location on a new server - so it can't be security/access issue). I had tried to export manually and record it as a new SSIS package - export run manually once, but when I try to run newly created package - get the same locking up, then bombing off with no errors on that package as well. What could be missing from SQL 2022 server or specific to VS2022 or Excel 2016? I tried every suggestion that I found on the web - nothing works. We had re-installed Integration and Excel multiple times already.

One difference that we noticed - on old server we can run package with browsing to the package in File Explorer, right click and run it with Integration Services Package Execution Utility, on new server that option doesn't work (utility is installed). Thanks!

Excel
Excel
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
1,984 questions
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,060 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,600 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Yitzhak Khabinsky 25,961 Reputation points
    2024-10-30T20:30:39.79+00:00

    Hi @Alla,

    Please check your Microsoft ACE Provider.

    The 'Microsoft.ACE.OLEDB.12.0' became deprecated. You need to start using its 'Microsoft.ACE.OLEDB.16.0' version.

    1 person found this answer helpful.

  2. Alla 0 Reputation points
    2024-10-31T12:14:31.39+00:00

    Sorry, confused. Are you saying that Ace.Oledb.16 doesn't work in VS 2022? Wasn't it your original question if we were using ver 16?


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.