I have a SQL Server Agent job with two steps:
Executes an SSIS package with a task for importing a CSV and another task for sending an email saying that the import was successful. The step's On Failure action is set to Quit the job reporting failure. The package source is
File System
.WIth tsql, updates a table saying that DTS package executed correctly.
When I run the dtsx package manually, the job fails with the import and the email is never sent.
When SQL Server Agent executes the job, it says that the first step ran successfully (the package) and then runs the 2nd step which updates the table. The email is not sent, so that's why I know it failed, but the table is updated.
Why doesn't SQL Server Agent reflect that the SSIS Job failed?
[SSISDB].[catalog].[executions]
is empty and returns 0 rows.
The SQL Server Agent job history says that the job was successful.