Dedicated pool table data type String or binary data would be truncated.

Rohit Kulkarni 676 Reputation points
2022-10-03T18:21:53.363+00:00

Hello Team,

I am trying to load the data from parquet file to Dedicated sql pool tables with below mentioned datatype :

247058-image.png

I am facing the issue in description column

The data contain in this particular column is :

247120-image.png

I am getting error as :

Unexpected error encountered filling record reader buffer: HadoopSqlException: String or binary data would be truncated. [ErrorCode = 107090] [SQLState = S0001]

But if i remove particular column from the table then it is working fine.

Please advise

Azure Synapse Analytics
Azure Synapse Analytics
An Azure analytics service that brings together data integration, enterprise data warehousing, and big data analytics. Previously known as Azure SQL Data Warehouse.
4,363 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Suba Balaji 11,186 Reputation points
    2022-10-04T06:10:10.453+00:00

    Hi @Rohit Kulkarni ,

    The error usually occurs when the data is too large to fit in the sink column

    In your case, if your description column brings 2000 characters and the sink table allows only 1500 characters for description column, then while the data is inserted to table, it throws above error

    To fix the same, kindly increase the length of the description column (nvarchar(max) may be) in sink table and rerun the pipeline/notebook

    Let us know how it goes.

    Thanks