@Tommaso Di Gennaro
Welcome to Microsoft Q&A platform and thanks for posting your question here.
The error is likely caused by the ODBC driver interpreting blank values in the varchar(12)
field as having a precision of zero. To fix this, modify your source SQL query to handle blank values before transferring them. Replace blank values with NULL or a default value. Also, make sure your ODBC driver settings are correctly configured.
Check for any specific parameters that might need to be added to the connection string to handle character data correctly. Finally, verify that the field mappings between the source and destination in Azure Data Factory are set up correctly. By doing this, you can avoid the precision error and ensure a smooth data transfer.
To configure your ODBC driver settings for handling character data, check and adjust the following: Set the ColumnSizeAsCharacter
parameter in the registry to ensure the column size is interpreted as the number of characters rather than bytes. Edit the odbc.ini
file and set the EnableNcharSupport
parameter to 1
to enable support for NCHAR data types. Ensure that the IANAAppCodePage
option in the odbc.ini
file matches the character set of your Oracle metadata installation.
Reference
https://learn.microsoft.com/en-us/answers/questions/1611466/azure-data-factory-copy-data-action-from-sqlserver
https://learn.microsoft.com/en-us/answers/questions/1031326/azure-data-factory-copy-data-action-gives-an-error
I hope this information helps you. Let me know if you have any further questions or concerns.