Dynamic data import / export

datenbank

simply more productive
Up to 10,000 records can be processed with the freeware version!
Welcome, Guest
Username: Password: Remember me
Welcome to the FlowHeater support forum.

Questions about using FlowHeater are answered here.

TOPIC: Import CSV files, map each file to one record

Import CSV files, map each file to one record 5 years 2 months ago #2160

  • FlowHeater-Team
  • FlowHeater-Team's Avatar
  • Offline
  • Administrator
  • Posts: 240
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.
The administrator has disabled public write access.

Re:Import CSV files, map each file to one record 5 years 2 months ago #2161

  • FlowHeater-Team
  • FlowHeater-Team's Avatar
  • Offline
  • Administrator
  • Posts: 240
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
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

Attachments:
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.
The administrator has disabled public write access.
Moderators: FlowHeater-Team
Time to create page: 0.074 seconds