Skip Ribbon Commands
Skip to main content
Navigate Up
Sign In
SharePoint By Bugday > Posts > How to: Load data into SharePoint 2010 using SQL Server Integration Services
February 08
How to: Load data into SharePoint 2010 using SQL Server Integration Services

Today on a demo i showed how to use the SharePoint List Source and Destination Adapters to load data into SharePoint from SQL Server.

Start by downloading the SSIS SharePoint adapter:

SharePoint List Source and Destination

Now start Business Intelligence Development Studio(BIDS) and choose to create a new SSIS Project:

image

Create a new Data Flow Task:

image

Drop a OLE DB Source and a SharePoint List Desination to the surface:

image

Configure the OLE DB Source to your SQL Database:

image

image

Now, configure your SharePoint List Destination like this:

image

Make sure that your column mappings look like this:’

image

Also make sure that the two shapes are connected.

I just created a list called “Sales Customers” in a SharePoint site and added list columns list this:

image

Now execute the package:

image

and watch the process:

image

image

And see how the data is transformed into a SharePoint list:

image

A really nice feature to get data into a SharePoint List using SSIS!

Comments

Mr.Ramesh

Edit
very nice article
 on 5/26/2011 10:30 AM

Thanks!

Thanks for the comment!
Daniel Bugday on 5/26/2011 1:35 PM

Re: How to: Load data into SharePoint 2010 using SQL Server Integration Services

Edit
Hello,

I am tryng to use this document but ion the Advanced Editor for Sharepoint List destination I don't have the Column Mappings tab?? I have Components Properties, Input Columns, Input and Output Properties!!! I cannot get the column mapping.
Also should the "Sales Customer" List be created in Sharepoint earlier than the Acanced Editor for Sharepoint List Destination to be able to use it?

Thanks,
Dom
 on 7/21/2011 1:37 AM

Thanks!

Edit
Better now after doing several refresh the Column Mappings appear on the Avanced Editor for SharePoint List destinationnow executing the package... with errors
SSIS package "Package.dtsx" starting.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Information: 0x4004300A at Data Flow Task, SSIS.Pipeline: Validation phase is beginning.
Warning: 0x80049304 at Data Flow Task, SSIS.Pipeline: Warning: Could not open global shared memory to communicate with performance DLL; data flow performance counters are not available.  To resolve, run this package as an administrator, or on the system's console.
Information: 0x40043006 at Data Flow Task, SSIS.Pipeline: Prepare for Execute phase is beginning.
Information: 0x40043007 at Data Flow Task, SSIS.Pipeline: Pre-Execute phase is beginning.
Information: 0x4004300C at Data Flow Task, SSIS.Pipeline: Execute phase is beginning.
Information: 0x0 at Data Flow Task, SharePoint List Destination: Affected 0 records in list 'servers inventory SQL' at 'http://teams.com/server/ServerDBs'. Elapsed time is 1533ms
Error: 0x0 at Data Flow Task, SharePoint List Destination: Error on row ID="1": 0x81020016 - List item referred to in the request does not exist.
Error: 0xC0047062 at Data Flow Task, SharePoint List Destination [173]: Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.PipelineProcessException: Errors detected in this component - see SSIS Errors
   at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListDestination.ProcessInput(Int32 inputID, PipelineBuffer buffer)
   at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostProcessInput(IDTSManagedComponentWrapper100 wrapper, Int32 inputID, IDTSBuffer100 pDTSBuffer, IntPtr bufferWirePacket)
Error: 0xC0047022 at Data Flow Task, SSIS.Pipeline: SSIS Error Code DTS_E_PROCESSINPUTFAILED.  The ProcessInput method on component "SharePoint List Destination" (173) failed with error code 0x80131500 while processing input "Component Input" (181). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running.  There may be error messages posted before this with more information about the failure.
Information: 0x40043008 at Data Flow Task, SSIS.Pipeline: Post Execute phase is beginning.
Information: 0x4004300B at Data Flow Task, SSIS.Pipeline: "component "SharePoint List Destination" (173)" wrote 0 rows.
Information: 0x40043009 at Data Flow Task, SSIS.Pipeline: Cleanup phase is beginning.
Task failed: Data Flow Task
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (3) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package "Package.dtsx" finished: Failure.
in progress...

Thanks,
Dom
 on 7/21/2011 2:19 AM

No Column mapping Tab in Sharepoint List Destination

Edit
Hello,

I was following this article but it seems I miss something as the second tab in the Data Flow > Sharepoint List Destination is Input Colums not Column Mappings???
What is missing?
The SharePoint List Source and Destination have been installed and chosen from the toolbiox...
Thanks,
Dom

 on 7/22/2011 11:04 PM

Strange

Edit
again I had to run the package make it failed and the column mapping appears strange...
 on 7/22/2011 11:06 PM

List does not exist

Edit
and back to the same error List item referred in the request does not exist!!!
 on 7/22/2011 11:08 PM

site List not found???

Edit
Apparently if I change the SiteListName in the Advanced Editor it fails at this point... so this seems to me that the list is correct  but something is missing when executing the package... could it be an access issue?
the site always request authenticationis it possible to set a connection to the site or override this setting we have?
thanks,
DOm
 on 7/22/2011 11:13 PM

site List not found???

Edit
Apparently if I change the SiteListName in the Advanced Editor it fails at this point... so this seems to me that the list is correct  but something is missing when executing the package... could it be an access issue?
the site always request authenticationis it possible to set a connection to the site or override this setting we have?
thanks,
DOm
 on 7/23/2011 1:03 AM

Issues

Edit
Hello everyone, I see there are some issues / concerns. Please post any issues to the CodePlex site for this component.  I'm sure Daniel would love to answer all of these questions, but they will get more eyes over there :)

As for the list item referred to not existing, I added a seciton to the FAQ for that for you.

For the authentication, use the Beta adapters (I'm now looking at wrapping up any remaining issues and releasing something again)  -- you can give it a login or use credentials you store in SQL Server. 
 on 7/28/2011 6:20 PM
1 - 10Next

Add Comment

Items on this list require content approval. Your submission will not appear in public views until approved by someone with proper rights. More information on content approval.

Title


Body *


E-Mail *


TodayIs *


What's today's abbreviated value(DDD)

Attachments