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.
2016-10-21 12:03:51,261 [ WebContainer : 23] [ STANDARD] [tionOffline:01.02.01] ( internal.mgmt.Executable) ERROR | A2051614 - Missing stream key property pyStreamName
com.pega.pegarules.pub.clipboard.InvalidParameterException: Missing stream key property pyStreamName
Steps to Reproduce
Execute activity step "Call DeleteAttachment" in an activity called by a service.
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).
Check the SkipHarness option under Method Parameters.