Skip to main content
simply more productive

The Data Specialist

Thanks to our intuitive transformation designer, you can convert data effortlessly to a variety of formats without knowing how to program. It’s not only efficient, it’s also easy to use.
Flowheater Chart

Import CSV files, map each file to one record

  • FlowHeater-Team
  • avatar Topic Author
  • Offline
  • Admin
  • Admin
More
13 years 2 months ago #2160 by FlowHeater-Team
Import CSV files, map each file to one record was created by FlowHeater-Team
Hello,

I had a question for you. Is there any easy way to use FlowHeater to import a series of files that actually have about 20 lines of data. I want each file to be a separate row in the database, with each line in the file being one field in the row...

Not obvious to me if this is possible.

Thanks!
Rick
Request via email

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.

Please Log in or Create an account to join the conversation.

  • FlowHeater-Team
  • avatar Topic Author
  • Offline
  • Admin
  • Admin
More
13 years 2 months ago #2161 by FlowHeater-Team
Replied by FlowHeater-Team on topic Re:Import CSV files, map each file to one record
Hi Rick,

Of course :)

To do this you need one GroupBy Heater , one If-Then-Else Heater and one AutoID Heater .

The GroupBy Heater groups all records of each CSV file to one Record on the WRITE side. With the AutoID Heater and the If-Then-Else Heater you can decide which row from the READ would you like to store in which field on the WRITE.

I've made a little example to demonstrate how it´s work. Please have a look to the attachment.

With the help of the Batch Module you can run this Definition automatically and/or Import more than one CSV file at each time.

Example Batch Import Command
Code:
FHBatch.exe /ReadFileName C:\Temp\*.csv import-csv-files.fhd
This command imports all CSV file are located in C:\Temp\

Attachment csv_group_by_import.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.

Please Log in or Create an account to join the conversation.

Time to create page: 0.258 seconds
FlowHeater Logo

FlowHeater - The Data Specialist

Efficient data integration and transformation with FlowHeater – the perfect solution for a seamless transfer of your data.

Legal information

Support & Contact

Contact

Phone:
0951 / 9933 9792

eMail:
This email address is being protected from spambots. You need JavaScript enabled to view it.


Copyright © 2009-2024 by FlowHeater GmbH. All rights reserved.