Uploaded image for project: 'Pentaho Data Integration - Kettle'
  1. Pentaho Data Integration - Kettle
  2. PDI-776

Get File Names step doesn't initialize its variables properly



    • Type: Bug
    • Status: Closed
    • Severity: Medium
    • Resolution: Fixed
    • Affects Version/s: 3.0.1, 3.0.2, 3.1.0 GA
    • Fix Version/s: None
    • Component/s: Step
    • Labels:
    • Notice:
      When an issue is open, the "Fix Version/s" field conveys a target, not necessarily a commitment. When an issue is closed, the "Fix Version/s" field conveys the version that the issue was fixed in.


      Create a new transformation
      Open the menu option Edit | Set Variables
      Create a new variable named FOO with the value of file:///<somepath>
      Create a new Get File Names step
      Use ${FOO} as the Directory name and .* as the wildcard
      Click Get Filenames (it should list the files in <somepath>
      Click Preview Rows (it should list the file info for those files
      You can also preview the transformation and it will work
      If you click the Run button however, Get File Names will error out stating it can't find the path "file:///<path_to_kettle>${FOO}"

      Text File Input and other steps work fine in this way. I tried to debug this in trunk, but the variable initialization code is rather complicated to learn in one late evening.
      As a work-a-round, I can specify the variable in kettle.properties and restart Spoon whenever I want to change it, but a fix in trunk would be preferable because it makes it difficult to develop and test transformations using this step.


          Issue Links



              • Assignee:
                gdavid Golda Thomas
                deinspanjer Daniel Einspanjer (Inactive)
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: