Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Ju_Next
Contributor
Contributor

Datamapper -> Implement a loop for a specific XML tag, combined with a fixed number of repetition

Hello everyone,

I'm currently working with Talend's DataMapper V8 and I'm trying to generate an XML file as an output using a CSV file as the input.

I would like to implement a loop for a specific XML tag, combined with a fixed number of repetitions, as outlined below:

  1. Loop through each line of the CSV input file (filtered using the parent tag). [0:*]
  2. For each iteration (where X is not equal to 0), repeat the following steps:
  • Perform a specific action.

The objective is to print the XML tag "X" times for each iteration of the loop.

How can I do that in the

DataMapper using a single XML tag?

regards,

Labels (3)
3 Replies
Ju_Next
Contributor
Contributor
Author

0695b00000kYRkmAAG.png0695b00000kYRkrAAG.png

Ju_Next
Contributor
Contributor
Author

0695b00000kYRmJAAW.png0695b00000kYRmOAAW.png

Ju_Next
Contributor
Contributor
Author

I need to use a fixed loop inside a nested context of a simple loop.

In the documentation we can see:

0695b00000kYlUFAA0.pngI think it should work because there is no warning regarding this implementation

 

I can't use an unroll from loop because it's not the same amount of time 

 

What I want to do :

0695b00000kYlVNAA0.png0695b00000kYlXEAA0.pngthe parameter 'calcul_accessoire' is an integer [0;+oo[

 

but an error occured when I ran my job:0695b00000kYlXnAAK.pngIs it normal ?