The issue you're encountering with the new PostgreSqlV2 connector in Azure Data Factory could be due to how the password and SSL mode are being passed. Based on the error message, it seems like the new connector might be parsing the password and SSL mode as a single string, which is likely causing the problem.
Here are a few things to check and update:
- SSL Mode Setting: In the new PostgreSqlV2 connector, the SSL mode must be correctly specified. Instead of using
sslMode: 0
, you should use one of the recognized SSL modes:Disable
,Require
,VerifyCA
, orVerifyFull
. For example:"sslMode": "Disable"
- Password Field: Make sure that the password is passed correctly in the
encryptedCredential
field. Azure Data Factory encrypts this field, so ensure that it is correctly generated. You may need to regenerate the encrypted credential using the Azure Data Factory portal or any method provided by ADF. - Remove extraneous properties in password: The error suggests that something like "passwordmypassword;ssl mode" is being passed, which likely means there is a formatting or parsing issue in your configuration. Ensure that the
encryptedCredential
does not include SSL or other parameters.
Here’s a revised version of your JSON configuration for the linked service:
{
"name": "telemetria_new",
"type": "Microsoft.DataFactory/factories/linkedservices",
"properties": {
"annotations": [],
"type": "PostgreSqlV2",
"typeProperties": {
"server": "abcdefgh.rds.amazonaws.com",
"port": 5432,
"database": "mydb",
"username": "myuser",
"sslMode": "Disable", // Adjust SSL mode as per your requirement
"authenticationType": "Basic",
"encryptedCredential": "------------------"
},
"connectVia": {
"referenceName": "shir",
"type": "IntegrationRuntimeReference"
}
}
}
Next Steps:
- Regenerate your
encryptedCredential
to make sure it’s correctly encoded. - Adjust the
sslMode
to match your database requirements. - Test the connection again after these changes.
Let me know how it goes!