AEM - ACS Common upgrade to 5.2.0, sending emails fails afterwards - could not resolve to a valid template | Community
Skip to main content
New Participant
December 8, 2022
Solved

AEM - ACS Common upgrade to 5.2.0, sending emails fails afterwards - could not resolve to a valid template

  • December 8, 2022
  • 2 replies
  • 877 views

Hi folks,

I recently upgraded my AEM project's embedded ACS COMMONs libraries from 4.11.0 to 5.2.0. and sending emails fails afterwards.

 

"...ang.IllegalArgumentException: Mail template path [ /conf/myproject/notification/email/dentist.html ] could not resolve to a valid template
at com.adobe.acs.commons.email.impl.EmailServiceImpl.getMailTemplate(EmailServiceImpl.java:276)"

 

I checked via useradmin for "acs-commons-system-notifications-service"  and it has read permission for "/conf/myproject/notification/email" directory on both publishers servers.

If I checked via security/permissions.html, I didn't see that the user had permissions so I added an ACE for /conf/myproject/notification/email. Not sure what was happening there.

 

In any case, it still didn't work.

 

Is there some other service user I should check permissions for ?

thanks

Fiona

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by fionas76543059

Actually, I think it is "acs-commons-email-service". That seems to work.

https://adobe-consulting-services.github.io/acs-aem-commons/features/e-mail/email-api/index.html#creating-an-email-template

 

2 replies

Employee
December 9, 2022

Hi @fionas76543059 ,

 

 

Hope this helps.

 

Thanks,

Nikita Garg

fionas76543059AuthorAccepted solution
New Participant
December 8, 2022