Good Morning everyone.
I have a problem with some steps and need your help to figure it out what will be the best way to build a transformation I'm trying to create. Im unexperienced using this tool.
From a properties file I read 2 variables, one of them indicate me to which database I have to connect (I have 10 different databases with same structure but each of them have different data, all of them under MySQL Server), so for this step I have a switch case that depending of the value, I have an specific flow for each data base connection (if there is a better way to do this step, I will be very glad to know).
But my real problem is on the next steps, for each of the 10 flows defined after the switch case step, I have a table input step with differents database connection configured all pointing to the same MySQL Server but poiting each to a respective database, with a query that use the other variable input, and so when I execute my transformation, following for example the flow to path A in the switch case, the query executes great, but for the others table input of the rest of the switch cases, throws me an error
Unexpected error
org.pentaho.di.core.exception.KettleException:
Expected to read parameters from step [Filter rows] but none were found.
at org.pentaho.di.trans.steps.tableinput.TableInput.readStartDate(TableInput.java:85)
at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:122)
at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50)
at java.lang.Thread.run(Thread.java:722)
so what I understand of my problem is that even if I have a switch case that defines the execution path, the other table input steps are going to be executed anyway and because they don't receive the expected parameter it throws me this error. So I will like to know how can I do my transformation, because I have tried using "dynamic sql row step" and "execute sql script step" and this solutions only gives me as output the statement executed with the parameters incrusted on it, but not the execution result of the query.
Thanks in advance, Greetings
I have a problem with some steps and need your help to figure it out what will be the best way to build a transformation I'm trying to create. Im unexperienced using this tool.
From a properties file I read 2 variables, one of them indicate me to which database I have to connect (I have 10 different databases with same structure but each of them have different data, all of them under MySQL Server), so for this step I have a switch case that depending of the value, I have an specific flow for each data base connection (if there is a better way to do this step, I will be very glad to know).
But my real problem is on the next steps, for each of the 10 flows defined after the switch case step, I have a table input step with differents database connection configured all pointing to the same MySQL Server but poiting each to a respective database, with a query that use the other variable input, and so when I execute my transformation, following for example the flow to path A in the switch case, the query executes great, but for the others table input of the rest of the switch cases, throws me an error
Unexpected error
org.pentaho.di.core.exception.KettleException:
Expected to read parameters from step [Filter rows] but none were found.
at org.pentaho.di.trans.steps.tableinput.TableInput.readStartDate(TableInput.java:85)
at org.pentaho.di.trans.steps.tableinput.TableInput.processRow(TableInput.java:122)
at org.pentaho.di.trans.step.RunThread.run(RunThread.java:50)
at java.lang.Thread.run(Thread.java:722)
so what I understand of my problem is that even if I have a switch case that defines the execution path, the other table input steps are going to be executed anyway and because they don't receive the expected parameter it throws me this error. So I will like to know how can I do my transformation, because I have tried using "dynamic sql row step" and "execute sql script step" and this solutions only gives me as output the statement executed with the parameters incrusted on it, but not the execution result of the query.
Thanks in advance, Greetings