I used this guide to run the following powershell in a SSIS Execute SQL Task:
param (
[string]$path = ""
)
cls
$data = gc $path
foreach ($line in $data){
"Processing: $($line.Substring(0,10))"
if ($line.Length -ne 512){
throw "Ragged File"
}
else {
continue
}
}
Unfortunately, the task does not respect the throw. It will simply move past it and consider the task successful. Any help would be appreciated.
