I am applying the SharePoint List Source adapter in an SSIS package running under SQL Server 2008 R2. In this package the SharePoint List Source is located in a loop in which I am passing to it a Site List Name, Site List View Name, and a Site URL for nearly 30 different SharePoint sites. These are provided from a table, which are pulled from a SQL Task and provided to an expression applied by the SharePoint List Source. This works great for all but one of the sites, where the following error is returned.
[SharePoint List Source [1]] Error: Microsoft.SqlServer.Dts.Pipeline.DoesNotFitBufferException: The value is too large to fit in the column data area of the buffer.
at Microsoft.SqlServer.Dts.Pipeline.PipelineBuffer.SetString(Int32 columnIndex, String value)
at Microsoft.Samples.SqlServer.SSIS.SharePointListAdapters.SharePointListSource.PrimeOutput(Int32 outputs, Int32[] outputIDs, PipelineBuffer[] buffers)
at Microsoft.SqlServer.Dts.Pipeline.ManagedComponentHost.HostPrimeOutput(IDTSManagedComponentWrapper100 wrapper, Int32 outputs, Int32[] outputIDs, IDTSBuffer100[] buffers, IntPtr ppBufferWirePacket)
The number of sites being read from the table does not make any difference, the error appears for the same site even when it is the only one being read by the SSIS package.
I noticed in the Data Flow that is stops at 150 records with the problem site. Other sites are pulling more records, so I don't know if this is an issue. Also, I ran a test in which I hardcoded in the SiteListName, SiteListViewName and SiteURL for the problem site under the Component Properties tab. It connected with no problem and displayed the SharePoint fields under Column Mappings. I tried the most recent beta version of this adapter with the same error result listed above. I also tried filtering down the result set using a CamlQuery, which made the process run faster, but the same error still takes place.
Any ideas how to work around this buffer issue?
Thanks