Expand my Community achievements bar.

SOLVED

prior_notification_seconds in aem dam expriy notification doesn't work

Avatar

Level 2

Hi team,

We would like to enable the DAM expiry email notification, but the "prior_notification_seconds" does't work, I can only receive the notification(subject: some of your assets are expired) when DAM asset hit the "expires" time, I can not receive notification before the DAM asset expires when the "Prior notification in seconds" is set, no matter use "Time Based Scheduler Rule" or "Preiodic Scheduler". I am using "Adobe Experience Manager, Version 6.1.0.SP2-CFP9". Can anybody advise on this? is this a AEM product bug? or any other hotfix can be applied?

Thanks in advance.

Hunter

1375371_pastedImage_1.png

1 Accepted Solution

Avatar

Correct answer by
Level 7

Hi Hunter,

We were successfully able to get "Subject: Some of your assets are about to expired" email before assets get expired. This is not a bug and no hotfix is required to make it work.

We faced the similar issue like yours when we set "Time Based Scheduler Rule" time as 5 minutes and "Prior notification in seconds" time as 2 minutes. However, we were able to resolve this issue by setting Time Based Scheduler Rule and Prior notification in seconds as shown in the below screenshot.

felix-console.png

From the above screenshot, you can see that -

1) "Time Based Scheduler Rule" is set as 0 */5 * ? * *

This indicates that scheduler is scheduled to run every 5 minutes.

2) "Prior notification in seconds" is set as 600 seconds (i.e. 10 minutes)

That is, "Time Based Scheduler Rule" time is less than "Prior notification in seconds" time (5<10). In this case we could see "Some of your assets are about to expired" email as shown in the below screenshot.

email.png

So possible reason behind your issue is, your scheduler is getting executed after the assets get expired. Hence please check your Time Based Scheduler Rule and make changes to it accordingly.

We hope this helps!

Regards,

TechAspect Solutions

View solution in original post

2 Replies

Avatar

Correct answer by
Level 7

Hi Hunter,

We were successfully able to get "Subject: Some of your assets are about to expired" email before assets get expired. This is not a bug and no hotfix is required to make it work.

We faced the similar issue like yours when we set "Time Based Scheduler Rule" time as 5 minutes and "Prior notification in seconds" time as 2 minutes. However, we were able to resolve this issue by setting Time Based Scheduler Rule and Prior notification in seconds as shown in the below screenshot.

felix-console.png

From the above screenshot, you can see that -

1) "Time Based Scheduler Rule" is set as 0 */5 * ? * *

This indicates that scheduler is scheduled to run every 5 minutes.

2) "Prior notification in seconds" is set as 600 seconds (i.e. 10 minutes)

That is, "Time Based Scheduler Rule" time is less than "Prior notification in seconds" time (5<10). In this case we could see "Some of your assets are about to expired" email as shown in the below screenshot.

email.png

So possible reason behind your issue is, your scheduler is getting executed after the assets get expired. Hence please check your Time Based Scheduler Rule and make changes to it accordingly.

We hope this helps!

Regards,

TechAspect Solutions

Avatar

Level 2

Hello TechAspect Solutions

Thanks for your explanation and hints.

Finally I just work this out, the "expires time" should be initiated greater than or equal with "Time Based Scheduler Rule" +"Prior notification in seconds", if the "expires time" is between the start of "time based schedule" and "Prior notification in seconds",  the notification will not be triggered.

Thanks,

Hunter