<?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-1441 Could not find variable 'env!clientMode' using a!recordLink()</title><link>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>KB-1441 Could not find variable 'env!clientMode' using a!recordLink()</title><link>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink</link><pubDate>Mon, 23 Jul 2018 03:44:07 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a427bc2-2217-408f-9b33-3129c891cc67</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink#comments</comments><description>Current Revision posted to Appian Knowledge Base by Parmida Borhani on 7/23/2018 3:44:07 AM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following errors are seen when using &lt;code&gt;a!recordLink()&lt;/code&gt; to generate a URL for a record:&lt;/p&gt;
&lt;div class="preformatted panel"&gt;
&lt;div class="preformattedContent panelContent"&gt;
&lt;pre&gt;ERROR:An error occurred while evaluating expression: =rule![RULE_NAME] (Could not find variable &amp;#39;env!clientMode&amp;#39;) (Data Inputs)&lt;/pre&gt;
&lt;pre class="code-java"&gt;Expression evaluation error in rule &amp;#39;RULE_NAME&amp;#39; at function a!recordLink: Could not find variable &amp;#39;env!clientMode&amp;#39;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;SAIL functions like &lt;code&gt;a!recordLink()&lt;/code&gt; return internal system data types. Parsing the fields of the returned system data type in an expression causes the error described in this article&amp;nbsp;and is not supported because they often change between versions and hotfixes.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Use the OOTB functionality included with &lt;code&gt;urlforrecord()&lt;/code&gt; instead of building a link by parsing the output of &lt;code&gt;a!recordLink()&lt;/code&gt;.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: records, functions, SAIL, application design&lt;/div&gt;
</description></item><item><title>KB-1441 Could not find variable 'env!clientMode' using a!recordLink()</title><link>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink/revision/7</link><pubDate>Thu, 21 Dec 2017 21:50:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a427bc2-2217-408f-9b33-3129c891cc67</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink#comments</comments><description>Revision 7 posted to Appian Knowledge Base by Parmida Borhani on 12/21/2017 9:50:41 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following errors are seen when using &lt;code&gt;a!recordLink()&lt;/code&gt; to generate a URL for a record:&lt;/p&gt;
&lt;div class="preformatted panel"&gt;
&lt;div class="preformattedContent panelContent"&gt;
&lt;pre&gt;ERROR:An error occurred while evaluating expression: =rule![RULE_NAME] (Could not find variable &amp;#39;env!clientMode&amp;#39;) (Data Inputs)&lt;/pre&gt;
&lt;pre class="code-java"&gt;Expression evaluation error in rule &amp;#39;RULE_NAME&amp;#39; at function a!recordLink: Could not find variable &amp;#39;env!clientMode&amp;#39;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;SAIL functions like &lt;code&gt;a!recordLink()&lt;/code&gt; return internal system data types. Parsing the fields of the returned system data type in an expression causes the error described in this article&amp;nbsp;and is not supported because they often change between versions and hotfixes.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Use the OOTB functionality included with &lt;code&gt;urlforrecord()&lt;/code&gt; instead of building a link by parsing the output of &lt;code&gt;a!recordLink()&lt;/code&gt;.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: records, functions, SAIL&lt;/div&gt;
</description></item><item><title>DRAFT KB-XXXX Could not find variable 'env!clientMode'</title><link>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink/revision/6</link><pubDate>Wed, 20 Dec 2017 22:29:50 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a427bc2-2217-408f-9b33-3129c891cc67</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink#comments</comments><description>Revision 6 posted to Appian Knowledge Base by Parmida Borhani on 12/20/2017 10:29:50 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following errors are seen when using &lt;code&gt;a!recordLink()&lt;/code&gt; to generate a URL for a record:&lt;/p&gt;
&lt;div class="preformatted panel"&gt;
&lt;div class="preformattedContent panelContent"&gt;
&lt;pre&gt;ERROR:An error occurred while evaluating expression: =rule![RULE_NAME] (Could not find variable &amp;#39;env!clientMode&amp;#39;) (Data Inputs)&lt;/pre&gt;
&lt;pre class="code-java"&gt;Expression evaluation error in rule &amp;#39;RULE_NAME&amp;#39; at function a!recordLink: Could not find variable &amp;#39;env!clientMode&amp;#39;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;SAIL functions like &lt;code&gt;a!recordLink()&lt;/code&gt; return internal system data types. Parsing the fields of the returned system data type in an expression causes the error described in this article&amp;nbsp;and is not supported because they often change between versions and hotfixes.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Use the OOTB functionality included with &lt;code&gt;urlforrecord()&lt;/code&gt; instead of building a link by parsing the output of &lt;code&gt;a!recordLink()&lt;/code&gt;.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: records, functions, SAIL&lt;/div&gt;
</description></item><item><title>Could not find variable 'env!clientMode'</title><link>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink/revision/5</link><pubDate>Wed, 20 Dec 2017 16:07:17 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a427bc2-2217-408f-9b33-3129c891cc67</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink#comments</comments><description>Revision 5 posted to Appian Knowledge Base by Parmida Borhani on 12/20/2017 4:07:17 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following errors are seen when using &lt;code&gt;a!recordLink()&lt;/code&gt; to generate a URL for a record:&lt;/p&gt;
&lt;div class="preformatted panel"&gt;
&lt;div class="preformattedContent panelContent"&gt;
&lt;pre&gt;ERROR:An error occurred while evaluating expression: =rule![RULE_NAME] (Could not find variable &amp;#39;env!clientMode&amp;#39;) (Data Inputs)&lt;/pre&gt;
&lt;pre class="code-java"&gt;Expression evaluation error in rule &amp;#39;RULE_NAME&amp;#39; at function a!recordLink: Could not find variable &amp;#39;env!clientMode&amp;#39;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;SAIL functions like &lt;code&gt;a!recordLink()&lt;/code&gt; return internal system data types. Parsing the fields of the returned system data type in an expression causes the error described in this article&amp;nbsp;and is not supported because they often change between versions and hotfixes.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Use the OOTB functionality included with &lt;code&gt;urlforrecord()&lt;/code&gt; instead of building a link by parsing the output of &lt;code&gt;a!recordLink()&lt;/code&gt;.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: records, functions, SAIL&lt;/div&gt;
</description></item><item><title>Could not find variable 'env!clientMode'</title><link>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink/revision/4</link><pubDate>Tue, 19 Dec 2017 16:09:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a427bc2-2217-408f-9b33-3129c891cc67</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink#comments</comments><description>Revision 4 posted to Appian Knowledge Base by Parmida Borhani on 12/19/2017 4:09:56 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following errors are seen when using &lt;code&gt;a!recordLink()&lt;/code&gt; to generate a URL for a record:&lt;/p&gt;
&lt;div class="preformatted panel"&gt;
&lt;div class="preformattedContent panelContent"&gt;
&lt;pre&gt;ERROR:An error occurred while evaluating expression: =rule![RULE_NAME] (Could not find variable &amp;#39;env!clientMode&amp;#39;) (Data Inputs)&lt;/pre&gt;
&lt;pre class="code-java"&gt;Expression evaluation error in rule &amp;#39;RULE_NAME&amp;#39; at function a!recordLink: Could not find variable &amp;#39;env!clientMode&amp;#39;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;SAIL functions like &lt;code&gt;a!recordLink()&lt;/code&gt; return data types. This error occurs when fields from SAIL functions that return data types are used in expressions. Parsing internal CDTs like this is not a supported implementation, because they often change between versions and hotfixes.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Use the OOTB functionality included with &lt;code&gt;urlforrecord()&lt;/code&gt; instead of building a link by parsing the output of &lt;code&gt;a!recordLink()&lt;/code&gt;.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: records, functions, SAIL&lt;/div&gt;
</description></item><item><title>Could not find variable 'env!clientMode'</title><link>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink/revision/3</link><pubDate>Mon, 18 Dec 2017 23:24:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a427bc2-2217-408f-9b33-3129c891cc67</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink#comments</comments><description>Revision 3 posted to Appian Knowledge Base by Parmida Borhani on 12/18/2017 11:24:57 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following errors are seen when using a!recordLink() to generate a URL for a record:&lt;/p&gt;
&lt;div class="preformatted panel"&gt;
&lt;div class="preformattedContent panelContent"&gt;
&lt;pre&gt;ERROR:An error occurred while evaluating expression: =rule![RULE_NAME] (Could not find variable &amp;#39;env!clientMode&amp;#39;) (Data Inputs)&lt;/pre&gt;
&lt;pre class="code-java"&gt;Expression evaluation error in rule &amp;#39;RULE_NAME&amp;#39; at function a!recordLink: Could not find variable &amp;#39;env!clientMode&amp;#39;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;SAIL functions like a!recordLink() return data types. This error occurs when fields from SAIL functions that return data types are used in expressions. Parsing internal CDTs like this is not a supported implementation, because they often change between versions and hotfixes.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Action&lt;/h2&gt;
&lt;p&gt;Use the OOTB functionality included with urlforrecord() instead of building a link by parsing the output of a!recordLink().&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: records, functions, SAIL&lt;/div&gt;
</description></item><item><title>Could not find variable 'env!clientMode'</title><link>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink/revision/2</link><pubDate>Mon, 18 Dec 2017 23:23:23 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a427bc2-2217-408f-9b33-3129c891cc67</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink#comments</comments><description>Revision 2 posted to Appian Knowledge Base by Parmida Borhani on 12/18/2017 11:23:23 PM&lt;br /&gt;
&lt;h2&gt;Symptoms&lt;/h2&gt;
&lt;p&gt;The following errors are seen when using a!recordLink() to generate a URL for a record:&lt;/p&gt;
&lt;div class="preformatted panel"&gt;
&lt;div class="preformattedContent panelContent"&gt;
&lt;pre&gt;ERROR:An error occurred while evaluating expression: =rule![RULE_NAME] (Could not find variable &amp;#39;env!clientMode&amp;#39;) (Data Inputs)&lt;/pre&gt;
&lt;pre class="code-java"&gt;Expression evaluation error in rule &amp;#39;RULE_NAME&amp;#39; at function a!recordLink: Could not find variable &amp;#39;env!clientMode&amp;#39;&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;h2&gt;Cause&lt;/h2&gt;
&lt;p&gt;SAIL functions like a!recordLink() return data types. This error occurs when fields from SAIL functions that return data types are used in expressions. Parsing internal CDTs like this is not a supported implementation, because they often change between versions and hotfixes.&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Workaround&lt;/h2&gt;
&lt;p&gt;Use the OOTB functionality included with urlforrecord() instead of building a link by parsing the output of a!recordLink().&amp;nbsp;&lt;/p&gt;
&lt;h2&gt;Affected Versions&lt;/h2&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;
&lt;p&gt;Last Reviewed: December 2017&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: records, functions, SAIL&lt;/div&gt;
</description></item><item><title>How to generate a link to a site record</title><link>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink/revision/1</link><pubDate>Tue, 25 Jul 2017 01:03:36 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:6a427bc2-2217-408f-9b33-3129c891cc67</guid><dc:creator>Parmida Borhani</dc:creator><comments>https://community.appian.com/support/w/kb/646/kb-1441-could-not-find-variable-env-clientmode-using-a-recordlink#comments</comments><description>Revision 1 posted to Appian Knowledge Base by Parmida Borhani on 7/25/2017 1:03:36 AM&lt;br /&gt;
&lt;p&gt;The OOTB feature,&amp;nbsp;&lt;a href="https://docs.appian.com/suite/help/latest/fnc_scripting_urlforrecord.html"&gt;urlforrecord() function&lt;/a&gt;,&amp;nbsp;should be used to create record links instead of the &lt;a href="https://docs.appian.com/suite/help/latest/Record_Link_Component.html"&gt;a!recordLink() function&lt;/a&gt;. Parsing the &lt;strong&gt;a!recordlink()&lt;/strong&gt; function and using the CDT fields to generate a link to a site record is an unsupported design and should be replaced with &lt;strong&gt;urlforrecord()&lt;/strong&gt;. Generally, fields from SAIL functions that return data types should not be used in expressions, because they often change between versions and hotfixes.&lt;/p&gt;
&lt;p&gt;Last Reviewed: July 2017&lt;/p&gt;
&lt;p&gt;This article applies to all versions of Appian.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: records, functions, SAIL, how-to&lt;/div&gt;
</description></item></channel></rss>