Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8980177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T20:00:56+00:00 2026-06-15T20:00:56+00:00

I got this error while debugging in SSIS: Error: 0xC0049064 at Data Flow Task,

  • 0

I got this error while debugging in SSIS:

Error: 0xC0049064 at Data Flow Task, Derived Column [70]: An error occurred while attempting to perform a type cast.
Error: 0xC0209029 at Data Flow Task, Derived Column [70]: SSIS Error Code DTS_E_INDUCEDTRANSFORMFAILUREONERROR. The “component “Derived Column” (70)” failed because error code 0xC0049064 occurred, and the error row disposition on “output column “EVENT_DT” (118)” 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.
Error: 0xC0047022 at Data Flow Task: SSIS Error Code DTS_E_PROCESSINPUTFAILED. The ProcessInput method on component “Derived Column” (70) failed with error code 0xC0209029. 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.
Error: 0xC0047021 at Data Flow Task: SSIS Error Code DTS_E_THREADFAILED. Thread “WorkThread0” has exited with error code 0xC0209029. There may be error messages posted before this with more information on why the thread has exited.
Information: 0x40043008 at Data Flow Task, DTS.Pipeline: Post Execute phase is beginning.
Information: 0x40043009 at Data Flow Task, DTS.Pipeline: Cleanup phase is beginning.
Information: 0x4004300B at Data Flow Task, DTS.Pipeline: “component “DataReaderDest” (143)” wrote 0 rows.
Task failed: Data Flow Task
Warning: 0x80019002 at Package: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED. The Execution method succeeded, but the number of errors raised (4) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.
SSIS package “Package.dtsx” finished: Failure.

My expression is:

(DT_DBTIMESTAMP)(SUBSTRING(EVENT_D,7,4) + "-" + 
 SUBSTRING(EVENT_D,4,2) + "-" + 
 SUBSTRING(EVENT_D,1,2) + EVENT_T)

My original data are in this sequence:

EVENT_D: DD/MM/YYYY
EVENT_T: HH:MM:SS

Any help are appreciated. I have try changing my expression numerous time but still fails.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T20:00:57+00:00Added an answer on June 15, 2026 at 8:00 pm

    I suspect that there are some date time values which are not in the correct format .So SSIS throws error while parsing them .

    In order to find to incorrect date time value from your source table try to redirect the error rows from Derived Transformation and check the incorrect data using a data viewer

    The problem with substring values are if the string data are not in the correct format then the Derived Transformation will throw error .

    1. In your OLEDB source component try to write the sql and get only the correct datetime values

    Ex:

     Select col1,
            case when isDate(EVENT_D) = 1 THEN EVENT_D ELSE NULL 
            END as [EVENT_D],
            Col2,EVENT_T,other columns
            from yourTable
    

    in your derived transformations use your code to convert into DT_DBTIMESTAMP type .

    1. Else Try to use a script component and parse the EVENT_D and EVENT_T values and convert to datetime values. No need to use Derived column with all those substring values

      create a New Output column Valid_D with the datatype as DT_DBTIMESTAMP.Select the 2 input columns EVENT_D and EVENT_T in the available input Columns in Script Transformation Editor

    VB.NET code

        Dim result As DateTime
    
    If DateTime.TryParseExact(Row.EVENT_D, "dd/MM/yyyy", 
                              Nothing, Globalization.DateTimeStyles.None, result) Then
         Row.ValidD = result.Add (TimeSpan .Parse (Row.EventT ) );
    End If
    

    C# code

    DateTime result;
        if (DateTime.TryParseExact(Row.EventD, "dd/MM/yyyy",
            CultureInfo.InvariantCulture, DateTimeStyles.None,out result))
        {
             Row.ValidD = result.Add (TimeSpan .Parse (Row.EventT ) );
        }
    

    Now you can use Valid_D column which is of DateTime type in your subsequent transformations

    Update : The problem with your syntax is you cannot add date+ time in the string format . You need to parse individually both EVENT_D and EVENT_T .

    (DT_DBTIMESTAMP)(SUBSTRING(EVENT_D,7,4) + "-" + 
     SUBSTRING(EVENT_D,4,2) + "-" + 
     SUBSTRING(EVENT_D,1,2) + EVENT_T)
    
    So your syntax is not valid.
    

    The isDate function shows NULL for 30/04/2012 because as per MSDN

       The return value of ISDATE depends on the settings set by
       SET DATEFORMAT, SET LANGUAGE and Configure the default language
       Server Configuration Option. 
    

    but it returns 1 for the value 01/05/2012 and 02/05/2012 because it takes as MM/dd/YYYY
    so the 1st date is Jan 5th 2012 instead of May 1st 2012

    So the soultion is use script component and parse these values into valid date and time and then use it in your subsequent transformations .

    Please check my script transformation code above

    Update 2:
    

    I think your using SSIS 2005 .The code should be

      Public Overrides Sub Input0_ProcessInputRow(ByVal Row As Input0Buffer)
      Dim result As DateTime
      If DateTime.TryParseExact(Row.EVENTD, "dd/MM/yyyy", Nothing,    Globalization.DateTimeStyles.None, result) Then
      Row.ValidD = result.Add(TimeSpan.Parse(Row.EVENTT))
      End If
      End Sub
    

    after Script transformation ,you don’t need to use Derived component .The result obtained in the column Valid_D contains the valid value which is of datetime format

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I got this error An error occurred while parsing EntityName. Line 1, position 61.
I got this error A network-related or instace-specific error occurred while establishing a connection
i got this error while trying to rebind a grid: ( Parent page (
Got this error message while trying to load view: The model item passed into
Got this error message while trying to configure an entitydatasource in the designer: My
while doing LINQ I got this Error. Cannot implicitly convert type 'System.DateTime?' to 'System.DateTime'.
i have a problem while loading a UITableView on UITabBarController, i got this error
I am new to maven, while using mvn install I've got this error, any
Permission denied (publickey,keyboard-interactive) got this error while i am trying to cvs checkout from
I got this error while trying to compile the below code. I would like

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.