- Posts: 109
Execute batch file
- JD Cox
- Topic Author
- Offline
- User
Less
More
1 year 4 months ago #3695
by JD Cox
Execute batch file - Post(3695) 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
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.
- JD Cox
- Topic Author
- Offline
- User
Less
More
- Posts: 109
1 year 4 months ago #3696
by JD Cox
Replied by JD Cox on topic Execute batch file - Post(3696)
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
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.
- FlowHeater-Team
- Offline
- Admin
1 year 4 months ago #3697
by FlowHeater-Team
Best wishes
Robert Stark
Replied by FlowHeater-Team on topic Execute batch file - Post(3697)
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
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
Please Log in or Create an account to join the conversation.
- JD Cox
- Topic Author
- Offline
- User
Less
More
- Posts: 109
1 year 3 months ago #3698
by JD Cox
Replied by JD Cox on topic Execute batch file - Post(3698)
As always Robert, thank you.
That took care of the issue.
JD
That took care of the issue.
JD
Please Log in or Create an account to join the conversation.
Time to create page: 0.265 seconds