Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

export to excel feature not working as expected



Export to Excel is not working (i.e. the excel file is not downloading). 
User has configured a link with an action to call activity(ReportsExcelExport) but the file is not downloading. 

Error Messages


Steps to Reproduce

Create a link with run activity action to call ReportsExcelExport activity in asection.

Root Cause

A defect in Pegasystems’ code or rules written after 6.3 SP1.


Perform the following local-change: 
Instead of calling the activity on link, call Run script.
  1. Include the below javascript function in the harness.
function customExportToExcel(viewClass,viewPurpose)
                var form = document.createElement('form');
       = "formExportViewToExcel";
                form.method = "POST";
       = "_target";
                var frm = document.forms["formExportViewToExcel"];
                if( && !{
                var strActionSF = SafeURL_createFromURL(pega.u.d.url);
    strActionSF.put("pyActivity", "ReportsExcelExport");
    strActionSF.put("pxObjClass", "Rule-Obj-Activity");
    strActionSF.put("pyClassName", "Data-Portal");
    strActionSF.put("ViewClass", viewClass);
    strActionSF.put("ViewPurpose", viewPurpose);
    strActionSF.put("exportmode", "excel" );
                frm.action = strActionSF.toURL();
  1. Configure Run Script action on the link to call the above function and pass the revlevant parameters.


Published January 31, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

Want to help us improve this content?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us