esearch widget- RPC Fault Fault string="Invalid or Missing input Parameters

3632
16
Jump to solution
02-01-2013 07:37 AM
JayDira
Emerging Contributor
Hello I was trying to configure the esearch widget to utilize our layers but when I run it I get:

RPC Fault Fault String="Invalid or Missing input Parameters." faultCode="400" faultDetail="

Below is my code...
Any help will be appreciated:
-----------------------------------------------------------------------------

<layers>
 

  <layer>
   <definitionexpression></definitionexpression>
   <enableexport>true</enableexport>
   <name>APN</name>
   <url>http://dbgis:6080/ArcGIS/rest/services/Parcels042012/MapServer/0</url>
 

   <expressions>
    <expression alias="APN" textsearchlabel="Search by APN:">

     <values>
      <value prompt="Example: 181001490000 ">APN LIKE '%[value]%'</value>
     </values>
    </expression>
   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select Incidents</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>Parcel APN</titlefield>
   <fields all="false">
    <field name="APN" gridfield="true" />
    <field name="OWNER" gridfield="true" />
    <field name="ADDRES" gridfield="true" />
    <field name="CITY" gridfield="true" />
    <field name="STATE" gridfield="true" />
    <field name="ZIP" gridfield="true" />
   
   </fields>
   <links></links>
   <zoomscale usegeometry="true" zoompercent="1.6" />
   <autoopendatagrid>true</autoopendatagrid>
   <relates></relates>
   <queryattachments>true</queryattachments>
  </layer>

<layer>
   <definitionexpression></definitionexpression>
   <enableexport>true</enableexport>
   <name>Parcel Owner</name>
   <url>http://dbgis:6080/ArcGIS/rest/services/Parcels042012/MapServer/0</url>
   <expressions>
    <expression alias="OWNER" textsearchlabel="Search by Owner Name:">
     <values>
      <value prompt="Example: Joe Smith ">Owner LIKE '%[value]%'</value>
     </values>
    </expression>
   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select Incidents</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>APN</titlefield>
   <fields all="false">
    <field name="APN" gridfield="true" />
    <field name="OWNER" gridfield="true" />
    <field name="ADDRES" gridfield="true" />
    <field name="CITY" gridfield="true" />
    <field name="STATE" gridfield="true" />
    <field name="ZIP" gridfield="true" />
   
   </fields>
   <links></links>
   <zoomscale usegeometry="true" zoompercent="1.6" />
   <autoopendatagrid>true</autoopendatagrid>
   <relates></relates>
   <queryattachments>true</queryattachments>
  </layer>
<layer>
   <definitionexpression></definitionexpression>
   <enableexport>true</enableexport>
   <name>Parcel Address</name>
   <url>http://dbgis:6080/ArcGIS/rest/services/Parcels042012/MapServer/0</url>
   <expressions>

    <expression alias="ADDRESS" textsearchlabel="Search by ADDRESS:">


     <values>
      <value prompt="Example: 21825 Copley ">ADDRESS LIKE '%[value]%'</value>
     </values>
    </expression>
   </expressions>
   <graphicalsearchlabel>Use one of the graphical search tools to select Incidents</graphicalsearchlabel>
   <spatialsearchlayer>true</spatialsearchlayer>
   <titlefield>APN</titlefield>
   <fields all="false">
    <field name="APN" gridfield="true" />
    <field name="OWNER" gridfield="true" />
    <field name="ADDRES" gridfield="true" />
    <field name="CITY" gridfield="true" />
    <field name="STATE" gridfield="true" />
    <field name="ZIP" gridfield="true" />
   
   </fields>
   <links></links>
   <zoomscale usegeometry="true" zoompercent="1.6" />
   <autoopendatagrid>true</autoopendatagrid>
   <relates></relates>
   <queryattachments>true</queryattachments>
  </layer>
Tags (2)
0 Kudos
16 Replies
JordanBaumgardner
Frequent Contributor
First - Thank you so much. That was indeed my problem.
Second - Frackn grrrr. Spent 2 days chasing my tail. Should have asked for help sooner. The old config file had that, and I never questioned it.

