SSIS Package writing to Excel file in Sharepoint

Sam Garth 26 Reputation points Microsoft Employee
2021-03-05T11:31:34.513+00:00

Hi

I have an SSIS package which will write data from a DB source onto an Excel file on the sharepoint share (\sharepoint\folder\file.xlsx).

This works fine through Visual Studio but fails when it is deployed to the SSIS Server and called from another SQL Server through a SQL Agent job it fails with

74832-image.png

The SQL Agent job runs as a service account. I have logged into the SSIS server as the service account and run the package manually and it works. Is this a double hop issue? Is it easy to fix?

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

2 answers

Sort by: Most helpful
  1. Olaf Helper 47,436 Reputation points
    2021-03-05T13:47:38.57+00:00

    Is this a double hop issue?

    No. Read the error message: Access denied, the Agent service account don't have permissions to access/write to SharePoint.

    Is it easy to fix?

    Yes, create a SQL Server Agent Proxy Account, e.g. with your AD credentials and use that one to execute the job step.


  2. Monalv-MSFT 5,926 Reputation points
    2021-03-08T02:46:02.903+00:00

    Hi @Anonymous ,

    May I know if you create a SQL Server Agent Proxy in the second SQL instance?

    Please refer to How to configure OData SSIS Connection for SharePoint Online.

    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.


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.