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:

Correct variable value

However I do exactly the same as in the sample my variable has no value:

Missing variable 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.

Was it helpful?

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top