Thanks again.
0 Kudos
ScottLamon
Deactivated User

I've encountered a similar issue, and this type of thing is really not my forte.  Any help would be greatly appreciated.

<!-- Contract --> 
<layer>

            <enableexport>true</enableexport>

            <name>Contracts</name>

            <url>http://bvlwbip74.conoco.net/ArcGIS/rest/services/RPA_Maps/RPA_Land/MapServer/0</url>

            <expressions>

           <expression alias="Number" textsearchlabel="Search Number [ Example: 255088 ]:">upper(CONTRACT) LIKE upper('%[value]%')</expression>
           <expression alias="Agency Number" textsearchlabel="Search Agency Number [ Example: 411753 ]:">upper(AGENCY_NO) LIKE upper('%[value]%')</expression>
           <expression alias="Prospect" textsearchlabel="Search Prospect [ Example: Little River ]:">upper(PROSPECT) LIKE upper('%[value]%')</expression>
           <expression alias="Type" textsearchlabel="Search Type [ Example: Forced Pooling Order ]:">upper(TYPE) LIKE upper('%[value]%')</expression>
           <!--expression alias="Date" textsearchlabel="Search Date [ Example: Forced Pooling Order ]:">upper(TYPE) LIKE upper('%[value]%')</expression-->

            </expressions>

            <graphicalsearchlabel>Use one of the graphical search tools to select</graphicalsearchlabel>

<spatialsearchlayer>true</spatialsearchlayer>
<titlefield>CONTRACT</titlefield>

            <fields all="false">

                <field name="CONTRACT" alias="Contract Number" gridfield="true"/>

                <field name="STATE" alias="State" gridfield="true"/>

                <field name="COUNTY" alias="County" gridfield="true"/>

                <field name="PROSPECT" alias="Prospect" gridfield="true"/>

                <field name="TYPE" alias="Type" gridfield="true"/>

                <field name="AGENCY_NO" alias="Agency Number" gridfield="true"/>

                <field name="EFF_DTE" alias="Effective Date" dateformat="MM/DD/YYYY" gridfield="true"/>

                <field name="EXP_DTE" alias="Expiration Date" dateformat="MM/DD/YYYY" gridfield="true"/>

                <field name="Link" alias="LiveLink" hyperlinkgridfield="true"/>

                <field name="LEGACY_NO" gridfield="true" gridfieldonly="true"/>

                <field name="DESCRIPTION" gridfield="true" gridfieldonly="true"/>

                <field name="GROSS_ACRES" gridfield="true" gridfieldonly="true"/>

                <field name="NET_ACRES" gridfield="true" gridfieldonly="true"/>

                <field name="PROSP_NO" gridfield="true" gridfieldonly="true"/>

                <field name="ASSET_AREA" gridfield="true" gridfieldonly="true"/>

                <field name="BU" gridfield="true" gridfieldonly="true"/>

                <field name="HERITAGE_CO" gridfield="true" gridfieldonly="true"/>

                <field name="EXP_DATE" gridfield="true" dateformat="MM/DD/YYYY" gridfieldonly="true"/>

                <field name="EFF_DATE" gridfield="true" dateformat="MM/DD/YYYY" gridfieldonly="true"/>

                <field name="GRP_CODE" gridfield="true" gridfieldonly="true"/>

                <field name="STAGE" gridfield="true" gridfieldonly="true"/>

                <field name="CNTY_CODE" gridfield="true" gridfieldonly="true"/>

                <field name="FILE_NUM" gridfield="true" gridfieldonly="true"/>

                <field name="SDE_DATE" gridfield="true" dateformat="MM/DD/YYYY" gridfieldonly="true"/>

                <field name="FILE_KEY" gridfield="true" gridfieldonly="true"/>

            </fields>

            <icon isfield="false">assets/images/Livelink.gif</icon>

            <linkfield>Link</linkfield>           

            <zoomscale>50000</zoomscale>

           </layer>

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Scott,

   Most of the time people encounter this error due to the incorrect spelling or CaSe of a field name in their list of fields. You need to double check the names of all the fields you have listed and their CaSe to see if they match your rest service directory. I can help with this part because your rest endpoint is not accessible to me.

