Search code examples
sql-serverssisetlsql-server-2017sql-agent-job

SSIS, fire events and the execution reports


I have an SSIS package with a script task that fires various information and warning messages, for example:

Dts.Events.FireWarning(1, taskName, "Common Version API URL not specified", null, 0);

This works fine on my laptop where I have it running in SQL Server 2017. The message gets written to the Execution report just as desired:

enter image description here

However, when I deploy and run the package in our test environment, which is using SQL Server 2016, the execution report does not show any of my messages. Could this be due to some setting that I'm not aware of or is this maybe a feature that is missing in SQL Server 2016?


Solution

  • I don't actually have an answer for my question, however, my problem has been solved. The Dts.Events.FireWarning etc. now works as expected, i.e.my messages are included in the execution report in our test (and production) environments. As I have not changed any code I can only assume that something in those environments have changed. I've asked if it has been any update that could explain this but I've not received any satisfying answer.