I m new to SSIS 2012. I m using below method in SQL agent job step to run an SSIS pkg, but the same do not return error/failure when SSIS pkg errors and stops. Basically, I want job step to fail and throw proper error msg of SSIS error.
Declare @execution_id bigint
EXEC [SSISDB].[catalog].[create_execution] @package_name=N'EmailPaystoreETL.dtsx', @execution_id=@execution_id OUTPUT, @folder_name=N'PayrollReportETL', @project_name=N'PayrollETL', @use32bitruntime=False, @reference_id=Null
Select @execution_id
EXEC [SSISDB].[catalog].[set_execution_parameter_value] @execution_id, @object_type=50, @parameter_name=N'SYNCHRONIZED', @parameter_value=1; -- true
EXEC [SSISDB].[catalog].[start_execution] @execution_id
GO
Thanks
Mahesh