Hi,I have been working with Flex Viewer and the eSearch Widget for a few months now. Everything has been going great but I have stumbled upon an issue. Currently, I am setting up the widget search for some new services that I have set up on my 10.1 server. I have set up the graphical, text, and spatial methods and they all work no problem for some layers but for other layers in the same service I get the error of:[RPC Fault faultString="Invalid or missing input parameters." faultcode="400" faultDetail=""]
In a few instances the two data layers that I am setting up, in the same service, have almost identical fields such as NAME, ADDRESS, and CITY but it the widget only works with one and not the other. Even when I have copy and pasted exact segments from one to the other. Below I have added the xml of two layers. One works while the other does not. As you can see, the fields I am using are similar. Any help would be greatly appreciate!Edit: Forgot to mention, I am running the 3.0 viewer with the corresponding widget.Thanks,SpencerWorks:<layer>
<definitionexpression></definitionexpression>
<enableexport>true</enableexport>
<name>New Jersey Correctional Institutions</name>
<url>http://XX.XXX.XX.XX:8080/arcgis/rest/services/NewJerseyLayersService/MapServer/2</url>
<expressions>
<expression alias="Name" textsearchlabel="Search Institution Name">
<values>
<value prompt="Example: Island Heights Police Department">upper(NAME) LIKE upper('%[value]%')</value>
</values>
</expression>
<expression alias="Address" textsearchlabel="Search Institution Address">
<values>
<value prompt="Example: 380 Hillsdale Avenue">upper(ADDRESS) LIKE upper('%[value]%')</value>
</values>
</expression>
<expression alias="City" textsearchlabel="Search Institution City">
<values>
<value prompt="Example: Chatham">upper(CITY) LIKE upper('%[value]%')</value>
</values>
</expression>
<expression alias="County" textsearchlabel="Search Institution County">
<values>
<value prompt="Example: Morris">upper(COUNTY) LIKE upper('%[value]%')</value>
</values>
</expression>
</expressions>
<graphicalsearchlabel>Use one of the graphical search tools to select a Correctional Institution</graphicalsearchlabel>
<spatialsearchlayer>true</spatialsearchlayer>
<titlefield>Name</titlefield>
<fields all="false">
<field name="OBJECTID" alias="ID" gridfield="true"/>
<field name="NAME" alias ="Name" gridfield="true"/>
<field name="ADDRESS" alias="Address" gridfield="true"/>
<field name="CITY" alias="City" gridfield="true"/>
<field name="COUNTY" alias="County" gridfield="true"/>
<field name="TELEPHONE" alias="Phone Number" gridfield="true"/>
</fields>
<links />
<zoomscale usegeometry="true" zoompercent="1.6" />
<autoopendatagrid>false</autoopendatagrid>
<relates />
<queryattachments>false</queryattachments>
</layer>
Does NOT work:<layer>
<definitionexpression></definitionexpression>
<enableexport>true</enableexport>
<name>New Jersey Hospitals</name>
<url>http://XX.XXX.XX.XX:8080/arcgis/rest/services/NewJerseyLayersService/MapServer/7</url>
<expressions>
<expression alias="Name" textsearchlabel="Search Hospital Name">
<values>
<value prompt="Example: Virtuawest Jersey Hospital">upper(NAME) LIKE upper('%[value]%')</value>
</values>
</expression>
<expression alias="Address" textsearchlabel="Search Hospital Address">
<values>
<value prompt="Example: 380 Hillsdale Avenue">upper(ADDRESS) LIKE upper('%[value]%')</value>
</values>
</expression>
<expression alias="City" textsearchlabel="Search Hospital City">
<values>
<value prompt="Example: Chatham">upper(CITY) LIKE upper('%[value]%')</value>
</values>
</expression>
<expression alias="County" textsearchlabel="Search Hospital County">
<values>
<value prompt="Example: Morris">upper(COUNTY) LIKE upper('%[value]%')</value>
</values>
</expression>
</expressions>
<graphicalsearchlabel>Use one of the graphical search tools to select a Hospital</graphicalsearchlabel>
<spatialsearchlayer>true</spatialsearchlayer>
<titlefield>Name</titlefield>
<fields all="false">
<field name="OBJECTID" alias="ID" gridfield="true"/>
<field name="NAME" alias ="Name" gridfield="true"/>
<field name="ADDRESS" alias="Address" gridfield="true"/>
<field name="CITY" alias="City" gridfield="true"/>
<field name="COUNTY" alias="County" gridfield="true"/>
<field name="TELEPHONE" alias="Phone Number" gridfield="true"/>
<field name="NAICDESCR" alias="Type" gridfield="true"/>
</fields>
<links />
<zoomscale usegeometry="true" zoompercent="1.6" />
<autoopendatagrid>false</autoopendatagrid>
<relates />
<queryattachments>false</queryattachments>
</layer>