DeleteAttachment call needs SkipHarness parameter set
SummaryThe 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 Messages2016-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 ReproduceExecute activity step "Call DeleteAttachment" in an activity called by a service.
Root CauseActivity 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).
ResolutionCheck the SkipHarness option under Method Parameters.
Published November 9, 2016 - Updated November 10, 2016