Tech Blog · February 26, 2023
Tech Tip: Handling the “Exception has been thrown by the target of an invocation” error in SSIS
When executing the SSIS package the Script Task throws the following exception: Which is meaningless. How can i read the real error message? Is a general exception that is thrown by Script Task when an error occurred. To read the main error message you can add a try catch clause into your code and use Dts.FireError() method to throw the real exception. Tech Tip: Handling the “Exception has been thrown…