Oracle Copy data activity failed in ADF

Jaganathan, Naveen 31 Reputation points
2022-12-29T06:33:35.213+00:00

Hi,

I am trying to Load oracle table using Copy data activity in ADF. I am getting below failure .. I have verified all the schema and data and it is intact with table structure but still failing. Please suggest your thoughts on it.

Failure happened on 'Sink' side. ErrorCode=UserErrorOdbcOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=ERROR [HY000] [Microsoft][ODBC Oracle Wire Protocol driver]Error tolerance exceeded. Bulk load operation terminated.
ERROR [22001] [Microsoft][ODBC Oracle Wire Protocol driver]String data, right truncated. Row discarded.,Source=Microsoft.DataTransfer.ClientLibrary.Odbc.OdbcConnector,''Type=Microsoft.DataTransfer.ClientLibrary.Odbc.Exceptions.OdbcException,Message=ERROR [HY000] [Microsoft][ODBC Oracle Wire Protocol driver]Error tolerance exceeded. Bulk load operation terminated.
ERROR [22001] [Microsoft][ODBC Oracle Wire Protocol driver]String data, right truncated. Row discarded.,Source=msora28.dll,'

Thanks,
naveen

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,623 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. Jaganathan, Naveen 31 Reputation points
    2023-01-02T19:11:01.6+00:00

    Hi Mike,

    I have tried keeping EnableBulkLoad=0 in connection properties and found the exact error message. Where one field was getting value more than its max length. Thanks....

    1 person found this answer helpful.
    0 comments No comments

  2. MartinJaffer-MSFT 26,236 Reputation points
    2022-12-29T17:50:13.133+00:00

    Hello @Jaganathan, Naveen ,
    Thanks for the question and using MS Q&A platform.

    As I understand you are writing to Oracle and want help with that error message.

    By the sound of String data, right truncated. I would think some text is larger than the column expects. However, I did some searching and found similar cases:

    error-22001-microsoftodbc-oracle-wire-protocol-dri.html
    adf-copy-activity-oracle-error-error-tolerance-bulk-load-vishwakarma
    adf-copy-activity-to-oracle-error-error.html

    The solution seems to be increasing write batch size 10,000 -> 50,000
    settings
    Please let me know if this helps.

    If this works, then it sounds like the length of a complete chunk of data was larger than the chosen size. Like, sticking a long object in a truck only for the end to stick out beyond the tailgate.

    Please do let me if you have any queries.

    Thanks
    Martin


    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
      • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments

  3. MichaelWorkingDowntown 21 Reputation points
    2022-12-29T18:04:46.263+00:00

    BTW the 'Old School' way to get data from Oracle/Otherdb when something went wrong nobody could figure out is to download the data to a text file, then upload that text file to SqlServer. Then enjoy your holiday.

    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.