Share via

Pipline Failure

Ext.Chandan Kumar 0 Reputation points
2025-02-18T06:32:39.91+00:00

Failure happened on 'Source' side. ErrorCode=SqlOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A database operation failed with the following error: 'Conversion failed when converting date and/or time from character string.',Source=,''Type=System.Data.SqlClient.SqlException,Message=Conversion failed when converting date and/or time from character string.,Source=.Net SqlClient Data Provider,SqlErrorNumber=241,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=241,State=1,Message=Conversion failed when converting date and/or time from character string.,},],'

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


3 answers

Sort by: Most helpful
  1. Chandra Boorla 15,475 Reputation points Microsoft External Staff Moderator
    2025-02-20T10:03:09.9866667+00:00

    @Ext.Chandan Kumar

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to accept the answer.

    Issue:

    Failure happened on 'Source' side. ErrorCode=SqlOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A database operation failed with the following error: 'Conversion failed when converting date and/or time from character string.',Source=,''Type=System.Data.SqlClient.SqlException,Message=Conversion failed when converting date and/or time from character string.,Source=.Net SqlClient Data Provider,SqlErrorNumber=241,Class=16,ErrorCode=-2146232060,State=1,Errors=[{Class=16,Number=241,State=1,Message=Conversion failed when converting date and/or time from character string.,},],'

    Solution:

    "I have resolved the issue. The problem was with the SQL query I used to transfer data from my local system to the database."

    If I missed anything please let me know and I'd be happy to add it to my answer, or feel free to comment below with any additional information.

    Hope this helps. Do let us know if you have any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    Was this answer helpful?


  2. Ext.Chandan Kumar 0 Reputation points
    2025-02-20T09:58:37.7666667+00:00

    Yes, I resolved it. The issue was in SQL query which I was using to copy my data from local to database.

    Was this answer helpful?


  3. Nandan Hegde 36,886 Reputation points MVP Volunteer Moderator
    2025-02-18T08:34:11.9866667+00:00

    Can you please provide more details as to whether the failure is in a copy activity and what is the source and sink ?
    Depending on the above info, we can help better.

    But based on the error message, it seems you are trying to cast a string column into datatime and that coressponding columns might have some values that might not support conversion

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.