I'm trying to troubleshoot a Pipeline I created that has a Copy Data activity. The source is a REST API and the Sink is a Azure SQL Managed Instance. I have pagination rules setup so that it iterates through the data and reads it all in but the Pipeline is failing. IF I turn off pagination and only read the 1st 100 rows it does not fail and sinks the first 100 rows to database.
Here is my error: 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 20.,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 20.,},],'
My question is, it says, colid 20. Is that colid 20 from the Mapping in Mappings tab in my pipeline OR colid 20 in that the REST API returns? Is there a way to figure out what field/value is causing the issue, the error just seems too vague to be helpful! Would it be possible to do some truncation of the source fields in the case it's longer than the database table datatypes in the mapping of this copy activity?