Skip to content
Advertisement

Conditional Data Validation In SSIS

I have a situation where table has two main columns DataFieldName & DataFieldValue along with some identifier such as OrderNumber.

Now in DataFieldName there is value named as “OrderDate” and respective dates are coming in DataFieldValue.

But some of the value for “OrderDate” are coming as non date values. I need to validate such non date value based on the condition where DataFieldName has value as “OrderDate” then validate the DataFieldValue for valid date in SSIS.

Advertisement

Answer

You can split your data using a Conditional Split :

enter image description here

or a query with a condition if you are using SQL :

If you are using SQL Server :

If you are using Oracle :

Or, you can use a Data Conversion Transformation component :

enter image description here

Then you can redirect the output to a flat file for example : enter image description here

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement