- Posts: 13
Dynamic Sheet Name in ExcelConnector
- Heinz
- Topic Author
- Offline
- User
Less
More
10 years 10 months ago #2306
by Heinz
Dynamic Sheet Name in ExcelConnector 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
10 years 10 months ago #2307
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 Dynamic Sheet Name in ExcelConnector
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
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.
- Heinz
- Topic Author
- Offline
- User
Less
More
- Posts: 13
10 years 10 months ago #2308
by Heinz
Replied by Heinz on topic Dynamic Sheet Name in ExcelConnector
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 10 months ago #2309
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 Dynamic Sheet Name in ExcelConnector
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
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.
Time to create page: 0.276 seconds