Exercise: Import Excel data, redirecting data conversion errors

This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

The answer to the exercise will be included and explained if you attend the Wise Owl course listed below!

Category ==> SSIS Integration Services  (18 exercises)
Topic ==> Managing errors  (2 exercises)
Level ==> Relatively easy
Course ==> Integration Services
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help).

You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

Run the script in the above folder in SQL Server Management Studio to create a table of 4 Bushtucker Trial menu items.

Create a package which tries to import additional items from the Excel workbook above into this table:

Import package

The data flow task consists of an Excel source, a data conversion task, an OLEDB destination and a Union All destination.  You should add a data viewer to see redirected errors.


You should configure the error output for the data conversion task to redirect errors.

When you run this package, you should see two errors in the data viewer:

The two errors

The two data conversion errors - SSIS can't convert Seven and Nine into integers.

Test that your package has added some (but not all) rows to the tblBushTuckerItem table, then close it down.

This page has 0 threads Add post