Error execute a SSIS Packed with SQL Agent

Wolfgang 0 Reputation points
2025-07-31T11:15:48.86+00:00
Hello, 
we have a very strange problem when executing an SSIS package with the SQL Agent.

The package has the following tasks for an Excel file:
1. Check file in the source path. 
2. Copy file to the destination path. 
3. Open file in the destination path. 
4. Rename first worksheet. 
5. Save File.  
6. Import file. 

When executed with the SQL Agent, tasks 1-5 are processed successfully.

An error is generated at step 6. If the package is executed in SMSS, all six tasks are completed successfully.

The permissions on the source and destination paths are the same; otherwise, the SQL Agent would not be able to copy, open, modify, and save the file.


Thanks in advance for your help.

SQL Server = 2017

Visual Studio = 2022 with the latest SSIS integration



grafik

grafik

on paths are the same; otherwise, the SQL Agent would not be able to copy, open, modify, and save the file.


SQL Server Integration Services
{count} votes

1 answer

Sort by: Most helpful
  1. Yitzhak Khabinsky 26,676 Reputation points
    2025-07-31T17:15:22+00:00

    Hi @Wolfgang,

    It is possible that you need to modify your Microsoft ACE Provider.

    Your screen shot shows "Microsoft Excel 2007-2010".

    Please try to modify it as one of the following options:

    • Microsoft Excel 2013
    • Microsoft Excel 2016

    Also, please issue the following command on the SSIS run-time server in SSMS, and share a screen shot of it:

    EXEC master.sys.sp_enum_oledb_providers;
    

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.