I am using a sub-transformation PARTNER_CONTACT_SUB with 2 mapped fields like as below:
Then in my sub-transformation I execute an sql query in an input table PARTNER_TYPE_SUB like as below :
I'm use 2 mark from the INPUT SUB step.
But when I run the transformation, Pentaho responds this:
2021/02/01 14:27:48 - PARTNER CONTACT INPUT.0 - ERROR (version 9.0.0.0-423, build 9.0.0.0-423 from 2020-01-31 04.53.04 by buildguy) : Unexpected error
2021/02/01 14:27:48 - PARTNER CONTACT INPUT.0 - ERROR (version 9.0.0.0-423, build 9.0.0.0-423 from 2020-01-31 04.53.04 by buildguy) : org.pentaho.di.core.exception.KettleDatabaseException:
2021/02/01 14:27:48 - PARTNER CONTACT INPUT.0 - An error occurred executing SQL:
2021/02/01 14:27:48 - PARTNER CONTACT INPUT.0 - SELECT *, ? as partner_id
2021/02/01 14:27:48 - PARTNER CONTACT INPUT.0 - FROM llx_socpeople
2021/02/01 14:27:48 - PARTNER CONTACT INPUT.0 - where fk_soc = ?;
2021/02/01 14:27:48 - PARTNER CONTACT INPUT.0 -
2021/02/01 14:27:48 - PARTNER CONTACT INPUT.0 - offending row : [societe_id Integer(9)], [nom ....
2021/02/01 14:27:48 - PARTNER CONTACT INPUT.0 -
2021/02/01 14:27:48 - PARTNER CONTACT INPUT.0 - Error setting value #3 [String] on prepared statement
2021/02/01 14:27:48 - PARTNER CONTACT INPUT.0 - Parameter index out of range (3 > number of parameters, which is 2).
2021/02/01 14:27:48 - PARTNER CONTACT INPUT.0 -
2021/02/01 14:27:48 - PARTNER CONTACT INPUT.0 -
Have you an idea ?
Thanks.
My config :
Pentaho 9.0 under Ubuntu 18