<?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>All selected values must be present in the choiceValues array</title><link>https://community.appian.com/discussions/f/user-interface/37288/all-selected-values-must-be-present-in-the-choicevalues-array</link><description>While calling a interface in another interface, I encountered the error message &amp;quot;All selected values must be present in the choiceValues array&amp;quot;. I used same constant in both choice label and choice values i.e. cons! 
 Below are the supporting documents</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: All selected values must be present in the choiceValues array</title><link>https://community.appian.com/thread/139562?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 09:00:44 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:16260f2b-5432-4daa-a043-95b5c2f3a8e4</guid><dc:creator>gayathris876948</dc:creator><description>&lt;p&gt;It sounds like you&amp;#39;re encountering a mismatch between the selected value and the &lt;code&gt;choiceValues&lt;/code&gt; in your dropdown or radio button field. Here&amp;#39;s how to resolve it:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Create a New Constant for IDs:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If your &lt;code&gt;employee type&lt;/code&gt; is stored as an ID (integer), create a separate constant for these ID values (e.g., &lt;code&gt;1, 2, 3, 4&lt;/code&gt;).&lt;/li&gt;
&lt;li&gt;Use this new constant in the &lt;code&gt;choiceValues&lt;/code&gt; field while keeping your existing constant for the &lt;code&gt;choiceLabels&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Use &lt;code&gt;dropdownFieldByIndex()&lt;/code&gt; (if IDs are sequential):&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;If the IDs are in order, you can use &lt;code&gt;dropdownFieldByIndex()&lt;/code&gt; to simplify the dropdown setup.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;&lt;strong&gt;Ideal Long-Term Solution:&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Store your employee types in a database table with columns for IDs, names, and an &lt;code&gt;isActive&lt;/code&gt; flag.&lt;/li&gt;
&lt;li&gt;Use &lt;code&gt;QueryEntity&lt;/code&gt; to fetch the &lt;code&gt;choiceLabels&lt;/code&gt; and &lt;code&gt;choiceValues&lt;/code&gt; dynamically. This approach allows easier updates and potential admin management.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;This should resolve the error and provide a more flexible solution for future change&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: All selected values must be present in the choiceValues array</title><link>https://community.appian.com/thread/139552?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 04:48:48 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7f6ba341-52b7-44a3-ad15-6d9c806a2467</guid><dc:creator>Konduru Chaitanya</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="/members/ankitas8394"&gt;ankitas8394&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The value in the local!empData has the value for Employment type as 2.Permanent which does not match with the constant values which is Permanent. You need to check the data that is present in the local!empData.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Correct the value either in the constant or check the AE_Convert_API_Response_Data and configure the output accordingly. Please share the rule!&lt;span&gt;AE_Convert_API_Response_Data&amp;nbsp; Code snippet here.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>