Question
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689950000/d47045df-86e1-439e-bba1-56313191da02.jpg?itok=eS9sGDWK)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689950000/d47045df-86e1-439e-bba1-56313191da02.jpg?itok=eS9sGDWK)
Virtusa
US
Last activity: 15 Dec 2021 5:32 EST
Queue Processor Total Attempts Count
Hi ,
I have a requirement to send a notification to a DL after all Max attempts are completed in a dedicated queue processor . How can i get the count of retries during execution of queue processor activity .
I can see pzAttempts property in queue Item XML in admin studio , but in which page does this property be available , its not there in primary page .
Thanks.
-
Likes (4)
Shantanu Nalawade Shibesh Mishra Ketha Rama Satya Kishore Will Cho -
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Accepted Solution
Updated: 15 Dec 2021 5:32 EST
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689961000/d42da709-6666-48cb-bee8-d485f5aad38f.jpg?itok=QBwmYk9x)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689961000/d42da709-6666-48cb-bee8-d485f5aad38f.jpg?itok=QBwmYk9x)
Tech Mahindra
IN
@Adithya_Acharya - you can build a function utility to extract the value from the pzExecutionMetadata and call it in the context of your QP execution activity.
PublicAPI papi = ThreadContainer.get().getPublicAPI(); ParameterPage ppg= papi.getParameterPage(); ClipboardPage cpg = ppg.getPage("pzExecutionMetadata"); ppg.put("RC",cpg.getInteger("pzAttempts"));
use param.RC for notificaiton logic.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689950000/d47045df-86e1-439e-bba1-56313191da02.jpg?itok=eS9sGDWK)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689950000/d47045df-86e1-439e-bba1-56313191da02.jpg?itok=eS9sGDWK)
Virtusa
US
Any insight is much appreciated
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Unisys
NZ
Hi Aditya,
Any luck on getting the issue resolved?
I have a way around it but don't know whether its the best practice.
Cheers,
Shantanu
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689950000/d47045df-86e1-439e-bba1-56313191da02.jpg?itok=eS9sGDWK)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689950000/d47045df-86e1-439e-bba1-56313191da02.jpg?itok=eS9sGDWK)
Virtusa
US
No , I could not find any way to identify this , one option is to save the count in the primary page , so that we can access it when QP runs the next attempt.
Could you please tell is there any OOTB Page in which that will be available ? Since its visible in queue entry XML i believe it should be present in some page when QP runs .
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689972000/6bc3d692-bfc4-495b-8cd1-ea4d5934ea2f.jpg?itok=oJiy3Pmz)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689972000/6bc3d692-bfc4-495b-8cd1-ea4d5934ea2f.jpg?itok=oJiy3Pmz)
Tata Consultancy Services
US
Hi Aditya,
Any luck on getting the issue resolved as I am also facing the same issue where the queue processor is sending out the failure mail with each retry and thus misleading the support team.
Thanks,
Shibesh.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689950000/d47045df-86e1-439e-bba1-56313191da02.jpg?itok=eS9sGDWK)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689950000/d47045df-86e1-439e-bba1-56313191da02.jpg?itok=eS9sGDWK)
Virtusa
US
Hi Shibesh,
If your requirement is to send notification after the retry attempt then wrote Job Scheduler to pick items from broken Q and send notifications for those cases. We followed this approach.
Else other option is to store the count on Case (if acquiring lock is not an issue) , if you cannot hold the lock then you will have to create Data Type to hold the retry count .
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
US
@Adithya_Acharya Any we found an OOTB or any solution to this? We also have a similar requirement. Need to know in the QP activity that we are doing the last retry (i.e. current retry counter=max attempts)
Updated: 21 Jun 2021 8:50 EDT
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689950000/d47045df-86e1-439e-bba1-56313191da02.jpg?itok=eS9sGDWK)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689950000/d47045df-86e1-439e-bba1-56313191da02.jpg?itok=eS9sGDWK)
Virtusa
US
@Will Cho : No ,we could not find any OOTB rules/solutions , so we used JS to send notifications once it goes into Broken Q.
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689979000/dd9f46b7-8bc3-44a2-aab7-8bcb434a3519.jpg?itok=RgMNQbyt)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689979000/dd9f46b7-8bc3-44a2-aab7-8bcb434a3519.jpg?itok=RgMNQbyt)
Cognizant Technology Solutions
IN
@Will Cho For similar requirement, we are capturing the retry count in the processed object and compare it against a DSS value before initiating the additional process on it (like notification in your scenario). We were not able to identify an OOTB feature to handle the requirement.
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
![](/profiles/pega_profile/modules/pega_user_image/assets/user-icon.png)
Pegasystems Inc.
US
@AMARAN84 Thanks for the update. We also ended up using DSS to store a max attempt and reference that in activity. We set the max attempt in QP to a large number like 1000 so that this won't interrupt the DSS value. We submitted a Feedback item and Pega should make the max attempt count in QP available in Tracer in a future version after 8.4.1.
-
Amaranathan Suriyanathan
Accepted Solution
Updated: 15 Dec 2021 5:32 EST
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689961000/d42da709-6666-48cb-bee8-d485f5aad38f.jpg?itok=QBwmYk9x)
![](https://accounts.pega.com/sites/default/files/styles/user_image/public/1689961000/d42da709-6666-48cb-bee8-d485f5aad38f.jpg?itok=QBwmYk9x)
Tech Mahindra
IN
@Adithya_Acharya - you can build a function utility to extract the value from the pzExecutionMetadata and call it in the context of your QP execution activity.
PublicAPI papi = ThreadContainer.get().getPublicAPI(); ParameterPage ppg= papi.getParameterPage(); ClipboardPage cpg = ppg.getPage("pzExecutionMetadata"); ppg.put("RC",cpg.getInteger("pzAttempts"));
use param.RC for notificaiton logic.
-
Venkatesh N Mohit Vohra Adithya Acharya Anoop Krishna Satish Boddepalli and 1 More