Question

I'm trying to read multiple XML files from a folder, to compile all the data they have (all of them have the same XML structure), and than save that data in a CSV file.

I already have a 'read-files' Transformation with the steps: Get File Names and Copy Rows to Result, to get all the XML files. (it's working - I print a file with all the files names)

Then, I enter in a 'for-each-file' Job which has a Transformation with the Get Rows from Result Step, and then another Job to process those files.

I think I'm loosing information from the 'read-files' Transformation to the Transformation in the 'for-each-file' Job which Get all the rows. (I print another file with all the files names, but it is empty)

Can you tell me if I'm thinking in the right way? I have to set some variables, or some option that is disabled? Thanks.

Was it helpful?

Solution

Here is an example of "How to process a Kettle transformation once per filename" http://www.timbert.net/doku.php?id=techie:kettle:jobs:processtransonceperfile

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top