Hitachi Vantara Pentaho Community Forums
Results 1 to 2 of 2

Thread: Switch case problem

  1. #1
    Join Date
    Sep 2011

    Default Switch case problem


    I have a problem with a switch case with two case values:

    1: Text file output
    2: Text file input -> Select values -> Insert / Update
    default: Dummy (do nothing)

    Despite the fact that Switch / Case receive "1", "Text file input -> Select values -> Insert / Update" is always executed.

    Name:  switch case problem.jpg
Views: 69
Size:  12.2 KB

    Thank you for your help,


  2. #2
    Join Date
    Nov 2008


    That's because you defined a filename in Text file input. As a consequence the step is initialized as soon as the transformation starts and feeds the select values with the stream. In other words it is not activated by the switch/case.

    Unless you change the design of your transformation, the only way to get the text file input started after switch/case is checking the "Accept filenames from previous step" in the "File" tab of the Text file input, and accordingly configuring "Step to read filenames from" and "Field in the input to use as filename".

    Andrea Torre
    twitter: @andtorg

    join the community on ##pentaho - a freenode irc channel

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.