Am trying to do something like this.
[Part Time Zone] == "CST" ? DATEADD("hh",1,(DT_DBTIME)[Part Start Date]) :
([Part Time Zone] == "MST" ?
DATEADD("hh",2,(DT_DBTIME)[Part Start Date]) : DATEADD("hh",3,(DT_DBTIME)
[Part Time Zone]))
where [Part Time Zone] is String field.
Getting the following error
[Derived Column [2]] Error: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR.
The "Derived Column" failed because error code 0xC0049063 occurred, and the error row disposition on "Derived Column.Inputs[Derived Column Input].Columns[Part Start Date]" specifies failure on error. An error occurred on the specified object of the specified component. There may be error messages posted before this with more information about the failure.[SSIS.Pipeline] Error: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component "Derived Column" (2) failed with error code 0xC0209029 while processing input "Derived Column Input" (3). The identified component returned an error from the ProcessInput method. The error is specific to the component, but the error is fatal and will cause the Data Flow task to stop running. There may be error messages posted before this with more information about the failure.