Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.

Distribution Event listener intermitently applying custom properties

Avatar

Level 4

Hi, I would like to ask, we have a Distribution Event listener which is used to apply a custom property (named as lastPublishedDate) when the Distribution Event Type is "ADD". We see that it is being intermittently applied to pages once we published it. And on the logs, we get a Persistence Exception error: Unable to commit changes to session, therefore, published pages didn't have the said property. What would be the cause of this and would there be a more appropriate architecture for this funtionality? Thanks!

2 Replies

Avatar

Administrator

@LyonMartin Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni