Would you do the ALTER TABLE as a pre-copy script in the ADF copy task?
Error on Data Types string to nvarchar when copying data from Netsuite to Azure SQL database in ADF
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,'