<?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>Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/discussions/f/general/25434/could-not-display-interface-please-check-definition-and-inputs</link><description>I was able to trace this issue down to the interface object. The new error from the design view when I click the EDIT link is: 
 
 Could not display interface. Please check definition and inputs. Interface Definition: Expression evaluation error at function</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/thread/99035?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 21:30:03 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:51a7629d-d353-4e15-a697-beec15b6be5f</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;I&amp;#39;m afraid you&amp;#39;ll need to do some troubleshooting here.&amp;nbsp; Again this would be far simpler if you would establish a single local variable array to hold the dictionary values for your choiceLabels / values; since then you could review what the array values are.&lt;/p&gt;
&lt;p&gt;The initial error message you posted in the original post makes it pretty clear, though, as pointed out in the initial reply by Chris - your choiceValues array has duplicates, which is not allowed.&amp;nbsp; The error output you pasted has &lt;em&gt;&lt;strong&gt;many&lt;/strong&gt;&lt;/em&gt; duplicate values.&amp;nbsp; It looks like the whole first part of the set ({4, 15 ... 29; 37}) contains items duplicated at least once elsewhere in the array.&amp;nbsp; I assume the likely culprit is the &amp;quot;append()&amp;quot; you&amp;#39;re doing - this will need to be revised.&lt;br /&gt;&lt;img src="/resized-image/__size/320x240/__key/communityserver-discussions-components-files/11/pastedimage1659648555823v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/thread/99034?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 21:17:41 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:c41305b2-09cf-48d6-a99b-65a0a6f88265</guid><dc:creator>nicholaso0002</dc:creator><description>&lt;p&gt;Thank you, Mike.&lt;/p&gt;
&lt;p&gt;for some reason am not sure of; the code below works with no errors:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; item: a!dropdownField(
            label: if(
              local!isDependent,
              &amp;quot;Relationship to Parent&amp;quot;,
              &amp;quot;Relationship to Child&amp;quot;
            ),
            placeholder: &amp;quot;Please select a relationship&amp;quot;,
            choiceLabels: if(
              local!isDependent,
              local!lkupDepChildRelationshipType.childRelationshipTypeDesc,
              local!lkupPrimaryChildRelationshipType.childRelationshipTypeDesc
              /*remove(touniformstring(local!lkupPrimaryChildRelationshipType.childRelationshipTypeDesc), wherecontains({&amp;quot;OBLIGEE&amp;quot;}, trim(touniformstring(local!lkupPrimaryChildRelationshipType.childRelationshipTypeDesc))))*/
            ),
            choiceValues: if(
              local!isDependent,
              local!lkupDepChildRelationshipType.childRelationshipTypeId,
              /*remove(touniformstring(local!lkupPrimaryChildRelationshipType.childRelationshipTypeDesc), wherecontains({&amp;quot;OBLIGEE&amp;quot;}, trim(touniformstring(local!lkupPrimaryChildRelationshipType.childRelationshipTypeDesc))))*/
              local!lkupPrimaryChildRelationshipType.childRelationshipTypeId
            ),
            value: ri!droRecPersonLinks.childRelationshipTypeId,
            saveInto: ri!droRecPersonLinks.childRelationshipTypeId,
            disabled: not(local!isEditable)
          ),&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/thread/99032?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 21:04:39 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:77d5f4ae-b843-42ca-9633-d6f944877306</guid><dc:creator>Mike Schmitt</dc:creator><description>&lt;p&gt;If I may offer a bit of code review advice... you&amp;#39;re doing a lot of manual work in unnecessarily duplicative ways in this code, for no apparent reason.&amp;nbsp; For one example, you&amp;#39;re calling this query, `&lt;strong&gt;&lt;em&gt;rule!droQueryLkupChildRelationshipTypeEntity(childRelationshipTypeId: ri!droRecPersonLinks.childRelationshipTypeId)&lt;/em&gt;&lt;/strong&gt;`, at least 4 different times even though it&amp;#39;s being called in exactly the same way each time.&amp;nbsp; This sort of thing is a strong indicator that you&amp;#39;re not leveraging local variables enough (or correctly at all).&lt;/p&gt;
&lt;p&gt;Secondarily your &lt;strong&gt;&lt;em&gt;choiceValues&lt;/em&gt;&lt;/strong&gt; and &lt;em&gt;&lt;strong&gt;choiceLabels&lt;/strong&gt;&lt;/em&gt; arrays appear to be using almost the exact same code, with the only difference being that one is pulling out the &lt;em&gt;Id&lt;/em&gt; property and the other is pulling out the &lt;em&gt;Desc&lt;/em&gt; property.&amp;nbsp; What you *should* be doing is running all that code &lt;em&gt;&lt;strong&gt;once&lt;/strong&gt;&lt;/em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;em&gt;&lt;/em&gt; in a local variable definition, to assemble a dictionary array containing both of those properties, then simply referring to that local variable like &amp;quot;local!myList.Id&amp;quot;, &amp;quot;local!myList.Desc&amp;quot; in your dropdown component configuration.&amp;nbsp; This would be much easier to troubleshoot and maintain in the future.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Could not display interface. Please check definition and inputs.</title><link>https://community.appian.com/thread/99025?ContentTypeID=1</link><pubDate>Thu, 04 Aug 2022 16:42:57 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f69a662b-acc7-4e7f-94fe-1c32fab05702</guid><dc:creator>Chris</dc:creator><description>&lt;p&gt;Without full digesting your use case, you must ensure the values in the dropdown are unique, but there are duplicates in your list.&amp;nbsp; Often this is done with the union() function such as:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="csharp"&gt;a!localVariables(
  local!values: {1,2,3,4,4,5,5,6,7,8,8,9},
  
  union(local!values,local!values)
)&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>