Question

Can we parse excel file with multiple tabs/sheets?

We have a requirement to parse excel file which has multiple tabs/sheets in an excel which comes as an attachment from SOAP/REST Service.

So can we use MSOParseExcelFile activity to parse such an excel? Is there a way to meet such a requirement without any customization.

Also we have to create a similar excel file with updated data and pass it on to downstream systems within PEGA.

Any help in this regard will be highly appreciated.

Note: We are using PEGA v7.1.8

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
February 16, 2016 - 9:15am

MSOParseExcelFile works with multiple tabs as well and we were able to read the data in all the sheets. You can provide the input excel sheet template with multiple tabs in the same order as original sheet.

Comments

Keep up to date on this post and subscribe to comments

December 30, 2015 - 11:55am

Hi,

Have you tried using OOB MSOParseExcelFile method? This take in parameter:

FSFFileName : Name and Location of the uploaded excel file.

TemplateRFB: Name of the uploaded binary file, it should follow <Directory name>!<Rule Name>!<extension>

MSOParseExcelFile method only reads .xls files.

https://pdn.pega.com/support-articles/unable-read-data-excel-sheet-when-file-type-xls

MSOPaseExcelFile method is implemented using Apache POI jar, you want to check if there is any API to suffice your use case to parse multiple tabs/sheet:

Apache POI - the Java API for Microsoft Documents

January 8, 2016 - 1:48am
Response to AdityaSirohi930765655

Hi Aditya,

Does MSOParseExcelFile support multiple tabs in an excel.

I know it works when we have one sheet. If it does not, worst case we are planning to use Apache POI APIs using custom java.

Regards,

Prasad

February 16, 2016 - 9:15am
Response to Prasad_BY

MSOParseExcelFile works with multiple tabs as well and we were able to read the data in all the sheets. You can provide the input excel sheet template with multiple tabs in the same order as original sheet.

February 16, 2016 - 9:35am
Response to NikhileshN

Thanks Nikhilesh.