Skip to main content
Solved

repeat a record


gboquin
Contributor
Forum|alt.badge.img+5
Good afternoon!!

 

 I am faced with a particular scenario. Typically we are interested in removing duplicates while processing data, but in this case I need to add duplicate data to run a process. So i have a routing that determined how many rows I need to repeat and belive Python can do this-- the problem is that I dont know python-- and am looking for an alternative work flow.

 

 

 This is what I got:

 

For example, I  for AA I need to add 5 rows, and for BB I need to add 3.. my result should look like:

 

AA

 

AA

 

AA

 

AA

 

AA

 

BB

 

BB

 

BB

 

 

Any suggestions, comments are greatly appreciated.

 

Gerardo

Best answer by takashi

Hi Gerardo,

 

 

The Cloner transformer might help you. You can pass the determined number to the "Number of Copies" parameter through an attribute.

 

 

Takashi
View original
Did this help you find an answer to your question?
This post is closed to further activity.
It may be a question with a best answer, an implemented idea, or just a post needing no comment.
If you have a follow-up or related question, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

takashi
Influencer
  • Best Answer
  • June 8, 2015
Hi Gerardo,

 

 

The Cloner transformer might help you. You can pass the determined number to the "Number of Copies" parameter through an attribute.

 

 

Takashi

gboquin
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • June 9, 2015
Thanks Takashi.. worked like a champ!

 

 I must have been low on coffee as I thought I had checked that transformer..

 

 Have a great day!

Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings