Share via

string expression

arkiboys 9,711 Reputation points
2021-11-12T10:10:57.117+00:00

In mapping data flow, how is it possible to execute an expression which is retrieved from a config file?
For example, in value expression, I can run expressions like lower($$) which is fine but I would like to know how to know how to run this expression if this is passed in?
Example:
lower($$) --> works as expected which is that it converts values into lower case
expr('lower($$)') --> works as expected which is that it converts values into lower case
Config#lookup($0).Expression --> shows as just the text for lower($$)
expr(toString(Config#lookup($0).Expression)) --> it gives error java.lang.NullPointerException

Thank you

Azure Data Factory
Azure Data Factory

An Azure service for ingesting, preparing, and transforming data at scale.


Your answer

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