- Posts: 13
Dynamic Sheet Name in ExcelConnector
- Heinz
- Topic Author
- Offline
- User
Less
More
11 years 1 week ago #2306
by Heinz
Dynamic Sheet Name in ExcelConnector - Post(2306) was created by Heinz
Hi there,
I am using the ExcelAdapter to read data from a xlsx file. My problem is that the sheet is provided by a third party and they tend to rename the sheet on each new file. Can I not access the sheet by index rather than name?
How would I get arroudn this, since the process falls over inthe automated env with an error that the worksheet named "x" is not found.
I am using the ExcelAdapter to read data from a xlsx file. My problem is that the sheet is provided by a third party and they tend to rename the sheet on each new file. Can I not access the sheet by index rather than name?
How would I get arroudn this, since the process falls over inthe automated env with an error that the worksheet named "x" is not found.
Attachments:
Please Log in or Create an account to join the conversation.
- FlowHeater-Team
- Offline
- Admin
11 years 1 week ago #2307
by FlowHeater-Team
Best wishes
Robert Stark
Replied by FlowHeater-Team on topic Dynamic Sheet Name in ExcelConnector - Post(2307)
Hi Heinz,
Semiautomatic Workaround) You could use a FlowHeater Parameter for the Excel Sheet name like this $SHEET$. For testing purpose in the designer you should define a default value for this used parameter (Menu->Edit->Parameters). You can override this parameter by using the Batch Module
For example: FHBatch.exe /SetParameter SHEET=Your-Excel-SHEET-NAME your-excel-export-definition.fhd
For future) I´ll implement this feature with the next version.
Semiautomatic Workaround) You could use a FlowHeater Parameter for the Excel Sheet name like this $SHEET$. For testing purpose in the designer you should define a default value for this used parameter (Menu->Edit->Parameters). You can override this parameter by using the Batch Module
For example: FHBatch.exe /SetParameter SHEET=Your-Excel-SHEET-NAME your-excel-export-definition.fhd
For future) I´ll implement this feature with the next version.
Best wishes
Robert Stark
Please Log in or Create an account to join the conversation.
- Heinz
- Topic Author
- Offline
- User
Less
More
- Posts: 13
11 years 3 days ago #2308
by Heinz
Replied by Heinz on topic Dynamic Sheet Name in ExcelConnector - Post(2308)
Hi,
thanx for the info - but this would not solve the problem, since it still requires me to "know" the sheet name. Problem is with the external provider, they change it without notifying us, but it is always first.
When I deal with this in my own system, I access the sheet by index on not name.
Regards
heinz
thanx for the info - but this would not solve the problem, since it still requires me to "know" the sheet name. Problem is with the external provider, they change it without notifying us, but it is always first.
When I deal with this in my own system, I access the sheet by index on not name.
Regards
heinz
Please Log in or Create an account to join the conversation.
- FlowHeater-Team
- Offline
- Admin
10 years 11 months ago #2309
by FlowHeater-Team
Best wishes
Robert Stark
Replied by FlowHeater-Team on topic Dynamic Sheet Name in ExcelConnector - Post(2309)
Now you could download a first BETA version of this new feature
here
.
This version supports Excel sheet indexes. In case the specified sheet name is numeric and the excel sheet name isn’t available in the current Excel workbook FlowHeater tries to get the Excel sheet by the index instead of the name.
This version supports Excel sheet indexes. In case the specified sheet name is numeric and the excel sheet name isn’t available in the current Excel workbook FlowHeater tries to get the Excel sheet by the index instead of the name.
Best wishes
Robert Stark
Please Log in or Create an account to join the conversation.
Time to create page: 0.279 seconds