Double notifications for Review Activities
Hi.
From time to time, users recieve duplicate notifications when added as reviewers on review activity.
Most only get the one, but some get duplicates.
The log from Notify Analyst app only shows one beeing sent. They are only added once as reviewers.
Any thoughts?
Best Answer
-
Shane_White Cireson Support Super IT Monkey ✭✭✭✭✭@Nick_Flint
You are exactly right, I have been going through this with Carol in a ticket she has raised and we have made some progress.
The issue seems to occur when you have a PowerShell Activity running before the review activity so seems to just be a timing issue.
If you add Start-Sleep -Seconds 45 onto the end of the PowerShell activity this should fix your issues.
Thanks,
Shane.6
Answers
If these are both enabled, I have to imagine this leads to the reasoning (for Cireson) for introducing the "delay field" that is available here as well.
These are my current settings:
Thank you - I can't work it out either, but it seems to be a common issue. I just tested it twice and got duplicate review activities out once! I've watched it through - the SR was created at 09:07; the Set Approver task went to Pending at 09:08, then In Prog at 09:08, then completed at 09:08 (we have a powershell script which run as part of the set Approver task in the Template); the Approve task went to Pending at 09:09, then In Prog at 09:09 and 1 email came out at 09:09. But I did the same thing - the SR was created at 09:16; the Set Approver task went to Pending at 09:16, then In Prog at 09:17, then completed at 09:17; the Approve task went to Pending at 09:17, then In Prog at 09:17 and 1 email came out at 09:17 and another at 09:18!. It is definitely a timing issue and seems like the notify Analyst settings are picking it up twice if the Approver is set at almost the same time as the Approval task goes to In Prog. I am lost as to what to do to correct this - any ideas??
You are exactly right, I have been going through this with Carol in a ticket she has raised and we have made some progress.
The issue seems to occur when you have a PowerShell Activity running before the review activity so seems to just be a timing issue.
If you add Start-Sleep -Seconds 45 onto the end of the PowerShell activity this should fix your issues.
Thanks,
Shane.
Thanks for the confirmation. I had previously implemented a 30 second wait to allow the activity statuses time to updated before the PSA completed. I've updated to 45 seconds and early testing did result in only one notification.
Thank you!
@Shane_White
I have been doing some extensive testing on this today and can confirm the sleep of 45 seconds added at the end of the Powershell activity works. The duplicate review activity email notifications are now a thing of the past! Thank you for your help.
We are adding Manual Activities within parallel activities to service requests and setting the support group via a PowerShell Activity. This triggers both the Update Workflow and the In-Progress workflow within seconds and the support group receives the same notification twice within seconds of each other.
Is there any way to suppress the update workflow for Manual Activities if the activity is not In Progress?
Have you set the tickbox for 'Skip notification if Activity Status is not In-Progress' for Manual Activity, and added a delay at the end of the PS Script?
Thanks,
Shane.