Occasional errors connecting to Excel from SSMS and Visual Studio

Josh K 81 Reputation points
2021-02-09T20:04:41.07+00:00

I don't know if this is a SQL Server issue, an Office issue, a Windows issue or something else. Windows 10, Office Pro 2016, SQL Server 2016 using Management Studio 18 as a client, and Visual Studio 2012. Last year we modified our database access to use Windows authentication, using a Windows Service account. Along with that change I was instructed to open my SQL client and my Visual Studio SSIS tools by using “Run as a different user” so I can open them with that service account. Over the last few months I’ve had an intermittent issue (once or twice a week) where attempting to perform any task in the SQL client or Visual Studio that involves importing from or exporting to MS Excel results in the attached error, which can only be cleared by using Task Manager to force quit the application. In Visual Studio the error occurs when attempting to open any package that has an Excel connection manager in it, and it hangs on that validation step. The only way to resolve it is to perform a quick repair on MS Office. I have confirmed that this only happens if I use “run as a different user” to open my SQL client or Visual Studio. I’ve confirmed that the service account has the needed permissions on the program folders for MS Office, SQL Server Management Studio 18, and Visual Studio 2012.

65959-sql-server-and-visual-studio-error-message.png

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,578 questions
SQL Server Integration Services
SQL Server Integration Services
A Microsoft platform for building enterprise-level data integration and data transformations solutions.
2,451 questions
0 comments No comments
{count} votes

Accepted answer
  1. Yitzhak Khabinsky 24,936 Reputation points
    2021-03-02T20:56:38.74+00:00

    The crash always happens when opening an SSIS package, on the "Validating Excel Destination" step as the package opens.

    So, it is a design-time error.

    (1) Please try to set DelayValidation to True.
    delay-validation-properties-in-ssis

    (2) Additionally, there is a global setting in VS2019 to do the same:
    skip-validation-of-ssis-packages


5 additional answers

Sort by: Most helpful
  1. Monalv-MSFT 5,891 Reputation points
    2021-02-10T03:26:38.91+00:00

    Hi anonymous user-9165 ,

    May I know if you download and install Microsoft Access Database Engine?

    Please refer to the following links:
    1.Microsoft Access Database Engine 2016 Redistributable
    2.Installing the Microsoft.ACE.OLEDB.12.0 Provider for Both 64-bit and 32-bit Processing

    Best Regards,
    Mona

    ----------

    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


  2. Josh K 81 Reputation points
    2021-02-11T16:26:38.75+00:00

    Hi, Mona:

    Thanks, I just followed the instructions to install the 64-bit version. My OLE DB Provider is version 14, not 12. Does that matter?

    Unfortunately, this did not resolve my issue (even after a reboot).

    Thanks,

    Josh

    0 comments No comments

  3. Josh K 81 Reputation points
    2021-02-17T21:40:07.543+00:00

    Still needing help with this. Does it matter that Visual Studio is 2012 and SQL Server is 2016?


  4. Farhan Jamil 416 Reputation points
    2021-02-19T23:05:27.257+00:00

    Hello

    Please make sure that the deployment of excel is in 32 bit version as excel doesn't support 64 bit version deployment

    May be this may help .

    Farhan Jamil