Reputation: 5
I have lookup table with one string column and input column from source qualifier is decimal data type. I need to use these two columns in lkp condition. While doing this it is throwing invalid datatype error. So here i need to convert input lookup column datatype. Is anyother way to get this done
Upvotes: 1
Views: 747
Reputation: 84
Convert your input column in another column in an expression using the function below: TO_CHAR(Your_Column)
, then link this new column to your lookup.
Upvotes: 1
Reputation: 2879
Have you tried to add an Expression transformation that will first transform your input to string then do the lookup after the Exptrans. Try this
Upvotes: 0
Reputation: 9798
The datatypes of the 2 columns need to be the same, otherwise how can you expect there to be any matches in the lookup? You can either convert the string to a decimal or the decimal to a string, whichever is easier
Upvotes: 0