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

ssis :splitting the control flow and validation error

$
0
0

hello everyone, 

I'm stuck with this problem.

My ssis package imports some xls files into an sql table for about 16months. Everything was fine until someone added a (missing) column in the xls file. I still need to be able to import both old and new files. So In my loopbox I added a script that returns the file.creationdate. Following this script I both the old and the new dataflow. The old one to manage the 10 columns files and the new one for the 11columns ones.  I added a precedence constrain on both green arrows. with this kind of expression: (year(@[User::FileCreationDate])==2013&& month( @[User::FileCreationDate])>4) and !(year(@[User::FileCreationDate])==2013 && month( @[User::FileCreationDate])>4) for respectivley the new and the old files.

When I run this, the script return the date. the Precedence constraint works too but as soon as I read the first file (an old one) I receive an error form the new dataflow :

Error: There were errors during task validation.
[SSIS.Pipeline] Error: "Medifarma" failed validation and returned validation status "VS_NEEDSNEWMETADATA".

Medifarma is the xls Source componant and I did put the delay validation to true. 

i'm working with the sql 2008r2 and i'm really out of idea.

Could someone help ?

thank you in advance.

fred


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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