Hi @Siqueira, Alexssander A [NC]
To copy data from Oracle, set the source type in the copy activity to OracleSource
. The following properties are supported in the copy activity source section.
The convertDecimalToInteger
property in Azure Data Factory's (ADF) Copy Activity is used to control the conversion of Oracle NUMBER data types with zero or unspecified scale to integers during data copy operations. When set to true, this property converts such decimal values to their integer equivalents by truncating the decimal portion without rounding. By default, this property is set to false, meaning that decimal values are not automatically converted to integers.
The conversion follows truncation
, meaning it simply removes the decimal part without rounding.
If you enable convertDecimalToInteger
, monetary values like 123.99 will be truncated to 123 instead of rounded to 124. This could lead to incorrect financial calculations or discrepancies in reports.
Alternative Solutions
If you need proper rounding, consider:
- Using a Data Flow instead of Copy Activity, where you can explicitly round values before conversion.
- Handling rounding within Oracle before ingestion (ROUND(column_name, 0)).
Please refer the below Microsoft doc for reference
https://learn.microsoft.com/en-us/azure/data-factory/connector-oracle?tabs=data-factory
I hope this information helps. Please do let us know if you have any further queries.
Kindly consider upvoting the comment if the information provided is helpful. This can assist other community members in resolving similar issues.
Thank you.