Question

4
Replies
190
Views
Close popover
Eric Safern (EricS571)
Infosys

Infosys
US
EricS571 Member since 2011 3 posts
Infosys
Posted: March 15, 2018
Last activity: June 13, 2018
Closed
Solved

OOTB function pxDoesHandleExist fails if parameter passed is not a valid handle

The built-in pega function 'pxDoesHandleExist' returns 'true' if the handle exists, as expected.

However, if the parameter passed is 'garbage,' for example - the function fails rather than returning 'false' - with the message "

 Class GARBAGE does not exist 

This does not fit with the use case given in the help file - where this function is meant to be used as a precondition for obj-open-by-handle so we can avoid trying to open a nonexistent instance of a rule.

Screenshot attached, please advise.

Low-Code App Development Data Integration Java and Activities
Moderation Team has archived post