0

I'm trying to process an excel , I need to generate una excel file for each row and as filename I need to use one of the fields in the row.

The excel output hasn't the option "Accept filename from field" and I can't figure out how to achieve it.

thanks

Miquel Àngel
  • 149
  • 1
  • 3
  • 11
  • So all the data of an individual spreadsheet is contained in one row? Are you planning to create spreadsheets with only one row of data? – matthiash Sep 23 '16 at 13:58

2 Answers2

0

The issue is that the step is mostly made for outputting the rows to a single file, not making a file for each row.

This isn't the most elegant solution but I do think it will work. From your transformation you can call a sub-transformation (Mapping) and send a variable to it containing the filename. The sub-transformation can simply do one thing: write the file, and it should work fine. Make sense?

Codex
  • 131
  • 6
0

You need to copy the rows into memory and then loop it across the excel file to generate multiple files. You need to break your solution to 2 parts. First of all, read all the rows from Excel Input step into "Copy rows to Result" step as a variable. In the next transformation, use the same variable to use it as a file parameter.

Please check the two links:

Hope this helps :)

Community
  • 1
  • 1
Rishu Shrivastava
  • 3,745
  • 1
  • 20
  • 41