Question

How to resolve Missing stream key property pyStreamName when calling Activity Work-.StartNewFlow from within Agent Activity

Hello,

I have an Agent Activity.  It loads a Sub-case via the appropriate handle.  I want to invoke a Flow on the Sub-case.  Under certain circumstances, this flow results in the cancelling of the sub-case.  When I invoked the Work-.StartFlow the desired result did not work.  The functionality works as desired when I invoke Activity Work-.StartNewFlow. 

However, I continually get "Missing stream key property pyStreamName" when I run the Agent Activity manually.

This is coming from Step 13 of StartNewFlow.

Is the error a result of me triggering this Agent Activity manually?

Or is it because I have not set HarnessPurpose on the parameter to StartNewFlow?

When I tried setting the HarnessPurpose parameter to Perform it gave me many different errors and thus removed the setting of the value

Any assistance/help on which direction I should take to prevent this error from occurring?  (stack trace ends up in application server logs)

(Pega Version:  7.1.8)

 

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
December 30, 2016 - 5:04am

I believe this error is definetly coming due to the missing parameter information of show harness.

Now you are saying that if you set the parameter to perform then you are getting some other error. Can you please specify what are the errors you are getting if you are setting the perform harness as harness purpose in the activity ?

Comments

Keep up to date on this post and subscribe to comments

Pega
December 30, 2016 - 5:04am

I believe this error is definetly coming due to the missing parameter information of show harness.

Now you are saying that if you set the parameter to perform then you are getting some other error. Can you please specify what are the errors you are getting if you are setting the perform harness as harness purpose in the activity ?

December 30, 2016 - 1:30pm

thank you for the response.

odd;  definitely user error.   I had cleaned up the code/logic and then tried to recreate the error with the value set to Perform but can't seem to recreate the error now;  which indicates to me that the two weren't related..  .  I will try a couple of more times but I think that was indeed the right fix and the errors I saw were inadvertenly related to something else.