dbTalk Databases Forums  

SSIS: Data Conversion truncation, failing the data flow after redirectingthe rows

microsoft.public.sqlserver.dts microsoft.public.sqlserver.dts


Discuss SSIS: Data Conversion truncation, failing the data flow after redirectingthe rows in the microsoft.public.sqlserver.dts forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alessandro Riolo
 
Posts: n/a

Default SSIS: Data Conversion truncation, failing the data flow after redirectingthe rows - 05-23-2006 , 08:49 AM







I have a data conversion which redirect truncated rows to a recordset.
What in reality I would like to achieve is to "fail the component" after
redirecting the rows. That is, I am insterested to know which rows are
causing the truncation, but when this happens, I would like to roll back
the package execution. I am achieving it through a script component
(using FireError), but it doesn't look that great solution.
Anyone has got a better idea?

--
ale
http://www.riolo.org

Reply With Quote
  #2  
Old   
Alessandro Riolo
 
Posts: n/a

Default Re: SSIS: Data Conversion truncation, failing the data flow afterredirecting the rows - 05-23-2006 , 09:00 AM






Alessandro Riolo wrote:
Quote:
Anyone has got a better idea?
Another approach I am using "successfully" is to double the Data
Conversion transformations, that is, to redirect the Data Conversion
error output to another Data Conversion transformation, cloned from the
original one, but with fail component on truncation instead of redirect row.

--
ale
http://www.riolo.org




Reply With Quote
  #3  
Old   
Allan Mitchell
 
Posts: n/a

Default Re: SSIS: Data Conversion truncation, failing the data flow after redirecting the rows - 05-25-2006 , 04:26 AM



Hello Alessandro,


Put the data flow task in a Sequence container and make the sequence container
start a transaction.

What is you had a RowCount transform on the redirect path. In the control
flow after the Datapump you test the row count in an expression on the workflow.
This will lead to a Script task on the path that tests whether there were
Quote:
0 rows that flowed down the path In the script component you fail the task
and the transaction rolls back.



Allan Mitchell
www.SQLDTS.com
www.SQLIS.com
www.Konesans.com

Quote:
I have a data conversion which redirect truncated rows to a recordset.
What in reality I would like to achieve is to "fail the component"
after
redirecting the rows. That is, I am insterested to know which rows
are
causing the truncation, but when this happens, I would like to roll
back
the package execution. I am achieving it through a script component
(using FireError), but it doesn't look that great solution.
Anyone has got a better idea?



Reply With Quote
  #4  
Old   
Alessandro Riolo
 
Posts: n/a

Default Re: SSIS: Data Conversion truncation, failing the data flow afterredirecting the rows - 06-01-2006 , 10:35 AM



Allan Mitchell wrote:
Quote:
Put the data flow task in a Sequence container and make the sequence
container start a transaction.
I failed to mention it was already in a Sequence container, anyway thank
nonetheless.

--
ale
http://www.riolo.org


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.