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

How Import multiple spread sheets with specific order?

  • Doron Farber
  • Topic Author
  • Offline
  • User
  • User
More
5 years 3 months ago - 5 years 3 months ago #3536 by Doron Farber
Hi,

How to Import multiple spread sheets with specific order?
Please provide steps.

Thanks,

Doron
Last edit: 5 years 3 months ago by Doron Farber.

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

More
5 years 2 months ago - 5 years 2 months ago #3537 by FlowHeater-Team
Replied by FlowHeater-Team on topic How Import multiple spread sheets with specific order?
Hi Doron,

To import multiple CSV / XML files or Excel spreadsheet you can use the Batch Module (FHBatch.exe) with wildcards and the command line option /ReadFileName

e.g. FHBatch.exe /ReadFileName  C:\Temp *.xlsx Exel-Import.fhd

The order will be the alphabetic order like the “dir” command in the console. Currently no other order supported by default but have a look to the workaround below.

With the FlowHeater Server it would be possible to setup a file monitoring on a specific directory and the import order will be the file creation time.
Note: You can change the line/row processing order within a definition during the import process with the Sort Heater or the InMemory Adapter . Here you can find an example how the InMemory Adapter works: Merging CSV and Excel data using the InMemory Adapter


Workaround
It would be possible to create a temporary CMD script during a data import/export process. The steps are.
  1. Get the file names from a certain directory using the console "dir" command and store the output in a text file “files.txt”
  2. Create a FlowHeater Definition and process this file. Filter  out all unwanted lines, store the file names and create timestamp using an InMemory Adapter  table.
  3. Sort the InMemory Adapter table like you want and create a temporary CMD script
I´ve attached a brief example.

Please note) The example use German “dir” settings. You have to modify the FlowHeater with your locales first.

File Attachment:

File Name: file-proce...rder.zip
File Size:6 KB

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: 5 years 2 months ago by FlowHeater-Team.

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

Time to create page: 0.264 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.