I tried everything, I´m so new in Pentaho.
My situation, I cannot use jobs, just transformations. Because the ktr goes into another program that only allows transformations.
I have to sources of data:
- I have a txt file with all the employees of a company, one field is the country.
- I have a field in the Countries table of a Database. This field says if I have the import or not the data from every country.
I have to get in the output the users from the countries that have the parameter allowed to import. So I have to mix a TXT file and a Table of the Database.
- The user data of the required countries will output to a table in the database.
I tried all combinations I can imagine, but because of the order of execution didn´t work. Any ideas??
The closest I was was this attemp. What I did was first delete the final table of the users. Then just import all the users to the table and then execute a SQL file to delete the employees that should not be in the table because of the country. The delete works fine in SQL Developer, but because of the order of execution on Pentaho, it executes so early before any row is in the table. The blocking step seems to do nothing.
2015/09/04 13:16:25 - Usuarios People.0 - Opening file: C:\Users\XE52305\Desktop\IN\Interfaces\Em_PeopleSoft_low.txt
2015/09/04 13:16:25 - Limpiar Tabla Buffer.0 - Finished reading query, closing connection.
2015/09/04 13:16:25 - Limpiar Tabla Buffer.0 - Finished processing (I=0, O=0, R=0, W=1, U=1, E=0)
2015/09/04 13:16:25 - Execute SQL script.0 - Finished reading query, closing connection.
2015/09/04 13:16:25 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=1, U=1, E=0)
2015/09/04 13:16:25 - Usuarios People.0 - Finished processing (I=99, O=0, R=0, W=99, U=99, E=0)
2015/09/04 13:16:26 - Insert / Update.0 - Finished processing (I=99, O=99, R=99, W=99, U=99, E=0)
2015/09/04 13:16:26 - Spoon - The transformation has finished!!
error1.jpg.
Thank you
My situation, I cannot use jobs, just transformations. Because the ktr goes into another program that only allows transformations.
I have to sources of data:
- I have a txt file with all the employees of a company, one field is the country.
- I have a field in the Countries table of a Database. This field says if I have the import or not the data from every country.
I have to get in the output the users from the countries that have the parameter allowed to import. So I have to mix a TXT file and a Table of the Database.
- The user data of the required countries will output to a table in the database.
I tried all combinations I can imagine, but because of the order of execution didn´t work. Any ideas??
The closest I was was this attemp. What I did was first delete the final table of the users. Then just import all the users to the table and then execute a SQL file to delete the employees that should not be in the table because of the country. The delete works fine in SQL Developer, but because of the order of execution on Pentaho, it executes so early before any row is in the table. The blocking step seems to do nothing.
2015/09/04 13:16:25 - Usuarios People.0 - Opening file: C:\Users\XE52305\Desktop\IN\Interfaces\Em_PeopleSoft_low.txt
2015/09/04 13:16:25 - Limpiar Tabla Buffer.0 - Finished reading query, closing connection.
2015/09/04 13:16:25 - Limpiar Tabla Buffer.0 - Finished processing (I=0, O=0, R=0, W=1, U=1, E=0)
2015/09/04 13:16:25 - Execute SQL script.0 - Finished reading query, closing connection.
2015/09/04 13:16:25 - Execute SQL script.0 - Finished processing (I=0, O=0, R=0, W=1, U=1, E=0)
2015/09/04 13:16:25 - Usuarios People.0 - Finished processing (I=99, O=0, R=0, W=99, U=99, E=0)
2015/09/04 13:16:26 - Insert / Update.0 - Finished processing (I=99, O=99, R=99, W=99, U=99, E=0)
2015/09/04 13:16:26 - Spoon - The transformation has finished!!
error1.jpg.
Thank you