Unauthorised 401 error while connecting to SharePoint within SSIS if DTexec used from remote RRS feed

  • Question

  • 401 Unauthorized - Connecting to SharePoint from SSIS only if package executed using DTexec from remote server

    Looks like from DTexec is using anonymous access instead integrated authentication

    Need help

    Thursday, October 10, 2019 3:05 PM

All replies

  • Hi Harish,

    Remote is a broad term.

    Are you able to access it programmatically without SSIS?

    It would help more if you could post how to reproduce the issue.




    Thursday, October 10, 2019 3:44 PM
  • Hi Harish Kumar,

    Please make sure you have the permission to access remote server.

    Please share more error messages about your package.

    The following link will be helpful:

    How to connect to a remote SQL Server

    Best Regards,


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact

    Friday, October 11, 2019 6:58 AM
  • Hi Arthur,

    I have a deployed SSIS packages to SERVER1 and I have batch files(with DTEXEC commands) in SERVER2.

    Success case - Manual execution of packages using SSMS within SERVER1(SSIS) connects to SharePoint and downloads a file.

    Failure case - Created a batch file in SERVER2 to execute package using DTEXEC command which is able to run the package but fails to authenticate to SharePoint and download a file.

    Error - 401 Unauthorized

    Hope it helps!


    Friday, October 11, 2019 12:12 PM
  • Hi Harish,

    Use a proxy to run the package when scheduled. Mind, this proxy needs to be able to connect to SharePoint.




    Friday, October 11, 2019 1:15 PM