<?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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Choose function</title><link>https://community.appian.com/discussions/f/user-interface/18374/choose-function</link><description>Expression evaluation error in rule &amp;#39;regat_ca_getconstantbycategory&amp;#39; (called by rule &amp;#39;regat_ca_constantmanagement&amp;#39;) at function &amp;#39;choose&amp;#39;: Choose index cannot be null.</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Choose function</title><link>https://community.appian.com/thread/72382?ContentTypeID=1</link><pubDate>Thu, 27 Feb 2020 04:51:02 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ec3de4fe-4452-4c4d-adc2-410949928495</guid><dc:creator>Salma Khan</dc:creator><description>&lt;p&gt;thanks it worked&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Choose function</title><link>https://community.appian.com/thread/72362?ContentTypeID=1</link><pubDate>Wed, 26 Feb 2020 13:24:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:573a0e1d-b3aa-4dd5-b941-918bcbfc10e2</guid><dc:creator>davel001150</dc:creator><description>&lt;p&gt;You&amp;#39;re passing an integer into the rule, or creating a local variable that is an integer, and using it to evaluate the choose function.&amp;nbsp; At some point, that value was null and the choose function crashed.&lt;/p&gt;
&lt;p&gt;Two possibilities:&lt;/p&gt;
&lt;p&gt;1&amp;nbsp; Your integer, whatever it is, should never be null by that point, and you have a bug you need to investigate to find out why that integer is null.&lt;/p&gt;
&lt;p&gt;2&amp;nbsp; Your integer could be null sometimes as a perfectly valid value.&lt;/p&gt;
&lt;p&gt;In either case, you will probably want to&amp;nbsp;wrap your whole choose function inside an if().&amp;nbsp; if(isnull(), null response, choose() )&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>