Greeings,
I am using Visual Studio 2008 and currently have a package that works fine, until I add a certain date column to my script component (vb). There are 2 records in the source dataset that are null for this date (though all of the other columns have data that they still want to capture).
I noticed that if I simply delete these 2 rows (with the null date) in my source Excel file, that the package then runs just fine. The customer does not want me to discard records like this however, since they want to capture the other columns of data and ignore this date when it is missing.
Is there a way I can make my package work in spite of the occasional missing date(s)?
If it helps..... the name of the column (with the occasional nulls) I am adding is: EDDEPARTUREDATE
(If I remove this column or if I delete the rows in my source file with the null dates it works fine)
ith oFileStream .Write("STAGEDATA~" & Me.Variables.sFacility & "~" & Row.BILLINGID & "~" & sIndicator & "~" & "Core Measures" & _"~" & sIndicator & "~ED-TPT" & "~" & Row.ENCOUNTERDATE & "~" & Row.ARRIVALTIME & "~" & Row.EDDEPARTUREDATE & "~" & Row.EDDEPARTURETIME & _"~" & Row.EDARRIVALTODEPART & "~" & Row.MEDIANTIMETOEDDEPARTUREOP18A & "~" & Row.TIMETOEDDEPARTUREREPORTINGOP18B & "~" & _"~" & Row.TIMETOEDDEPARTUREOBSOP18C & "~" & Row.TIMETOEDDEPARTUREPSYCHOP18D & "~" & Row.TIMETOEDDEPARTURETRANSOP18E & "~" & _"~" & Row.DOORTODIAGNOSTICEVALOP20 & "~" & sNumerator & "~" & sDenominator & "~" & sOutlier & "~" & sValue & "~1~" & _"~" & "" & "~" & "" & "~" & "" & "~" & "" & "~" & "" & "~" & "" & "~" & "" & "~" & "" & "~") .WriteLine() End WithThanks!