Question

7
Replies
737
Views
CloeW938 Member since 2018 143 posts
IT Solution Service
Posted: October 9, 2018
Last activity: November 27, 2018
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:

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 Interface
Moderation Team has archived post
Share this page LinkedIn