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

Script task variable value is not getting printed in the output file

$
0
0

SSIS package has been built to generate data from SQL DB to a flat file. After generating the file an audit information should get printed at the end of the file stating record count of the rows loaded.

The output would be as follows:

EmpID|EmpName|EmpLocation

10021|Anna|Frankfurt

10022|Bob|Paris

10023|Rene|London

Audit Info|RecordCnt=3.

To arrive at the above requirement, I created a variable and using that in row count transformation and then calling the variable in the Script Task just to print the value at the end of the file.Now this approach is working in many servers when I execute the package through SSDT or Integration Services Catalogs.Only in few servers , it is not working when I tried deploying the package through Integration Services Catalogs.The file gets generated with 0 as RecordCount value when there are rows generated in the file.

Also when I run the same package through SSDT in the same server, it is working fine again.

Could it be related to any versioning issue or any other suggestion on this is very much appreciable.



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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