0 Kudos
ScottLamon
Deactivated User

Thanks Robert. 

I found a few that were not correct and made the changes, but am still getting the error
This is how the fields appear in the rest endpoint:

Fields:

  • CONTRACT ( type: esriFieldTypeString , alias: CONTRACT , length: 30 )
  • LEGACY_NO ( type: esriFieldTypeString , alias: LEGACY_NO , length: 20 )
  • EFF_DATE ( type: esriFieldTypeString , alias: EFF_DATE , length: 8 )
  • EFF_DTE ( type: esriFieldTypeDate , alias: EFF_DTE , length: 36 )
  • TYPE ( type: esriFieldTypeString , alias: TYPE , length: 30 )
  • DESCRIPTION ( type: esriFieldTypeString , alias: DESCRIPTION , length: 40 )
  • GROSS_ACRES ( type: esriFieldTypeDouble , alias: GROSS_ACRES )
  • NET_ACRES ( type: esriFieldTypeDouble , alias: NET_ACRES )
  • PROSPECT ( type: esriFieldTypeString , alias: PROSPECT , length: 45 )
  • PROSP_NO ( type: esriFieldTypeString , alias: PROSP_NO , length: 10 )
  • COUNTY ( type: esriFieldTypeString , alias: COUNTY , length: 30 )
  • STATE ( type: esriFieldTypeString , alias: STATE , length: 2 )
  • AGENCY_NO ( type: esriFieldTypeString , alias: AGENCY_NO , length: 15 )
  • ASSET_AREA ( type: esriFieldTypeString , alias: ASSET_AREA , length: 45 )
  • BU ( type: esriFieldTypeString , alias: BU , length: 45 )
  • HERITAGE_CO ( type: esriFieldTypeString , alias: HERITAGE_CO , length: 3 )
  • EXP_DATE ( type: esriFieldTypeString , alias: EXP_DATE , length: 8 )
  • EXP_DTE ( type: esriFieldTypeDate , alias: EXP_DTE , length: 36 )
  • GRP_CODE ( type: esriFieldTypeString , alias: GRP_CODE , length: 3 )
  • STAGE ( type: esriFieldTypeString , alias: STAGE , length: 30 )
  • CNTY_CODE ( type: esriFieldTypeString , alias: CNTY_CODE , length: 3 )
  • FILE_NUM ( type: esriFieldTypeString , alias: FILE_NUM , length: 16 )
  • FILE_KEY ( type: esriFieldTypeInteger , alias: FILE_KEY )
  • SDE_UPDATE ( type: esriFieldTypeDate , alias: SDE_UPDATE , length: 36 )
  • LINK ( type: esriFieldTypeString , alias: LINK , length: 255 )
  • MAP_CODE ( type: esriFieldTypeString , alias: MAP_CODE , length: 3 )
  • LINKPREFIX ( type: esriFieldTypeString , alias: LINKPREFIX , length: 255 )
  • LINKSUFFIX ( type: esriFieldTypeString , alias: LINKSUFFIX , length: 255 )
  • SHAPE ( type: esriFieldTypeGeometry , alias: SHAPE )
  • OBJECTID ( type: esriFieldTypeOID , alias: OBJECTID )
  • SHAPE.AREA ( type: esriFieldTypeDouble , alias: SHAPE.AREA )
  • SHAPE.LEN ( type: esriFieldTypeDouble , alias: SHAPE.LEN )

Link and SDE_DATE were the 2 I changed in the code to match the rest list.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Did you clear your browsers cache to be sure you are getting the updated XML file?

0 Kudos
ScottLamon
Deactivated User

I did, still getting the same error.

