Uploading file to SharePoint Document Library using SSIS

  • Hi all,

    I am sorry if this is already answered somewhere or does not belong to this forum (or worst to this site).

    How can I upload a file to SharePoint Document Library through SSIS?

    I could not find any built-in function in SSIS to do that task.

    Thanks before 🙂

  • A document library *should* be no different than a network share, except that you use an http address instead of a UNC address.

  • Hi ssills, thanks for replying.

    Do you know how to create (or get) UNC path from SharePoint Document Library?

  • I have a similar post to this but mine is reading a file. Anyway the UNC path would be something like this

    \\mysite.com\subsite\....\docLib\myfile.ext

    Do this through windows explorer to see if you can access the site. My problem has been authenticating when running the job, but I'm pretty sure this is a win 7/2008 issue.

  • The path in Explorer actually begins with http. It's easy enough to get: go to a document library, select Actions, then Open with Windows Explorer, and copy that address and past it into SSIS.

    For Sharepoint 2010, the Library tab on the ribbon bar has an icon for "Open with Explorer."

  • I have resolved my problem. I create custom console application to upload file to document library, and then execute it from SSIS via Execute Process Task.

    But I wonder, I have site with port 7777. So what exactly the UNC looks like?

    \\mysite:7777\folder\subfolder

    I tried and it fails to open.

  • ssills (2/25/2011)


    The path in Explorer actually begins with http. It's easy enough to get: go to a document library, select Actions, then Open with Windows Explorer, and copy that address and past it into SSIS.

    For Sharepoint 2010, the Library tab on the ribbon bar has an icon for "Open with Explorer."

    Have you ever done this and used that connection in SSIS? If so please explain exactly how.

  • Hi Tom, if you still having trouble, you can try my workaround it works perfectly.

    I found the code (of course I modified it for my case) on other site but forgot which one. You can try google it.

    EDIT:

    Sorry just noticed, in your case, you want to read file from document library. But anyway, I think you can try using custom console application (of course using C# or VB .NET) to read file and then copy it to local and finally do some logic to that local file.

  • With SQLs 2014-2016, is there a better (toolbox destination) way to upload a file to SP 2016 via SSIS?

Viewing 9 posts - 1 through 8 (of 8 total)

You must be logged in to reply to this topic. Login to reply