Minimize
08

Created with Beta 2 

 

In the last tutorial, I showed you how to create your first data transformation in SQL Server 2005 using SSIS. In this tutorial, we’re going to expand the last tutorial to add additional error handling to trap bad data from our source flat file. If you have not gone through the last tutorial, please do so you’ll be caught up with the basics. If you wish not to do that, you can download the last tutorial’s code to catch up in our download section. There is a download in our downloads section for this tutorial as well.

 

I actually encountered the error we’re going to be discussing while trying to produce the first tutorial. I had set the data of the quantity column to be a 2-byte integer, which cannot handle the summation of a few of the rows in our sample input file. This caused an error that became quite frustrating to troubleshoot so it sparked me to add the error handling we’re about to discuss.  After the very basic error handling was in place, the rows were transformed into the destination and the two bad rows, were outputted to an additional flat file with the error number. If you didn’t do this, then the entire package would fail.

 

It’s important to note that SSIS in SQL Server 2005 has lots of ways to handle error handling. We’re just going to explore one of those in this tutorial but I’ll surely expand this at a later date. Before we begin, let me refresh you want the SSIS package looked like from our last tutorial. The transformation essentially converted a 90,000 record flat file into a summary file that aggregated and grouped all the data by product. Here’s a screenshot of what mine looked like once it was executed:

bkDTSTutorial1-8.JPG

 

Pages: 1 of 3 Next Page

Comments

There are currently no comments, be the first to post one.

Post Comment

Only registered users may post comments.

LatestArticles Minimize
Changing Granularity of Leaf Level Calculations in SSAS Tabular by Jason Thomas

Finding Nearest Stores using SSRS Map Reports by Jason Thomas

Heat Maps for SSRS using Map Control by Jason Thomas

Parameters for Analysis Services Reporting: Introduction, Pt. 3 by William Pearson
BI Architect Bill Pearson continues an extended examination of parameterization within Analysis Services reports. In this, Part 3 of the article, we continue to get hands-on practice cr...

Parameters for Analysis Services Reporting: Introduction, Pt. 2 by William Pearson
BI Architect Bill Pearson continues an extended examination of parameterization within Analysis Services reports. In this, Part 2 of the article, we continue to get hands-on practice cr...

Using Annotation Tables in SSAS to Show Last Processed Time and Latest Data Updates as a Measure in a Cube by John Hall

Using Color in SSRS Charts by Melissa Coates
Effective data presentation techniques help users  interpret information quickly and reliably.  Layout, formatting, sizing, labeling, and other report elements may all be used to facilitate ...

Is TOAD faster than BIDS Query Builder? by John Hall

SSRS: Unexplained Warning “This field is missing from the returned result set from the data source” And Checking a Field for Null Exception by John Hall
If you ever see the warning message “This field is missing from the returned result set form the data source” and get unexplained #Errors in columns on your report it may be from SSAS not returning a ...

Beyond Excel pivot tables: Leveraging cube formulas with MDX by Javier Guillen
PowerPivot and DAX are a powerful technologies, but there is still a good amount of work that can be done with traditional cube functions. In its current version, PowerPivot lacks the concept of ...


Advertisement Minimize

Advertisement Minimize

Copyright 2004-2012 MSBICentral.com Terms Of Use Privacy Statement