<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Email Notification - notify_user_email_it.html.ftl not working properly.BUG? in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/email-notification-notify-user-email-it-html-ftl-not-working/m-p/299549#M252679</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm using out-of-the-box Alfresco 4.2.f, without customizations, and i'm trying to set the email notification whether a new document in added in a certain folder.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So i've added a rule to the folder and i've set as Perform Action "Send email" using as template "notify_user_email_it.html.ftl".&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If i insert a document, i don't receive the email and here is the error in the log:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Expression person is undefined on line 38, column 57 in workspace://SpacesStore/55088e2c-05ac-4264-8396-ee6f3c7021ad.&lt;BR /&gt;The problematic instruction:&lt;BR /&gt;———-&lt;BR /&gt;==&amp;gt; ${person.properties.firstName} [on line 38, column 55 in workspace://SpacesStore/55088e2c-05ac-4264-8396-ee6f3c7021ad]&lt;BR /&gt;———-&lt;BR /&gt;&lt;BR /&gt;Java backtrace for programmers:&lt;BR /&gt;———-&lt;BR /&gt;freemarker.core.InvalidReferenceException: Expression person is undefined on line 38, column 57 in workspace://SpacesStore/55088e2c-05ac-4264-8396-ee6f3c7021ad.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at freemarker.core.TemplateObject.invalidTypeException(TemplateObject.java:135)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at freemarker.core.Dot._getAsTemplateModel(Dot.java:78)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at freemarker.core.Dot._getAsTemplateModel(Dot.java:74)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at freemarker.core.Expression.getStringValue(Expression.java:93)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at freemarker.core.DollarVariable.accept(DollarVariable.java:76)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;at freemarker.core.Environment.visit(Environment.java:221)&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If i remove from the template the string ${person.properties.firstName} then the rule works properly but the mail i receive is not as expected, all the interesting informations are shown as in the original FTL. Attached the email received to understand better.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Really strange since i've not customized anything, maybe this is a BUG but i didn't find anything on JIRA…&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Someone has the same behaviour? Possible work-arounds?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 04 Sep 2014 11:46:30 GMT</pubDate>
    <dc:creator>dave984</dc:creator>
    <dc:date>2014-09-04T11:46:30Z</dc:date>
    <item>
      <title>Email Notification - notify_user_email_it.html.ftl not working properly.BUG?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/email-notification-notify-user-email-it-html-ftl-not-working/m-p/299549#M252679</link>
      <description>I'm using out-of-the-box Alfresco 4.2.f, without customizations, and i'm trying to set the email notification whether a new document in added in a certain folder.So i've added a rule to the folder and i've set as Perform Action "Send email" using as template "notify_user_email_it.html.ftl".If i inse</description>
      <pubDate>Thu, 04 Sep 2014 11:46:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/email-notification-notify-user-email-it-html-ftl-not-working/m-p/299549#M252679</guid>
      <dc:creator>dave984</dc:creator>
      <dc:date>2014-09-04T11:46:30Z</dc:date>
    </item>
    <item>
      <title>Re: Email Notification - notify_user_email_it.html.ftl not working properly.BUG?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/email-notification-notify-user-email-it-html-ftl-not-working/m-p/299550#M252680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;No I don't think it is a bug.&amp;nbsp;&amp;nbsp; (Well its sub-optimal,&amp;nbsp; I agree)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The email templates stuff needs to distinguish between the different sources of email messages.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In this case this template is a notification email used by the notification service.&amp;nbsp;&amp;nbsp; You are not the notification service so your email does not have the correct properties to display with that template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 12:02:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/email-notification-notify-user-email-it-html-ftl-not-working/m-p/299550#M252680</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2014-09-04T12:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Email Notification - notify_user_email_it.html.ftl not working properly.BUG?</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/email-notification-notify-user-email-it-html-ftl-not-working/m-p/299551#M252681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi, tank you for your answer!i've updated my original question because i forgot that initially the template gave me an error i reported.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the template is used only by the notification service why is it presented in the GUI as a possible template to use?!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW there is another solution to have an email with simple informations such as document uploaded and user creator?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Sep 2014 12:57:00 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/email-notification-notify-user-email-it-html-ftl-not-working/m-p/299551#M252681</guid>
      <dc:creator>dave984</dc:creator>
      <dc:date>2014-09-04T12:57:00Z</dc:date>
    </item>
  </channel>
</rss>

