79377194

Date: 2025-01-22 09:47:11
Score: 0.5
Natty:
Report link

Thanks for your answers, the idea is indeed running the package synchronously and also ending with a query to extract the treatment's status (instead of ending with a systematic success), the query is as follows :

IF 7 <> (SELECT [status] FROM [SSISDB].[catalog].[executions] WHERE execution_id = @executionID)
BEGIN
declare @var_log nvarchar(1000)
select top 1 @var_log = message from [SSISDB].[catalog].[event_messages] where operation_id = @executionID and event_name = 'OnError'
RAISERROR(@var_log, 16, 1)
END

Reasons:
  • Blacklisted phrase (0.5): Thanks
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: blofeld _