getting Failure happened on 'Source' side. ErrorCode=UserErrorOdbcOperationFailed,

Thumati madhu 0 Reputation points
2024-03-18T13:28:27.82+00:00

I am getting this error while perform incremental data loading from oracle database to azure datalake storage

Failure happened on 'Source' side. ErrorCode=UserErrorOdbcOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=ERROR [HY000] [Microsoft][ODBC Oracle Wire Protocol driver][Oracle]ORA-01821: date format not recognized

,Source=Microsoft.DataTransfer.ClientLibrary.Odbc.OdbcConnector,''Type=System.Data.Odbc.OdbcException,Message=ERROR [HY000] [Microsoft][ODBC Oracle Wire Protocol driver][Oracle]ORA-01821: date format not recognized

,Source=msora28.dll,'

Any ideas how to solve this?

thanks!

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,559 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. KarishmaTiwari-MSFT 20,772 Reputation points Microsoft Employee Moderator
    2024-03-18T19:50:30.4933333+00:00

    @Thumati madhu The error message you’re encountering, ORA-01821: date format not recognized, indicates that there’s an issue with the date format in your query.

    The date format you’re using is not recognized by Oracle. Oracle’s TO_DATE function expects a valid format model to interpret the input string correctly. You need to adjust your date format to match the ISO 8601 format with fractional seconds and time zone information.

    Refer to this post: https://stackoverflow.com/questions/39164692/ora-01821-date-format-not-recognized-error-for-iso-8601-date-with-local-time

    Additional Reading: https://stackoverflow.com/questions/40569080/error-ora-01821-date-format-not-recognized

    https://stackoverflow.com/questions/61059772/ora-01821-date-format-not-recognized

    Also, ensure that you have the ODBC driver installed. Link to download Microsoft ODBC driver is: https://www.microsoft.com/en-in/download/details.aspx?id=40886
    Once the installation or Upgrade completes, consider restarting system.

    0 comments No comments

Your answer

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