Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

ActivityTerminateException: This is a singleton exception object

SA-99038

Summary



On attaching a file to a case, the pyAttachInputstream changes to null in the dragdropfileupload pagelist on Passivation and the ActivityTerminateException displays. Hence, the assignment is not submitted.


Error Messages



com.pega.pegarules.pub.runtime.ActivityTerminateException: This is a singleton exception object and the stack trace below does NOT reflect the actual point of failure. To see the actual trace, set Initialization/UniqueActivityTerminateExceptions = true


Steps to Reproduce

  1. Configure a storage type as S3 for attachments.
  2. Upload a file to the case.
  3. Wait for 15 minutes until Passivation occurs.
  4. Click Attach.
  5. Submit the assignment.


Root Cause



The Validate rule that applies to uploading attachments did not contain checks for passivated input streams.


Resolution



Perform the following local-change:

Save As the onAdd Validation rule and perform the below steps:

a. Enter '.pyContent' in the Property field for the new row and click Enter.
b. On the right side of the new row, select Edit to open the condition Editor.
c. Enter the below details.
  1. Select the box  New to 'Enable Conditions'
  2. Select a function =  [expression evaluates to true]
  3. Expression A:
    1. !(JavaObjectPropertyHasValue("dragDropFileUpload.pxResults(<LAST>).pyAttachInputStream"))
  4. Expression B:
    1. Select a function:  [first string] [relation] [second string]
    2. "AND" 
    3. "dragDropFileUpload.pxResults(<LAST>).pyIsStreamBasedUpload" EQUALS "true"
  5. Message = [the  name of the custom message record]
    1. Click the target icon next to the name entered to begin creation of the custom message record
    2. The message record can contain any message that is most relevant to the users. The result must display as below:

Published January 17, 2020 - Updated December 2, 2021

Was this useful?

0% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Did you find this content helpful?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice