Pentaho Data integration transformation, Internal.Transformation.Filename.Directory not set

StackOverflow https://stackoverflow.com/questions/8788258

質問

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.

役に立ちましたか?

解決

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

他のヒント

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.

ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top