SSIS job fails when run as a scheduled job - access denied

Michael Harris 20 Reputation points
2025-05-08T19:01:33.9333333+00:00

I created a job to export 4 SQL 2019 tables to an Excel workbook using the Export Data task to create the SSIS package in SSMS. The process works fine in SSMS but when I run the created SSIS package in SQL Agent, it fails due to access denied. It seems like it happens in the Excel portion of the job. I've tried running as a command line using DTEXEC with the same result. I tried creating a proxy account but I'm not sure it is setup correctly. How can I get past the error?

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

Accepted answer
  1. Olaf Helper 46,791 Reputation points
    2025-05-09T05:15:35.85+00:00

    it fails due to access denied.

    By default a SQL Agent Job SSIS step runs under the Agent service account and by the error message this account don't have the permissions to access the Excel file.

    Grant permissions for that account or better use an Agent proxy account with e.g, your credentials, see

    Create a SQL Server Agent proxy

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.