Parameterized Lookup query including a function causes Load Data Warehouse job to fail with ORA-00904: "SUBSTR": invalid identifier