- Posts: 4
How Import multiple spread sheets with specific order?
- Doron Farber
- Topic Author
- Offline
- User
Less
More
5 years 3 months ago - 5 years 3 months ago #3536
by Doron Farber
How Import multiple spread sheets with specific order? was created by Doron Farber
Hi,
How to Import multiple spread sheets with specific order?
Please provide steps.
Thanks,
Doron
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.
- FlowHeater-Team
- Offline
- Admin
5 years 2 months ago - 5 years 2 months ago #3537
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 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.
Please note) The example use German “dir” settings. You have to modify the FlowHeater with your locales first.
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.
- Get the file names from a certain directory using the console "dir" command and store the output in a text file “files.txt”
- 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.
- Sort the InMemory Adapter table like you want and create a temporary CMD script
Please note) The example use German “dir” settings. You have to modify the FlowHeater with your locales first.
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:
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