This issue is available in Pega 7.2.2 version and works as expected in Pega 7.1.7 version.
The CSV file is created using the Connect-File method and saved in Remote Server location (file://web:/Reports/). When the generated csv file is opened in remote location, data is available as expected. But when try to download the generated CSV file from the application, the content is not available. Here the file is downloaded with the correct file name that need to be downloaded. But the data is missing.
The Java code which is used to download the CSV file from the server path is given below.
What is the size of the file (downloaded file is having the same size as on the server). Can you try to Configure onClick event as Open URL in new window and then call the download activity and verify whether the appropriate file is getting downloaded.
Downloaded file size is 0KB as there is not content. The problem is the content is missing when it downloaded from the server path. Also already the Onclick event is configured as OpenURLinWindow, You may refer the following attached code for further clarifications
Posted: 5 years ago
Posted: 30 Mar 2017 17:00 EDT
Tigran Airapetian (TigranAirapetian)
Software Solutions Engineer
Thank you for posting your query on 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.
Thank you for posting your query on 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.
We have also sent you a private message opening up a communication channel in case you have any further questions.