Pentaho Data integration transformation, Internal.Transformation.Filename.Directory not set
-
14-04-2021 - |
Question
I'm trying to use the built-in Internal.Transformation.Filename.Directory
variable. I take as an example a simple sample the Pentaho Data Integration provides,CSV Input - Reading customer data with error logging.ktr
.
Here is the tooltip after CTRL+SPACE in a variable aware field:
However I do exactly the same as in the sample my variable has no value:
Any ideias? I've briefly checked Pentaho forum however the only related issue I found does not seem to answer my question.
I'm using Ubuntu and PDI version 4.2.1.
Thanks in advance.
Solution
This is normal behavior, in a repository you have no reference directory to use.
There are no relative paths in a repository, so best practice would simply be to define a variable indicating a file location. That way you can make this configurable for the various places where the repository is being used.
in PDI-7199, thanks to Matt Casters
OTHER TIPS
Is your transformation actually saved? I wonder if you forgot to save it - in that case it wouldnt be set.
Alternatively you're not in a job are you? the variable name is different for a job.