<?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 Re: Problem with freemarker in folder rule with Send Email in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121634#M33361</link>
    <description>&lt;P&gt;thanks a lot for your support,&lt;/P&gt;&lt;P&gt;I already tried many ftl sample, but with the same result.&lt;/P&gt;&lt;P&gt;more further information, when a receive a alfresco user notification mail (see capture), the result seems good.&lt;/P&gt;&lt;P&gt;perhaps there's more configuration to perform when used SendEmail in folder Rule?&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rule5.jpg" style="width: 708px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1596i53DE8BBA2B9337F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 16 Nov 2022 08:03:52 GMT</pubDate>
    <dc:creator>faobek</dc:creator>
    <dc:date>2022-11-16T08:03:52Z</dc:date>
    <item>
      <title>Problem with freemarker in folder rule with Send Email</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121629#M33356</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I tray to put a rule on a folder with sending an email like a notification, all things are ok, but when the mail is received we haven't right retun (pl. see the capture), we think it's about freemarker problem on html page.&lt;/P&gt;&lt;P&gt;thanks a lo&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rule3.jpg" style="width: 675px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1595i0B7B18D3C9A2CEE6/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;)&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 14:02:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121629#M33356</guid>
      <dc:creator>faobek</dc:creator>
      <dc:date>2022-11-07T14:02:38Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with freemarker in folder rule with Send Email</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121630#M33357</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;Some questions:&lt;/P&gt;&lt;P&gt;&amp;nbsp;- May you indicate how you create content rule ? Maybe with a JS snippet?. You may debug the FTL output for JS code with the help of Javascript Console addon.&lt;/P&gt;&lt;P&gt;&amp;nbsp;- Did you try the rule and the email without ftl template (text message) ? Does it work properly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;- May you include the error logs (catalina.out) if any ?&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;--C.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Nov 2022 14:56:29 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121630#M33357</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2022-11-07T14:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with freemarker in folder rule with Send Email</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121631#M33358</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks a lot for your reply.&lt;/P&gt;&lt;P&gt;I create a simple folder rule, &lt;STRONG&gt;Manage Rules&amp;gt;Create Rule&amp;gt;In Send Email (Action)&lt;/STRONG&gt; (see capture); Ihave tried to use .ftl file but it &lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rule4.jpg" style="width: 359px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1594i903ED933FCB1A045/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;didn't work, I have idea to copy and past it in &lt;STRONG&gt;Message Field&lt;/STRONG&gt; (like in capture), the result was what I send yesterday.&lt;/P&gt;&lt;P&gt;Best Regards ,&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 07:27:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121631#M33358</guid>
      <dc:creator>faobek</dc:creator>
      <dc:date>2022-11-08T07:27:36Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with freemarker in folder rule with Send Email</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121632#M33359</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I add the alfresco log file.&lt;/P&gt;&lt;P&gt;2022-11-07 00:00:01,658 ERROR [freemarker.runtime] [FeedNotifier1] Error executing FreeMarker template&lt;BR /&gt;FreeMarker template error:&lt;BR /&gt;The following has evaluated to null or missing:&lt;BR /&gt;==&amp;gt; {activity.activitySummary.pag [in template "workspace://SpacesStore/30d6545c-c332-4abf-b5cc-67297d7f1ac2" at line 53, column 130]&lt;/P&gt;&lt;P&gt;Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use &amp;lt;#if myOptionalVar??&amp;gt;when-present&amp;lt;#else&amp;gt;when-missing&amp;lt;/#if&amp;gt;. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??&lt;/P&gt;&lt;P&gt;The failing instruction (FTL stack trace):&lt;BR /&gt;----------&lt;BR /&gt;==&amp;gt; ${activity.activitySummary.page?html!""} [in template "workspace://SpacesStore/30d6545c-c332-4abf-b5cc-67297d7f1ac2" at line 53, column 128]&lt;BR /&gt;#assign itemLink = "\la href=\"\${sha... [in template "workspace://SpacesStore/30d6545c-c332-4abf-b5cc-67297d7f1ac2" at line 53, column 49]&lt;BR /&gt;----------&lt;/P&gt;&lt;P&gt;Java stack trace (for programmers):&lt;BR /&gt;----------&lt;BR /&gt;freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]&lt;BR /&gt;at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98)&lt;BR /&gt;at freemarker.core.EvalUtil.coerceModelToString(EvalUtil.java:382)&lt;BR /&gt;at freemarker.core.Expression.evalAndCoerceToString(Expression.java:115)&lt;BR /&gt;at freemarker.core.StringBuiltins$StringBuiltIn._eval(StringBuiltins.java:87)&lt;BR /&gt;at freemarker.core.Expression.eval(Expression.java:111)&lt;BR /&gt;at freemarker.core.DefaultToExpression._eval(DefaultToExpression.java:116)&lt;BR /&gt;at freemarker.core.Expression.eval(Expression.java:111)&lt;BR /&gt;at freemarker.core.Expression.evalAndCoerceToString(Expression.java:115)&lt;BR /&gt;at freemarker.core.DollarVariable.accept(DollarVariable.java:76)&lt;BR /&gt;at freemarker.core.Environment.visit(Environment.java:265)&lt;BR /&gt;at freemarker.core.MixedContent.accept(MixedContent.java:93)&lt;BR /&gt;at freemarker.core.Environment.visit(Environment.java:265)&lt;BR /&gt;at freemarker.core.Environment.renderElementToString(Environment.java:1798)&lt;BR /&gt;at freemarker.core.StringLiteral.evalAndCoerceToString(StringLiteral.java:116)&lt;BR /&gt;at freemarker.core.StringLiteral._eval(StringLiteral.java:93)&lt;BR /&gt;at freemarker.core.Expression.eval(Expression.java:111)&lt;BR /&gt;at freemarker.core.Assignment.accept(Assignment.java:106)&lt;BR /&gt;at freemarker.core.Environment.visit(Environment.java:265)&lt;BR /&gt;at freemarker.core.MixedContent.accept(MixedContent.java:93)&lt;BR /&gt;at freemarker.core.Environment.visitByHiddingParent(Environment.java:286)&lt;BR /&gt;at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:86)&lt;BR /&gt;at freemarker.core.Environment.visitByHiddingParent(Environment.java:286)&lt;BR /&gt;at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:193)&lt;BR /&gt;at freemarker.core.Environment.visitIteratorBlock(Environment.java:509)&lt;BR /&gt;at freemarker.core.IteratorBlock.accept(IteratorBlock.java:103)&lt;BR /&gt;at freemarker.core.Environment.visitByHiddingParent(Environment.java:286)&lt;BR /&gt;at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:86)&lt;BR /&gt;at freemarker.core.Environment.visit(Environment.java:265)&lt;BR /&gt;at freemarker.core.MixedContent.accept(MixedContent.java:93)&lt;BR /&gt;at freemarker.core.Environment.visit(Environment.java:265)&lt;BR /&gt;at freemarker.core.Environment.process(Environment.java:243)&lt;BR /&gt;at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:230)&lt;BR /&gt;at org.alfresco.repo.processor.TemplateServiceImpl.processTemplate(TemplateServiceImpl.java:184)&lt;BR /&gt;at org.alfresco.repo.processor.TemplateServiceImpl.processTemplate(TemplateServiceImpl.java:247)&lt;BR /&gt;at org.alfresco.repo.action.executer.MailActionExecuter$3.prepare(MailActionExecuter.java:965)&lt;BR /&gt;at org.alfresco.repo.action.executer.MailActionExecuter.prepareEmail(MailActionExecuter.java:1026)&lt;BR /&gt;at org.alfresco.repo.action.executer.MailActionExecuter.prepareEmails(MailActionExecuter.java:585)&lt;BR /&gt;at org.alfresco.repo.action.executer.MailActionExecuter.executeImpl(MailActionExecuter.java:490)&lt;BR /&gt;at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:273)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Unknown Source)&lt;BR /&gt;at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:79)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt;at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)&lt;BR /&gt;at com.sun.proxy.$Proxy290.execute(Unknown Source)&lt;BR /&gt;at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:856)&lt;BR /&gt;at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:757)&lt;BR /&gt;at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:581)&lt;BR /&gt;at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:567)&lt;BR /&gt;at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:865)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Unknown Source)&lt;BR /&gt;at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)&lt;BR /&gt;at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:41)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt;at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt;at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt;at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)&lt;BR /&gt;at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)&lt;BR /&gt;at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt;at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)&lt;BR /&gt;at com.sun.proxy.$Proxy41.executeAction(Unknown Source)&lt;BR /&gt;at org.alfresco.repo.activities.feed.EmailUserNotifier.notifyUser(EmailUserNotifier.java:187)&lt;BR /&gt;at org.alfresco.repo.activities.feed.AbstractUserNotifier.notifyUser(AbstractUserNotifier.java:228)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2.processInternal(FeedNotifierImpl.java:393)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2.access$2(FeedNotifierImpl.java:388)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2$1$1.execute(FeedNotifierImpl.java:379)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2$1$1.execute(FeedNotifierImpl.java:1)&lt;BR /&gt;at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2$1.doWork(FeedNotifierImpl.java:375)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2$1.doWork(FeedNotifierImpl.java:1)&lt;BR /&gt;at org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:126)&lt;BR /&gt;at org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:95)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2.process(FeedNotifierImpl.java:370)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2.process(FeedNotifierImpl.java:1)&lt;BR /&gt;at org.alfresco.repo.batch.BatchProcessor$TxnCallback.execute(BatchProcessor.java:720)&lt;BR /&gt;at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)&lt;BR /&gt;at org.alfresco.repo.batch.BatchProcessor$TxnCallback.run(BatchProcessor.java:764)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)&lt;BR /&gt;at java.lang.Thread.run(Unknown Source)&lt;BR /&gt;2022-11-07 00:00:01,701 ERROR [freemarker.runtime] [FeedNotifier1] Error executing FreeMarker template&lt;BR /&gt;FreeMarker template error:&lt;BR /&gt;The following has evaluated to null or missing:&lt;BR /&gt;==&amp;gt; {activity.activitySummary.pag [in template "workspace://SpacesStore/30d6545c-c332-4abf-b5cc-67297d7f1ac2" at line 53, column 130]&lt;/P&gt;&lt;P&gt;Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use &amp;lt;#if myOptionalVar??&amp;gt;when-present&amp;lt;#else&amp;gt;when-missing&amp;lt;/#if&amp;gt;. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??&lt;/P&gt;&lt;P&gt;The failing instruction (FTL stack trace):&lt;BR /&gt;----------&lt;BR /&gt;==&amp;gt; ${activity.activitySummary.page?html!""} [in template "workspace://SpacesStore/30d6545c-c332-4abf-b5cc-67297d7f1ac2" at line 53, column 128]&lt;BR /&gt;#assign itemLink = "\la href=\"\${sha... [in template "workspace://SpacesStore/30d6545c-c332-4abf-b5cc-67297d7f1ac2" at line 53, column 49]&lt;BR /&gt;----------&lt;/P&gt;&lt;P&gt;Java stack trace (for programmers):&lt;BR /&gt;----------&lt;BR /&gt;freemarker.core.InvalidReferenceException: [... Exception message was already printed; see it above ...]&lt;BR /&gt;at freemarker.core.InvalidReferenceException.getInstance(InvalidReferenceException.java:98)&lt;BR /&gt;at freemarker.core.EvalUtil.coerceModelToString(EvalUtil.java:382)&lt;BR /&gt;at freemarker.core.Expression.evalAndCoerceToString(Expression.java:115)&lt;BR /&gt;at freemarker.core.StringBuiltins$StringBuiltIn._eval(StringBuiltins.java:87)&lt;BR /&gt;at freemarker.core.Expression.eval(Expression.java:111)&lt;BR /&gt;at freemarker.core.DefaultToExpression._eval(DefaultToExpression.java:116)&lt;BR /&gt;at freemarker.core.Expression.eval(Expression.java:111)&lt;BR /&gt;at freemarker.core.Expression.evalAndCoerceToString(Expression.java:115)&lt;BR /&gt;at freemarker.core.DollarVariable.accept(DollarVariable.java:76)&lt;BR /&gt;at freemarker.core.Environment.visit(Environment.java:265)&lt;BR /&gt;at freemarker.core.MixedContent.accept(MixedContent.java:93)&lt;BR /&gt;at freemarker.core.Environment.visit(Environment.java:265)&lt;BR /&gt;at freemarker.core.Environment.renderElementToString(Environment.java:1798)&lt;BR /&gt;at freemarker.core.StringLiteral.evalAndCoerceToString(StringLiteral.java:116)&lt;BR /&gt;at freemarker.core.StringLiteral._eval(StringLiteral.java:93)&lt;BR /&gt;at freemarker.core.Expression.eval(Expression.java:111)&lt;BR /&gt;at freemarker.core.Assignment.accept(Assignment.java:106)&lt;BR /&gt;at freemarker.core.Environment.visit(Environment.java:265)&lt;BR /&gt;at freemarker.core.MixedContent.accept(MixedContent.java:93)&lt;BR /&gt;at freemarker.core.Environment.visitByHiddingParent(Environment.java:286)&lt;BR /&gt;at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:86)&lt;BR /&gt;at freemarker.core.Environment.visitByHiddingParent(Environment.java:286)&lt;BR /&gt;at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:193)&lt;BR /&gt;at freemarker.core.Environment.visitIteratorBlock(Environment.java:509)&lt;BR /&gt;at freemarker.core.IteratorBlock.accept(IteratorBlock.java:103)&lt;BR /&gt;at freemarker.core.Environment.visitByHiddingParent(Environment.java:286)&lt;BR /&gt;at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:86)&lt;BR /&gt;at freemarker.core.Environment.visit(Environment.java:265)&lt;BR /&gt;at freemarker.core.MixedContent.accept(MixedContent.java:93)&lt;BR /&gt;at freemarker.core.Environment.visit(Environment.java:265)&lt;BR /&gt;at freemarker.core.Environment.process(Environment.java:243)&lt;BR /&gt;at org.alfresco.repo.template.FreeMarkerProcessor.process(FreeMarkerProcessor.java:230)&lt;BR /&gt;at org.alfresco.repo.processor.TemplateServiceImpl.processTemplate(TemplateServiceImpl.java:184)&lt;BR /&gt;at org.alfresco.repo.processor.TemplateServiceImpl.processTemplate(TemplateServiceImpl.java:247)&lt;BR /&gt;at org.alfresco.repo.action.executer.MailActionExecuter$3.prepare(MailActionExecuter.java:965)&lt;BR /&gt;at org.alfresco.repo.action.executer.MailActionExecuter.prepareEmail(MailActionExecuter.java:1026)&lt;BR /&gt;at org.alfresco.repo.action.executer.MailActionExecuter.prepareEmails(MailActionExecuter.java:585)&lt;BR /&gt;at org.alfresco.repo.action.executer.MailActionExecuter.executeImpl(MailActionExecuter.java:490)&lt;BR /&gt;at org.alfresco.repo.action.executer.ActionExecuterAbstractBase.execute(ActionExecuterAbstractBase.java:273)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Unknown Source)&lt;BR /&gt;at org.alfresco.repo.management.subsystems.SubsystemProxyFactory$1.invoke(SubsystemProxyFactory.java:79)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt;at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)&lt;BR /&gt;at com.sun.proxy.$Proxy290.execute(Unknown Source)&lt;BR /&gt;at org.alfresco.repo.action.ActionServiceImpl.directActionExecution(ActionServiceImpl.java:856)&lt;BR /&gt;at org.alfresco.repo.action.ActionServiceImpl.executeActionImpl(ActionServiceImpl.java:757)&lt;BR /&gt;at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:581)&lt;BR /&gt;at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:567)&lt;BR /&gt;at org.alfresco.repo.action.ActionServiceImpl.executeAction(ActionServiceImpl.java:865)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)&lt;BR /&gt;at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)&lt;BR /&gt;at java.lang.reflect.Method.invoke(Unknown Source)&lt;BR /&gt;at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)&lt;BR /&gt;at org.alfresco.repo.security.permissions.impl.AlwaysProceedMethodInterceptor.invoke(AlwaysProceedMethodInterceptor.java:41)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt;at org.alfresco.repo.security.permissions.impl.ExceptionTranslatorMethodInterceptor.invoke(ExceptionTranslatorMethodInterceptor.java:53)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt;at org.alfresco.repo.audit.AuditMethodInterceptor.invoke(AuditMethodInterceptor.java:166)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt;at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)&lt;BR /&gt;at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)&lt;BR /&gt;at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)&lt;BR /&gt;at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)&lt;BR /&gt;at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)&lt;BR /&gt;at com.sun.proxy.$Proxy41.executeAction(Unknown Source)&lt;BR /&gt;at org.alfresco.repo.activities.feed.EmailUserNotifier.notifyUser(EmailUserNotifier.java:187)&lt;BR /&gt;at org.alfresco.repo.activities.feed.AbstractUserNotifier.notifyUser(AbstractUserNotifier.java:228)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2.processInternal(FeedNotifierImpl.java:393)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2.access$2(FeedNotifierImpl.java:388)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2$1$1.execute(FeedNotifierImpl.java:379)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2$1$1.execute(FeedNotifierImpl.java:1)&lt;BR /&gt;at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2$1.doWork(FeedNotifierImpl.java:375)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2$1.doWork(FeedNotifierImpl.java:1)&lt;BR /&gt;at org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:126)&lt;BR /&gt;at org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:95)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2.process(FeedNotifierImpl.java:370)&lt;BR /&gt;at org.alfresco.repo.activities.feed.FeedNotifierImpl$2.process(FeedNotifierImpl.java:1)&lt;BR /&gt;at org.alfresco.repo.batch.BatchProcessor$TxnCallback.execute(BatchProcessor.java:720)&lt;BR /&gt;at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:464)&lt;BR /&gt;at org.alfresco.repo.batch.BatchProcessor$TxnCallback.run(BatchProcessor.java:764)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)&lt;BR /&gt;at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)&lt;BR /&gt;at java.lang.Thread.run(Unknown Source)&lt;BR /&gt;2022-11-07 00:00:01,851 ERROR [freemarker.runtime] [FeedNotifier1] Error executing FreeMarker template&lt;BR /&gt;FreeMarker template error:&lt;BR /&gt;The following has evaluated to null or missing:&lt;BR /&gt;==&amp;gt; {activity.activitySummary.pag [in template "workspace://SpacesStore/30d6545c-c332-4abf-b5cc-67297d7f1ac2" at line 53, column 130]&lt;/P&gt;&lt;P&gt;Tip: If the failing expression is known to be legally null/missing, either specify a default value with myOptionalVar!myDefault, or use &amp;lt;#if myOptionalVar??&amp;gt;when-present&amp;lt;#else&amp;gt;when-missing&amp;lt;/#if&amp;gt;. (These only cover the last step of the expression; to cover the whole expression, use parenthessis: (myOptionVar.foo)!myDefault, (myOptionVar.foo)??&lt;/P&gt;&lt;P&gt;The failing instruction (FTL stack trace):&lt;BR /&gt;----------&lt;BR /&gt;==&amp;gt; ${activity.activitySummary.page?html!""} [in template "workspace://SpacesStore/30d6545c-c332-4abf-b5cc-67297d7f1ac2" at line 53, column 128]&lt;BR /&gt;#assign itemLink = "\la href=\"\${sha... [in template "workspace://SpacesStore/30d6545c-c332-4abf-b5cc-67297d7f1ac2" at line 53, column 49]&lt;BR /&gt;----------&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2022 07:50:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121632#M33359</guid>
      <dc:creator>faobek</dc:creator>
      <dc:date>2022-11-08T07:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with freemarker in folder rule with Send Email</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121633#M33360</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;I think it is a problem with the chosen ftl.&lt;/P&gt;&lt;P&gt;Try not to choose an activities related ftl, some&amp;nbsp;notify_user_email.html.ftl should work.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;</description>
      <pubDate>Sun, 13 Nov 2022 21:04:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121633#M33360</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2022-11-13T21:04:07Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with freemarker in folder rule with Send Email</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121634#M33361</link>
      <description>&lt;P&gt;thanks a lot for your support,&lt;/P&gt;&lt;P&gt;I already tried many ftl sample, but with the same result.&lt;/P&gt;&lt;P&gt;more further information, when a receive a alfresco user notification mail (see capture), the result seems good.&lt;/P&gt;&lt;P&gt;perhaps there's more configuration to perform when used SendEmail in folder Rule?&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="rule5.jpg" style="width: 708px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1596i53DE8BBA2B9337F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 08:03:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121634#M33361</guid>
      <dc:creator>faobek</dc:creator>
      <dc:date>2022-11-16T08:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with freemarker in folder rule with Send Email</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121635#M33362</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;You may try also something like this, using content rule that runs a JS Script.&lt;/P&gt;&lt;P&gt;&lt;A href="https://angelborroy.wordpress.com/2015/05/22/alfresco-sending-a-notification-email-to-site-administrators-by-using-javascript-api/" target="_blank" rel="nofollow noopener noreferrer"&gt;https://angelborroy.wordpress.com/2015/05/22/alfresco-sending-a-notification-email-to-site-administrators-by-using-javascript-api/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The example uses a custom ftl in Data Dictionary.&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;--C.&lt;/P&gt;</description>
      <pubDate>Wed, 16 Nov 2022 19:51:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121635#M33362</guid>
      <dc:creator>cesarista</dc:creator>
      <dc:date>2022-11-16T19:51:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with freemarker in folder rule with Send Email</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121636#M33363</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I already used this js, but i have an other problem , I spent a hours without result.&lt;/P&gt;&lt;P&gt;the Message error was in this way :&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;org.springframework.mail.MailSendException: Failed messages: javax.mail.MessagingException: No MimeMessage content; message exceptions (1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Perhaps you have a clue in this.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Thanks a lot.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Nov 2022 08:21:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/problem-with-freemarker-in-folder-rule-with-send-email/m-p/121636#M33363</guid>
      <dc:creator>faobek</dc:creator>
      <dc:date>2022-11-17T08:21:38Z</dc:date>
    </item>
  </channel>
</rss>

