Rank: Newbie
Joined: 1/20/2021 Posts: 1 Location: Sweden
|
Hi all,
I have a little bit of a tricky situation. In a project we need to take about 6000 rows with about 50 attributes in a CSV file and map the attributes in MF using the XSD. This is no issue...But the receiving part for the XML files need to have 1 XML file for each row in the CSV file. So can we in MF create different output XML files for each Row when running Built-in execution?
Any thoughts i'm stuck.
Rgds Bjorn
|
Rank: Advanced Member
Joined: 6/16/2006 Posts: 486 Location: AT
|
In your target component, click the File/String button and choose "Use dynamic file names supplied by mapping". Then connect something to the "File" input that creates a file name, e.g. a concat component with some field that is unique in each input CSV row and an ".xml" constant. Or instead of a unique field, you can use the position function on the input row node to create unique numbers.
|