Copy Activity erroring 'received an invalid column length'

JW_6688 1 Reputation point
2021-10-06T19:06:36.213+00:00

copy activity failed when encounter one record with unexpected length, is there a way to log the record instead of failing the activity? configured as 'Skip incompatible rows' already and it only for mismatch with data type.
if can log data truncation and incompatible data type together would be good.

Error message:

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.Data.SqlClient.SqlException,Message=Received an invalid column length from the bcp client for colid 9.,Source=.Net SqlClient Data Provider,SqlErrorNumber=4815,Class=17,ErrorCode=-2146232060,State=1,Errors=[{Class=17,Number=4815,State=1,Message=Received an invalid column length from the bcp client for colid 9.,},],'

Any help is appreciated

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

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.