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

Get File Properties Task and Precedence Constraints

$
0
0

I have an SSIS package which utilizes the File Properties task. I essentially need to check the size of a file. If the file is empty (size less than 1KB) then send an e-mail alerting to an empty file. If the file is greater than 1KB, then continue processing as usual.

I've created a user variable of type Int64 and assigned the name FileSize in Variables.

The Get File Size task needs to have twp precedence constraints - one for each condition. I've included a screen shot of the portion of the package containing the constraints:

I have two expressions. The first is for the Empty File alert: @[User::FileSize] <= 1000

The other is for the process as normal branch: @[User::FileSize] > 1000

Whenever I run the package, I get an error:

I have no idea why this would be failing with that type of error...??

I would think this would be the most basic expression, but I could be wrong

Any insights would be appreciated!!


A. M. Robinson


Viewing all articles
Browse latest Browse all 24688

Trending Articles



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