Even though I have defined float type, I still can't map. I got this error:
Cannot map the lookup column, 'vertical_rate', because the column is set to a floating point data type.
Even though I have defined float type, I still can't map. I got this error:
Cannot map the lookup column, 'vertical_rate', because the column is set to a floating point data type.
According to the Microsoft documentation on the Lookup transformation (https://learn.microsoft.com/en-us/sql/integration-services/data-flow/transformations/lookup-transformation?view=sql-server-ver16), you cannot use the floating-point data type (DT_R8, which is a double-precision floating-point value) to do a Lookup:
The transformation supports join columns with any data type, except for DT_R4, DT_R8, DT_TEXT, DT_NTEXT, or DT_IMAGE. For more information, see Integration Services Data Types.
This is because, as @KeithL correctly points out, floating point is not exact. If the reference dataset uses floating point, then you must first change the data type there first. Then use a compatible data type for the matching input field used to join.
© 2022 - 2024 — McMap. All rights reserved.