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 Download

Import CSV files, map each file to one record

  • FlowHeater-Team
  • Topic Author
  • Offline
  • Admin
  • Admin
More
12 years 5 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 to join the conversation.

  • FlowHeater-Team
  • Topic Author
  • Offline
  • Admin
  • Admin
More
12 years 5 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.
Attachments:

Please Log in to join the conversation.

Time to create page: 0.283 seconds

FlowHeater - The Data Specialist

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

Rechtliches

Support & Contact

Kontaktinformation

Telefon:0951 / 99339792 E-Mail:This email address is being protected from spambots. You need JavaScript enabled to view it.

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