ACS-Commons "Send Templated Email" process: "could not resolve to a valid template" Error | Community
Skip to main content
Level 2
August 26, 2021
Solved

ACS-Commons "Send Templated Email" process: "could not resolve to a valid template" Error

  • August 26, 2021
  • 2 replies
  • 3764 views

Hi All,

 

Hope you all are doing well.

 

I'm trying to use ACS-Commons "Send Templated Email" process in my workflow step to send templated emails. And getting below message in the logs:

"Mail template path [ /apps/workflows/templates/email-templates/send-to-approver.txt ] could not resolve to a valid template"

SMTP is enabled and I'm able to send emails from that environment. Can someone help me understand and resolve this.

 

Regards,

Chitransh

Best answer by chitranshs90502

Hi @ritesh_mittal ,

 

Thanks. System user didn't have required permission. Issue is resolved now.

 

Regards,

Chitransh

2 replies

Ritesh_Mittal
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
August 26, 2021

Hi @chitranshs90502 ,

 

Are you able to see /apps/workflows/templates/email-templates/send-to-approver.txt through CRXDE?

 

Also, check if your system user has access to the template path, If you are getting the above error while backend execution.

chitranshs90502AuthorAccepted solution
Level 2
August 26, 2021

Hi @ritesh_mittal ,

 

Thanks. System user didn't have required permission. Issue is resolved now.

 

Regards,

Chitransh

btaymaz1
Level 2
March 23, 2022

Hi @chitranshs90502 

Can you share your template? I'm getting same error but maybe my template is not good.

 

Thanks

Kiran_Vedantam
Community Advisor
Community Advisor
August 26, 2021

Hi @chitranshs90502,

 

Templates are nt:file nodes in the repository containing a text file. The text file contains the complete email.

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

 

Kindly note that the files under /apps are project related code and its not advisable be used to save the content which is generic. So, create the same template under /content, to access it, create a system(service) user and give the permissions specific to that path to avoid and future permissions issues.

System user detailshttps://docs.adobe.com/content/help/en/experience-manager-65/administering/security/security-service-users.html

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

 

Level 2
August 26, 2021

Hi @kiran_vedantam 

 

Thanks. System user didn't have required permission. Issue is resolved now.

 

Regards,

Chitransh