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

Execute batch file

More
8 months 5 days ago #3695 by JD Cox
Execute batch file was created by JD Cox
This customer can only provide us with a .xlsx file.
I need it in csv format to stay in sync with our operational setup.

If I manually execute the batch file it works great.
But, when I execute it with FHServerManager, only Step 1 runs.

Strangely, when I leave the file named IMPORT.xlsx and comment Step 1 out.
Step 2 still fails to run.
@ECHO OFF

    SET FHBATCH="C:\Program Files\FlowHeater V4\BIN\FHBatch.exe"

    ECHO Set working directory
    pushd == "\\1.1.1.1\CUSTOMER_IMPORTS_EXPORTS\Import\Pending"

REM     STEP 1 RENAME XLSX FILE

    rename *.xlsx IMPORT.xlsx
     ping -n 3 1.1.1.2

REM     STEP 2 CONVERT XLSX FILE TO CSV

    %FHBATCH% XXXSET_Import_CONVERT.fhd                
    ping -n 3 1.1.1.2

exit

JD

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

More
8 months 5 days ago #3696 by JD Cox
Replied by JD Cox on topic Execute batch file
Here's a log file from both:

FH ServerManager Execution

2023-08-22 10:49:31,\\~XXXSET_Import_CONVERT.fhd,Info,FlowHeater (R) Batch Modul (64 Bit): Version 4.1.7
2023-08-22 10:49:32,\\~XXXSET_Import_CONVERT.fhd,Info,ServerTask: 12da004a-725e-41d0-8ef5-eee5fc910975
2023-08-22 10:49:32,\\~XXXSET_Import_CONVERT.fhd,Info,Definition: \\~XXXSET_Import_CONVERT.fhd
2023-08-22 10:49:32,\\~XXXSET_Import_CONVERT.fhd,Info,Start: 8/22/2023 10:49:32 AM
2023-08-22 10:49:32,\\~XXXSET_Import_CONVERT.fhd,Info,processing step [File_Import] (1/1) ...
2023-08-22 10:49:32,\\~XXXSET_Import_CONVERT.fhd,Warning,WARNING : 1 - A:ExcelAdapter - Path [C:\Windows\system32\config\systemprofile\Desktop] doesn´t exist! To prevent problems with Excel Automation you have to create this path manually.
2023-08-22 10:49:32,\\~XXXSET_Import_CONVERT.fhd,Warning,WARNING : 1 - A:ExcelAdapter - Path [C:\Windows\SysWOW64\config\systemprofile\Desktop] doesn´t exist! To prevent problems with Excel Automation you have to create this path manually.
2023-08-22 10:49:33,\\~XXXSET_Import_CONVERT.fhd,Error,Microsoft Excel cannot access the file '\\1.1.1.1\CUSTOMER_IMPORTS_EXPORTS\Pending\IMPORT.xlsx'. There are several possible reasons:

• The file name or path does not exist.
• The file is being used by another program.
• The workbook you are trying to save has the same name as a currently open workbook.
2023-08-22 10:49:33,\\~XXXSET_Import_CONVERT.fhd,Error,Exit code 12

Manual Execution

2023-08-22 10:51:02,\\~XXXSET_Import_CONVERT.fhd,Info,FlowHeater (R) Batch Modul (64 Bit): Version 4.1.7
2023-08-22 10:51:03,\\~XXXSET_Import_CONVERT.fhd,Info,Start: 8/22/2023 10:51:03 AM
2023-08-22 10:51:03,\\~XXXSET_Import_CONVERT.fhd,Info,processing step [File_Import] (1/1) ...
2023-08-22 10:51:04,\\~XXXSET_Import_CONVERT.fhd,Info,TextFileAdapter Write(1) Fields(OrderID*|OrderDate*|Name*~Product Title|Qty|Order Value|Notes)
2023-08-22 10:51:04,\\~XXXSET_Import_CONVERT.fhd,Info,TextFileAdapter Write(2) Fields(1111106|08/21/2023|Mol~(3 Month PrePaid Subscription) Auto renew - M / L|1|0|[-NULL-])
2023-08-22 10:51:04,\\~XXXSET_Import_CONVERT.fhd,Info,TextFileAdapter Write(3) Fields(1111104|08/21/2023|Sha~FULL SET (string) - M / L|1|0|[-NULL-])
2023-08-22 10:51:04,\\~XXXSET_Import_CONVERT.fhd,Info,TextFileAdapter Write(4) Fields(Grosale|08/21/2023|Gro~MIDNIGHTSKYL|2|0|Please send without customized inserts. This is a wholesale order.)
2023-08-22 10:51:04,\\~XXXSET_Import_CONVERT.fhd,Info,Rows Read   : 4
2023-08-22 10:51:04,\\~XXXSET_Import_CONVERT.fhd,Info,Rows Fitter : 4
2023-08-22 10:51:04,\\~XXXSET_Import_CONVERT.fhd,Info,Rows Write  : 4
2023-08-22 10:51:04,\\~XXXSET_Import_CONVERT.fhd,Info,processing step [File_Import] (1/1) - Duration 1.3728 seconds
2023-08-22 10:51:04,\\~XXXSET_Import_CONVERT.fhd,Info,End:   8/22/2023 10:51:04 AM
2023-08-22 10:51:04,\\~XXXSET_Import_CONVERT.fhd,Info,Duration 1.482 seconds
2023-08-22 10:51:04,\\~XXXSET_Import_CONVERT.fhd,Info,Exit code 0

 

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

More
8 months 5 days ago #3697 by FlowHeater-Team
Replied by FlowHeater-Team on topic Execute batch file
Hi JD,

I guess this is just an Office/COM automation issue. Please try to create the 2 in the log mentioned “Desktop” directories manually. After creation please restart the FlowHeater Server Service and try it again.

The directories are
    C:\Windows\system32\config\systemprofile\Desktop
    C:\Windows\SysWOW64\config\systemprofile\Desktop

 

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.

More
8 months 4 days ago #3698 by JD Cox
Replied by JD Cox on topic Execute batch file
As always Robert, thank you.

That took care of the issue.

JD

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

Time to create page: 0.271 seconds
FlowHeater Logo

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 / 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.