<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>KB-1046 "No valid recipients resolved" error thrown when using Send Email</title><link>https://community.appian.com/support/w/kb/271/kb-1046-no-valid-recipients-resolved-error-thrown-when-using-send-email</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1046 "No valid recipients resolved" error thrown when using Send Email</title><link>https://community.appian.com/support/w/kb/271/kb-1046-no-valid-recipients-resolved-error-thrown-when-using-send-email</link><pubDate>Tue, 14 Feb 2017 18:25:16 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:91e07751-4c79-41db-b16c-1b24890cf928</guid><dc:creator>Nick Vigilante</dc:creator><comments>https://community.appian.com/support/w/kb/271/kb-1046-no-valid-recipients-resolved-error-thrown-when-using-send-email#comments</comments><description>Current Revision posted to Appian Knowledge Base by Nick Vigilante on 2/14/2017 6:25:16 PM&lt;br /&gt;
&lt;div class="row content_container"&gt;
&lt;h2 id="symptoms"&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;When using the Send Email Smart Service nodes in a process, emails are not sent as expected. The following error is seen in the application server log:&lt;/p&gt;
&lt;pre&gt; INFO  [stdout\] (Appian Work Item - 1 - ProcessExec00 : 
UnattendedJavaActivityRequest) 
    
[Appian Work Item - 1 - ProcessExec00 : UnattendedJavaActivityRequest] 
ERROR com.appiancorp.process.runtime.activities.SendEmailActivity - java.lang.Exception: No valid recipients resolved
&lt;/pre&gt;
&lt;p&gt;In addition, the following alert is seen in Appian Designer:&lt;/p&gt;
&lt;p&gt;&lt;a href="/cfs-file/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1487096605678v1.png"&gt;&lt;img src="/resized-image/__size/1200x90000/__key/communityserver-wikis-components-files/00-00-00-00-11/pastedimage1487096605678v1.png" alt=" " /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;With these errors, the process instance will fail.&lt;/p&gt;
&lt;h2 id="cause"&gt;Cause&lt;/h2&gt;
&lt;p&gt;The &amp;quot;To&amp;quot; field of the &amp;quot;Send Email&amp;quot; node is not of the type emailRecipient. This can happen, for example, if there is a process variable that is of a type other than emailRecipient (such as Text) in the &amp;quot;To&amp;quot; field.&lt;/p&gt;
&lt;h2 id="action"&gt;Action&lt;/h2&gt;
&lt;p&gt;Cast the To field value to the emailRecipient type by using the &lt;code&gt;toemailrecipient()&lt;/code&gt; function.&lt;/p&gt;
&lt;h2 id="affected-versions"&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;/div&gt;
&lt;p&gt;Last Reviewed:&amp;nbsp;February 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: process models, application design&lt;/div&gt;
</description></item></channel></rss>