SSIS Tutorial – Problem with Error Redirection

Platform: Win Server 2003 Enterprise Edition

SSIS Version: 9.00.1187.00

I’ve been working my way through the SSIS tutorials and have noticed a problem when trying to redirect Error Output in lesson 5 “Adding Error Flow Redirection”.

Having configured the redirection to the ErrorOutput.txt file and running the package, when I went to view the contents of the file, it was empty.

I then removed all but the Currency_BAD.txt data file and re-ran the package. This time the file contained the error row.

Next I returned the other data files, but introduced an error row in the Currency_VEB.txt data file (as this is the last file processed in the foreach loop). I ran the package and watched its progress. I could see that and error row was redirected for both the Currency_BAD.txt and Currency_VEB.txt files, but on completion the only entry in the ErrorOutput.txt file was that from the Currency_VEB.txt file.

So it would appear that the package as it iterates through the loop would overwrite the contents of the ErrorOutput.txt file even if no error were produced.

Is this a bug or am I missing something in setting up the test?

Additionally is there anyway of re-opening the “Configure Error Output” dialog box after its initial configuration?

Thanks in Advance.

Anto

[3541 byte] By [IrishAnto] at [2008-1-12]
# 1
To avoid overwriting the content of the ErrorOutput.txt file, you need to clear the check box, Overwrite data in the file, in the Flat File destination that the package uses to write the error data.
We will update the tutorial to call out this configuration step.

To open the Configure Error Output dialog box again, double-click the Lookup transformantion named Lookup Transfer Key, and the then in the Lookup Transformation Editor dialog box, click Configure Error Output.

Regards,
Marianne
SQL Server User Education

Marianne at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Documentation...
# 2
Thanks Marianne, it worked like a treat!
Anthony
IrishAnto at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Documentation...
# 3

Dear Marianne

There is another problem with the SSIS tutorial. Following is the Location of the Error:

LESSON: Adding Error Flow Redirection (lesson 5).
CLASS: ScriptMain.
METHOD: Public Override Sub Input0_ProcessInputRow(Byval Row as Input0Buffer)".
CODE: Row.ErrorDescription = Me.ComponentMetaData.GetErrorDescription(Row.ErrorCode).

The "Row" object doesn't have an ErrorCode member. I am getting an error when I try to pass Row.ErrorCode to the function GetErrorDescription. Help please...!

Sincerely,

Moshe

MosheCohen at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Documentation...
# 4

Dear Marianne

My bad. I just forgot to add the ErrorCode column in the previous step.

Sorry

MosheCohen at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Documentation...
# 5

Hey, my thanks as well. I got that empty error file and couldn't figure it out until I found this thread.

Camey at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Documentation...
# 6

Thank you, I got the same error. Now it works great!

Thanks again.

DaveLaFlamme at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Documentation...
# 7
I had the same problem and this thread straightened me out. It seems that this has been an issue since 2005 and the tutorial has not yet been amended. Microsoft, PLEASE AMEND so others don't waste their time like we all did.

Thanks

dfgdgdfggfghg55rrgr at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Documentation...
# 8

The omission of this optional step in the original topic was fixed in October, 2006, and the corrected version was published in the next download and Web release of Books Online.

You can see the new Step #13 in the online version of the topic at http://msdn2.microsoft.com/en-us/library/ms345336.aspx (with a typo in the word "optional", unfortunately).

It's always in the best interests of users to download the latest version of Books Online, as you will now be prompted by Windows Update. You can install the latest [English] version manually from http://www.microsoft.com/downloads/details.aspx?FamilyID=be6a2c5d-00df-4220-b133-29c1e0b6585f&DisplayLang=en.

Thanks,

-Doug

DouglasL at 2007-9-9 > top of Msdn Tech,SQL Server,SQL Server Documentation...

SQL Server

Site Classified