You need to ensure that the package error information is captured and written to the table

You are developing a SQL Server Integration Services (SSIS) package to load data into a
data warehouse. The package consists of several data flow tasks.
The package experiences intermittent errors in the data flow tasks.
If any data flow task fails, all package error information must be captured and written to a
SQL Server table by using an OLE DB connection manager.
You need to ensure that the package error information is captured and written to the table.
What should you do?

You are developing a SQL Server Integration Services (SSIS) package to load data into a
data warehouse. The package consists of several data flow tasks.
The package experiences intermittent errors in the data flow tasks.
If any data flow task fails, all package error information must be captured and written to a
SQL Server table by using an OLE DB connection manager.
You need to ensure that the package error information is captured and written to the table.
What should you do?

A.
Use an event handler for OnError for the package.

B.
Use an event handler for OnError for each data flow task.

C.
Use an event handler for OnTaskFailed for the package.

D.
View the job history for the SQL Server Agent job.

E.
View the All Messages subsection of the All Executions report for the package.

F.
Store the System::SourceID variable in the custom log table.

G.
Store the System::ServerExecutionID variable in the custom log table.

H.
Store the System::ExecutionInstanceGUID variable in the custom log table.

I.
Enable the SSIS log provider for SQL Server for OnError in the package control flow.

J.
Enable the SSIS log provider for SQL Server for OnTaskFailed in the package control
flow.
K.
Deploy the project by using dtutil.exe with the /COPY DTS option.
L.
Deploy the project by using dtutil.exe with the /COPY SQL option.
M.
Deploy the .ispac file by using the Integration Services Deployment Wizard.
N.
Create a SQL Server Agent job to execute the SSISDB.catalog.validate_project stored
procedure.
O.
Create a SQL Server Agent job to execute the SSISDB.catalog.validate_package stored
procedure.
P.
Create a SQL Server Agent job to execute the
SSISDB.catalog.create_execution and SSISDB.catalog.start_execution stored procedures.
Q.
Create a table to store error information. Create an error output on each data flow
destination that writes OnError event text to the table.
R.
Create a table to store error information. Create an error output on each data flow
destination that writes OnTaskFailed event text to the table.



Leave a Reply 2

Your email address will not be published. Required fields are marked *


cao

cao

J
If any data flow task fails –> OnTaskFailed in the package control flow

Henry Figgins

Henry Figgins

https://munishbansal.wordpress.com/2009/02/06/%E2%80%9Conerror%E2%80%9D-versus-%E2%80%9Contaskfailed%E2%80%9D-event-handler-in-ssis/

I think it’s ontaskfail also because the question clearly says “If any data flow task fails” so if an error causes a chain reaction of tasks to all fail, you need to have a log event for every one of those failures and only the ontaskfail will do it. Again, stupid question that only test are ability to dissect a question with unclear intent.