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

SSIS 2014 Not logging error thrown by a task

$
0
0

I have been using SSIS 2008 until recently and moved to 2014 and are doing testing to make sure everything works correctly. I did not upgrade the packages, but I am running the packages designed in 2008 directly in 2014 SQL Servers.

All the functionality is working correctly except for error logging.

Ex: In 2008, if there is an issue with the file that I am processing I get the log message "The file has only 5 columns, expected 6".

In 2014, for the same issue all I get is "Exception has been thrown by the target of an invocation.

The custom error message I throw in the validation is being caught by the onerror event handler to and logged as required. Is there any specific change required in 2014 to get the correct error message?

In the onerror event handler the error message is being read from System:ErrorDescription property.

Thanks,

Sandeep



Viewing all articles
Browse latest Browse all 24688

Trending Articles



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