Partager via

Copy data PostgreSQL V2 connector : errorCode 2200 parse param error for type:Microsoft.Connectors.AzurePostgreSql.TypeMapping.BigDecimal.NpgsqlDecimal

LioTims 10 Points de réputation
2025-11-19T11:09:50.7366667+00:00

Hello,

Were are facing an issue with the new PostgreSQL V2 connector.

Here is the error message :

{
	"errorCode": "2200",
    "message": "Une panne s'est produite côté « Source ». 		ErrorCode=UserErrorAzurePostgreSqlNpgsqlParseParamError,
		'Type=Microsoft.DataTransfer.Common.Shared.HybridDeliveryException,
		Message=parse param error for type:Microsoft.Connectors.AzurePostgreSql.TypeMapping.BigDecimal.NpgsqlDecimal,
		value:System.Decimal,Source=Microsoft.Connectors.AzurePostgreSql,
		''Type=System.FormatException,
		Message=Le format de la chaîne d'entrée est incorrect.,Source=mscorlib,'",
    "failureType": "UserError"
}


Based on v1/v2 connector data type change log table in the documentation, I checked the table columns data type but none of these types (Money, Timestamp, Time with time zone, Interval, BigDecimal) are used in the table.

After further investigation, the problem is due to a numeric(7,2) column data type. I don't know why.

The version of the SelfHostedIntegrationRuntime is : 5.58.9377.1

Azure Synapse Analytics
Azure Synapse Analytics

Service d’analyse Azure qui regroupe l’intégration de données, l’entreposage de données d’entreprise et l’analytique Big Data. Précédemment appelé Azure SQL Data Warehouse.


1 réponse

  1. Anonyme
    2025-11-28T20:49:04.3933333+00:00

    Hi @LioTims,
    Welcome to the Microsoft Q&A and thank you for posting your questions here.
    Copy activity using PostgreSQL V2 connector in Azure Synapse/ADF fails with errorCode 2200 and UserErrorAzurePostgreSqlNpgsqlParseParamError. The error occurs when parsing numeric/decimal values (e.g., numeric(7,2)) due to a regression in the connector’s BigDecimal/NpgsqlDecimal type-mapping logic. This is not a schema or sink issue.

    The V2 connector introduced new type-mapping for PostgreSQL numerics. When converting .NET System.Decimal to BigDecimal/NpgsqlDecimal, the connector builds an invalid string representation, causing System.FormatException (“Input string not in correct format”).

    Workarounds:

    • Cast problematic numeric columns in a PostgreSQL view:
      • CAST(column AS double precision) (fast but loses precision)
      • CAST(column AS text) (preserves value; convert in sink later)
    • Exclude the column and copy separately with cast.
    • Temporarily switch to PostgreSQL V1 connector if V2 features are not required.

    Cette réponse a-t-elle été utile ?

    2 personnes ont trouvé cette réponse utile.

Votre réponse

Les réponses peuvent être marquées comme « Acceptées » par l’auteur de la question et « Recommandées » par les modérateurs, ce qui aide les utilisateurs à savoir que la réponse a résolu le problème de l’auteur.