Support Article

DeleteAttachment call needs SkipHarness parameter set



The user noticed  an error message in the logs during processing related to an activity that deletes attachments to the work object. The delete is failing and nearly always fails subsequently during show harness.

Error Messages

2016-10-21 12:03:51,261 [ WebContainer : 23] [ STANDARD] [tionOffline:01.02.01] ( internal.mgmt.Executable) ERROR | A2051614 - Missing stream key property pyStreamName Missing stream key property pyStreamName

Steps to Reproduce

Execute activity step "Call DeleteAttachment" in an activity called by a service.

Root Cause

Activity step methods using "Call Show-Harness" need to have parameter "Purpose" set. In this scenario, the Pega activity DeleteAttachment performs a "Call Show-Harness" as the last step. There is no harness to show if the action is during the process triggered from a service. Therefore, the activity invoking DeleteAttachment should be setting the SkipHarness parameter to true (by checking the box).

Checking SkipHarness sets this parameter to "true".


Check the SkipHarness option under Method Parameters.


Published November 9, 2016 - Updated November 10, 2016

Have a question? Get answers now.

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