The service is drawing in the application and is identifiable in ArcMap.

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Scott,

  If you are using the the 3.6.x version that your expressions section is out of date (the format you were using is for older version):

          <!--Contract-->

          <layer>

            <token/>

            <definitionexpression/>

            <enableprintgrid>true</enableprintgrid>

            <enableexport>true</enableexport>

            <name>Contracts</name>

            <url>http://bvlwbip74.conoco.net/ArcGIS/rest/services/RPA_Maps/RPA_Land/MapServer/0</url>

            <expressions>

                <expression alias="Number" textsearchlabel="Search Number" isvaluerequired="true">

                    <values>

                        <value prompt="Example: 255088" isvaluerequired="true">upper(CONTRACT) LIKE upper('%[value]%')</value>                       

                    </values>

                </expression>  

                <expression alias="Agency Number" textsearchlabel="Search Agency Number" isvaluerequired="true">

                    <values>

                        <value prompt="Example: 411753" isvaluerequired="true">upper(AGENCY_NO) LIKE upper('%[value]%')</value>                       

                    </values>

                </expression>

                <expression alias="Prospect" textsearchlabel="Search Prospect" isvaluerequired="true">

                    <values>

                        <value prompt="Example: Little River" isvaluerequired="true">upper(PROSPECT) LIKE upper('%[value]%')</value>                       

                    </values>

                </expression>

                <expression alias="Type" textsearchlabel="Search Type" isvaluerequired="true">

                    <values>

                        <value prompt="Example: Forced Pooling Order" isvaluerequired="true">upper(TYPE) LIKE upper('%[value]%')</value>                       

                    </values>

                </expression>

            </expressions>

            <graphicalsearchlabel>Use one of the graphical search tools to select</graphicalsearchlabel>

            <spatialsearchlayer>true</spatialsearchlayer>

            <titlefield>CONTRACT</titlefield>

            <fields all="false">

                <field name="CONTRACT" alias="Contract Number"/>

                <field name="STATE" alias="State" gridfield="true"/>

                <field name="COUNTY" alias="County" gridfield="true"/>

                <field name="PROSPECT" alias="Prospect"/>

                <field name="TYPE" alias="Type"/>

                <field name="AGENCY_NO" alias="Agency Number"/>

                <field name="EFF_DTE" alias="Effective Date" dateformat="MM/DD/YYYY" gridfield="true"/>

                <field name="EXP_DTE" alias="Expiration Date" dateformat="MM/DD/YYYY" gridfield="true"/>

                <field name="LINK" alias="LiveLink" hyperlinkgridfield="true"/>

                <field name="LEGACY_NO" gridfield="true" gridfieldonly="true"/>

                <field name="DESCRIPTION" gridfield="true" gridfieldonly="true"/>

                <field name="GROSS_ACRES" gridfield="true" gridfieldonly="true"/>

                <field name="NET_ACRES" gridfield="true" gridfieldonly="true"/>

                <field name="PROSP_NO" gridfield="true" gridfieldonly="true"/>

                <field name="ASSET_AREA" gridfield="true" gridfieldonly="true"/>

                <field name="BU" gridfield="true" gridfieldonly="true"/>

                <field name="HERITAGE_CO" gridfield="true" gridfieldonly="true"/>

                <field name="EXP_DATE" gridfield="true" gridfieldonly="true"/>

                <field name="EFF_DATE" gridfield="true" gridfieldonly="true"/>

                <field name="GRP_CODE" gridfield="true" gridfieldonly="true"/>

                <field name="STAGE" gridfield="true" gridfieldonly="true"/>

                <field name="CNTY_CODE" gridfield="true" gridfieldonly="true"/>

                <field name="FILE_NUM" gridfield="true" gridfieldonly="true"/>

                <field name="SDE_UPDATE" gridfield="true" dateformat="MM/DD/YYYY" gridfieldonly="true"/>

                <field name="FILE_KEY" gridfield="true" gridfieldonly="true"/>

            </fields>

            <icon isfield="false">assets/images/Livelink.gif</icon>

            <linkfield>LINK</linkfield>          

            <zoomscale>50000</zoomscale>

        </layer>

0 Kudos