Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

Why are trailing spaces being added to text columns of my OLE DB Source XLSX file?

$
0
0

I'm testing a very simple SSIS package in which I have an XLSX source (connection is OLE DB Source) with a Multicast destination.  I have a data viewer set in between the two transformations.

There is 1 column in the Excel source file with a data type of General that has a maximum of 30 characters.  Upon executing the package, I copied the data from the data viewer and noticed every value in the column in question has a length of 35 characters.  So SSIS is adding trailing spaces to whatever value is in the column.

For example:

"abcdef" becomes "abcdef                             "

Any ideas as to why those trailing spaces are being added?  I checked the source file and the trailing spaces are not there.  Please let me know if I can provide any additional information.


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>