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

SSIS Flat File Destination Not getting Truncation Errors

$
0
0

Forgive me if this has been answered but I have been searching quite a bit and have not found an answer.

I am trying to EXPORT data to a flat file that we will then send over to another system. As such, the flat file destination has a defined layout. It is a delimited file but then there are maximum lengths on some of the character data. I've created something like:

    OLE DB Source (command) --> Derived COlumn xform --> Flat file Destination 

And the flat file destination goes to a flat file connection manager. 

My problem is that I don't get errors that I would like to get when the length of a field is over the maximum of that specified in my flat file.

For example, in my final product (flat file), I have a column "Name". It needs to be at most 24 characters wide.  In my actual database, that same column (Name) is defined as 25 but our data is < 24.

To make it fail though, I tried making my "Name" column in my flatfile be 5 wide and I don't get an error. There's also no place really to trap that error that I can see. I know if I have a derived column, I can trap truncation errors going into those fields but fields that pass through to the final destination but are too long for the destination format seem to just go through with no warnings whatsoever.

I'm using 2005 (all we have, so that may be a limit.)

The above is a bit contrived, but the gist is that I need to be able to trap overflow at the END destination. I know I could "Derive" all of the columns and deal with it there but that seems a silly thing to have to do.

Thanks in advance!!!


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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