CSV import duplicating records
- FlowHeater-Team
- Topic Author
- Offline
- Admin
Less
More
14 years 1 month ago - 1 year 3 weeks ago #2065
by FlowHeater-Team
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
CSV import duplicating records was created by FlowHeater-Team
Translated submission in the German forum. You can read the original entry
here
.
Hi,
Can I make two CSV records out of one? The imported CSV record is an entry with a counter entry. I need an exported record where the entry and counter entry appear as two different records.
Greetings
M. Leipfinger
Hi,
Can I make two CSV records out of one? The imported CSV record is an entry with a counter entry. I need an exported record where the entry and counter entry appear as two different records.
Greetings
M. Leipfinger
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Last edit: 1 year 3 weeks ago by FlowHeater-Team.
Please Log in or Create an account to join the conversation.
- FlowHeater-Team
- Topic Author
- Offline
- Admin
14 years 1 month ago #2066
by FlowHeater-Team
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Replied by FlowHeater-Team on topic Re:CSV import duplicating records
Hi Mr Leipfinger,
You can achieve this with the GroupOut Heater . The GroupOut Heater clones per imported record 1-n identical copies. In order to output some of the columns of the copied row as different values on the WRITE side you also need to use the IF-THEN-ELSE Heater together with the AutoID Heater . I have written a brief example for you, see the attachment.
Note that the AutoID Heater is specifically used for records/rows that belong together. In this way you can determine the output for specific columns of the cloned rows by testing the IF-THEN-ELSE condition = 1 or = 2.
If more than one copy is generated this way, then using this method with a series of IF-THEN-ELSE Heaters rapidly becomes cumbersome. In extreme cases you can fallback on the .NET Script Heater. Here I also give a brief IF-THEN-ELSEIF example .
You can achieve this with the GroupOut Heater . The GroupOut Heater clones per imported record 1-n identical copies. In order to output some of the columns of the copied row as different values on the WRITE side you also need to use the IF-THEN-ELSE Heater together with the AutoID Heater . I have written a brief example for you, see the attachment.
Note that the AutoID Heater is specifically used for records/rows that belong together. In this way you can determine the output for specific columns of the cloned rows by testing the IF-THEN-ELSE condition = 1 or = 2.
If more than one copy is generated this way, then using this method with a series of IF-THEN-ELSE Heaters rapidly becomes cumbersome. In extreme cases you can fallback on the .NET Script Heater. Here I also give a brief IF-THEN-ELSEIF example .
Attachment GroupOut.zip not found
Best wishes
Robert Stark
Did this answer your question? We would be grateful if you provide a brief comment as feedback. It may also help others who may have encountered a similar problem.
Attachments:
Please Log in or Create an account to join the conversation.
Time to create page: 0.267 seconds