ADF Error when using function from Data Flow Library

Luis Trujillo 20 Reputation points
2024-07-11T21:41:03.4966667+00:00

I have the following function in my data flow library:

iif(isDecimal(i1),toDecimal(i1,i2,i3), toDecimal('0.00',i2,i3))

Configuration:

User's image

When running the data flow i get this error:

Cannot evaluate constant value with this type

If I removed i2 and i3 the function works, any ideas why?

Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
11,624 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.