ADF Data Flows, HadoopSqlException: Arithmetic overflow error converting expression to data type NVARCHAR at sink

STAKV 36 Reputation points
2021-03-25T17:59:57.153+00:00

Hello,

I got the following error message thrown by a pipeline containing a data flow activity.

Operation on target df_stg_json_to_synapse_seedesadv failed: {"StatusCode":"DFExecutorUserError","Message":"Job failed due to reason: at Sink 'ItemSeedesadv': shaded.msdataflow.com.microsoft.sqlserver.jdbc.SQLServerException: HdfsBridge::recordReaderFillBuffer - Unexpected error encountered filling record reader buffer: HadoopSqlException: Arithmetic overflow error converting expression to data type NVARCHAR.","Details":"at Sink 'ItemSeedesadv': shaded.msdataflow.com.microsoft.sqlserver.jdbc.SQLServerException: HdfsBridge::recordReaderFillBuffer - Unexpected error encountered filling record reader buffer: HadoopSqlException: Arithmetic overflow error converting expression to data type NVARCHAR."}

The target table does not contain any NVARCHAR columns anymore. The dataset schema has been refreshed.

The target table structure is:

CREATE TABLE [stg].[ItemSeedesadv]
(
[File_Name] varchar NULL,
[Me_MessageNumber] varchar NULL,
[ItemPos_LineItemNumber] varchar NULL,
[ItemPos_LineSubItemNumber] varchar NULL,
[ItemPos_CountryOfOrigin] varchar NULL,
[ItemPos_ItemDescription] varchar NULL,
[Item_ItemNumber] varchar NULL,
[Item_Qty] varchar NULL,
[Item_AmountDetails] varchar NULL,
[Item_Ref] varchar NULL,
[Item_Date] varchar NULL,
[Item_Add] varchar NULL,
[Item_WeightAndVolume] varchar NULL,
[Item_Txt] varchar NULL,
[Item_DangerousGoods] varchar NULL,
[Item_Pac_Package] varchar NULL,
[Item_Pac_Pallet] varchar NULL
)
WITH
(
DISTRIBUTION = ROUND_ROBIN,
HEAP
)
GO

Pipeline Run ID: 03afc9e9-c156-4d86-bdc7-14c0a4ac095c
Data Flow Run ID: c0150967-1b45-4707-9f19-370d2bf3d529

Could you please investigate and 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,346 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,489 questions
{count} votes