SendFile() API refreshing the section after the call

On Click of Button we are calling refresh section with activity to download the zip file.In this activity we have invoked java step with SendFile API to download the zip file. Once Zip file download popup displays, section is refreshing again so that our activity called again (twice) . Could you please suggest to avoid to refresh the section/avoid to call activity twice.

Thanks for your help in advance.

***Updated by moderator: Lochan to add Categories***

**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.


Keep up to date on this post and subscribe to comments

October 12, 2017 - 4:37am


How are you confirming that activity is being invoked twice? Did you use tracer? If yes, please share tracer xml 

October 12, 2017 - 7:54am

Any specific reason to refresh the section while downloadin the file ? Also downloading the file should not refresh the parent section unless you configured it somewhere. Just execute the activity for downloading the file and see if this helps to resolve the issue



October 12, 2017 - 8:51am

Hi Gangababu

I cant share tracer XML.

November 6, 2017 - 5:53pm

Hi, I am also facing the same issue when I try to download the pdf generated. Is there any solution for this?


November 7, 2017 - 2:11am
Response to ThamizhmaniP


Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.

You may also refer this discussion link as a reference in the new thread.

Vidyaranjan | Community Moderator | Pegasystems Inc.

November 19, 2017 - 1:01am
Response to ThamizhmaniP

Hi ThamizhmaniP,

Where you able to resolve the issue, I am also facing with the same issue. 


November 19, 2017 - 8:36am
Response to ravid1


Use activity with sendfile() in Refresh Harness instead of refresh section.

If you are using PRPC versions of 6.x, where refresh harness is not available, you need to use local change.

Local change is to create a wrapper activity.

In the wrapper activity, 
Step1: Check flag for execute original activity. If flag is true jump to the step (Step5) to call original activity. 
Step2: Write a java step to have a dummy sendfile() statement. 
Step3: Set property on step page which will allows us to call original activity. 
Step4: A dummy step to exit activity 
Step 5: Call to original Activity.