Share via

Deployed SSIS package has access denied to file directories and work fine in VS

Apostolu, Chris 0 Reputation points
2025-06-02T15:38:53.3733333+00:00

I’ve tested a couple of things out with different packages that have been deployed to SQL Server. I noticed that within the same package, I can have a script task which fails to connect to a file directory but I don’t have an issue with connecting a flat file data source task to the same directory. If I use a flat file destination task, that fails also. It sounds like something doesn’t have full permissions because the flat file source task just reads the file without issue. I run this in VS and there are no problems. when I check the logs of the deployed package it shows my id as the Executed As Name and the Caller Name. The network guys say that the ids being used have read/write access.

SQL Server Integration Services
0 comments No comments

1 answer

Sort by: Most helpful
  1. Deepesh Dhake 85 Reputation points
    2026-05-30T03:29:13.47+00:00

    It looks like the pattern you're describing is most likely a Kerberos double-hop issue rather than a permissions one.

    When the package runs on the SSIS Catalog, your credentials reach the SQL Server but aren't forwarded on to the file share. So the connection arrives there as the SSIS service account, not as you even though the SSISDB log shows your ID as the Executed As Name. That's why your account has access but it still fails.

    To confirm, you can have your Script Task log that shows the actual identity hitting the share.

    A quick test is to grant the SSIS service account read/write on the share. If that fixes it, the longer-term options are running the package through a SQL Agent Proxy account that has share access, or configuring constrained Kerberos delegation with help from your AD team.

    Was this answer helpful?


Your answer

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