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

move flat file when missing a column

$
0
0

Hey guys,

I'm kinda stuck with my project I'm working on.

I will be receiving multiple flat file CSVs a week and in the best case scenario all of them will have 4 columns so my package should run without any problems then.

But ofcourse it can happen that the feeder is missing a column, when this happens i want the Dataflow task to fail and move the file to another directory.

So I made a simple dataflow task where i Import from CSV => Database and in the Control i connected the Data flow task to a Move File task + i changed the green arrow between them to a red ( failure one) .

I thought this solution would work, so for testing I removed a column from my input CSV and ran the package. For some reason my data flow task succeeds but nothing gets imported in the database.

What am I doing wrong here ? Why is the Data flow task not failing and the Move file task kicking in ?

Kind regards


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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