Converting to Oracle version 2 linked service in ADF is erroring converting string to Nvarchar

Jeffrey Miller - SA 0 Reputation points
2025-06-16T17:38:34.7766667+00:00

I'm converting to the Oracle version 2 linked service and nearly all of my jobs work except for a few which give me the error

"Failure happened on 'Sink' side. ErrorCode=SqlOperationFailed,'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,Message=A database operation failed. Please search error to get more details.,Source=Microsoft.DataTransfer.ClientLibrary,''Type=System.InvalidOperationException,Message=The given value of type String from the data source cannot be converted to type nvarchar of the specified target column.,Source=System.Data,''Type=System.InvalidOperationException,Message=String or binary data would be truncated.,Source=System.Data,'"

I have the linked service set to support V1 data types, If I remove that I get the "cannot convert Decimal" error.

Thanks for your help

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

1 answer

Sort by: Most helpful
  1. Chandra Boorla 14,510 Reputation points Microsoft External Staff Moderator
    2025-06-17T08:27:15.9533333+00:00

    @Jeffrey Miller - SA

    Thanks for the update, and I appreciate you taking the time to dig into the issue and share your findings.

    It’s interesting to hear that the root cause turned out to be numeric values with extra precision after the decimal, rather than the long text fields initially suspected. Even with supportV1DataTypes = true and the “Convert Decimal to Int” option enabled, the behavior can sometimes be inconsistent depending on how the data is represented in the source.

    Using the ROUND() function in your source query is a great workaround, it ensures that the values align with the expected target data type and avoids runtime conversion issues.

    Also, enabling Fault Tolerance and logging was a smart move. It’s a great way to isolate problematic rows and gain clarity on data-level mismatches.

    Thank you.

    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.