pxGenerateExcelFile generates file, but the file is not downloaded

We have an activity that generates a Code-Pega-List. The activity seems to work as we can run it and the file gets generated and downloaded.

If we run the activity onClick of a button, the activity gets run, the trace doesn’t show errors, but the file is not downloaded…


@Jorre

Hi

Is the “pxGenerateExcelFile” activity being called from the BulkExport activity or separately. Also, why have disabled submit on refresh done? Is there any specific reason.

@Joris Claus

If we are trying to send some file data back to client always better to sent it in new window or to a specific iframe under the DOM. Please try to use open Url in new window with your activity.

Saikat

@Jorre

Remove activity name from refresh this section.

Add another action (open url in window) before refresh this section and run your activity which executes pxGenerateExcelFile.

@PrakashDeep It’s being called from BulkExport. The activity creates a Code-Pega-List with the data that needs to be exported, and calls pxGenerateExcelFile to do the export.