Error on Data Types string to nvarchar when copying data from Netsuite to Azure SQL database in ADF

Chantelle Carley 0 Reputation points
2024-01-11T21:59:43.6766667+00:00

I am trying to copy a table from Netsuite to an Azure SQL database using an ODBC connector from Netsuite with SuiteAnalytics Connect. Most of the tables are coming across fine, there are a couple giving this error. I realize it is something to do with the mapping but I am unable to manually update the data type in the mapping. Any ideas on how to fix this would be very much appreciated!

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,'

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

1 answer

Sort by: Most helpful
  1. Chantelle Carley 0 Reputation points
    2024-01-16T16:00:48.4866667+00:00

    Would you do the ALTER TABLE as a pre-copy script in the ADF copy task?