Question

7
Replies
873
Views
Cloe Walker (CloeW938)
IT Solution Service

IT Solution Service
SG
CloeW938 Member since 2018 158 posts
IT Solution Service
Posted: October 9, 2018
Last activity: February 17, 2021
Posted: 9 Oct 2018 3:06 EDT
Last activity: 17 Feb 2021 10:12 EST
Closed
Solved

How to avoid PRRuntimeException in pxUploadCSVResults activity

Hi,


I am using OOTB activity @baseclass.pxUploadCSVResults to upload a CSV file into page list. I placed a button to fire this activity as below screenshot and basically it works fine as long as I upload a CSV file onto memory first.



However, if I press this button before I upload a CSV file, Pega throws an Exception as below on user screen.


It is reasonable for Pega to throw an Exception because file does not exist, but I do not like displaying this Exception. There should be a couple of solutions that I can think of, for instance:

Hi,

I am using OOTB activity @baseclass.pxUploadCSVResults to upload a CSV file into page list. I placed a button to fire this activity as below screenshot and basically it works fine as long as I upload a CSV file onto memory first.

However, if I press this button before I upload a CSV file, Pega throws an Exception as below on user screen.

It is reasonable for Pega to throw an Exception because file does not exist, but I do not like displaying this Exception. There should be a couple of solutions that I can think of, for instance:

1. Disable button until user uploads CSV file onto memory
2. Press button, and nothing happens if CSV file does not exist (no exception is displayed)
3. Press button, and message shows or pops up if CSV file does not exist.

I am okay with any of above solution but simpler the better. What is the best approach? Minimum code is much appreciated.

Thanks,

***Updated by moderator: Lochan to update platform capability***

Data Integration Java and Activities User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.