Select to view content in your preferred language

ArgumentError: Error #2004 when using eSearch

1270
7
Jump to solution
05-21-2012 04:54 AM
MagalyC_
Deactivated User
Hi,

Flexviewer 2.5
eSearch 2.5.1.7f
Flex SDK 4.5.1

I have updated flexviewer (2.4 to 2.5) and eSearch widget.
In debug mod, I have this error when want to display the popup (when I pass the mouse over the result):

ArgumentError: Error #2004: L'un des paramètres n'est pas valide.  at flash.utils::ByteArray/writeObject()  at mx.utils::ObjectUtil$/copy()  at com.esri.ags.webmap::PopUpRenderer/commitProperties()  at mx.core::UIComponent/validateProperties()  at mx.managers::LayoutManager/validateProperties()  at mx.managers::LayoutManager/doPhasedInstantiation()  at mx.managers::LayoutManager/doPhasedInstantiationCallback()


Have I missed something in my config XML ?

<?xml version="1.0" ?> <!-- See Enhanced Search Widget XML Configuration.pdf for detailed explanation --> <configuration>  <layers>   <layer>    <definitionexpression></definitionexpression>    <enableexport>true</enableexport>             <name>Briqueterie</name>             <url>http://local/ArcGIS/rest/services/m_foncier_ssud/MapServer/0</url>             <expressions>     <expression alias="Numéro"         textsearchlabel="Recherche par numéro:"         field="DONMET.URB_ZI_FONCIER.ZIFNUMERO">DONMET.URB_ZI_FONCIER.ZIFNUMERO='[value]'</expression>    </expressions>       <graphicalsearchlabel>Utiliser un des outils graphique pour sélectionner sur la carte</graphicalsearchlabel>       <spatialsearchlayer>false</spatialsearchlayer>       <titlefield>DONMET.URB_ZI_FONCIER.ZIFPARCELLE</titlefield>       <fields all="false">               <field name="DONMET.URB_ZI_FONCIER.ZIFID" alias="Identifiant" gridfield="true"/>                 <field name="DONMET.URB_ZI_FONCIER.ZIFPARCELLE" alias="Parcelle" gridfield="true"/>                  <field name="DONMET.URB_ZI_FONCIER.ZIFNUMERO" alias="Numéro"  gridfield="true" gridfieldonly="true" />      <field name="DONMET.URB_ZI_FONCIER.ZIFPROPRIETAIRE" alias="Propriétaire"  gridfield="true" />      <field name="DONMET.URB_ZI_FONCIER.ZIFPROPRIETAIREVERITABLE" alias="Propriétaire véritable"  gridfield="true" gridfieldonly="true" />             </fields>            <links>     <link includeinresults="false" field="" alias="">      <linkprefix></linkprefix>      <linksuffix></linksuffix>      <iconfield></iconfield>      <iconprefix></iconprefix>      <iconsuffix></iconsuffix>     </link>    </links>    <zoomscale usegeometry="true" zoompercent="1.6">10000</zoomscale>             <autoopendatagrid>false</autoopendatagrid>             <relates>      </relates>         </layer>  </layers>  <spatialrelationships>   <!-- possible spatial relationships       esriSpatialRelIntersects | esriSpatialRelContains | esriSpatialRelCrosses | esriSpatialRelEnvelopeIntersects | esriSpatialRelIndexIntersects | esriSpatialRelOverlaps | esriSpatialRelTouches | esriSpatialRelWithin | esriSpatialRelRelation   -->    <spatialrelationship>    <name>esriSpatialRelContains</name>    <label>entièrement contenu dans</label>   </spatialrelationship>   <spatialrelationship>    <name>esriSpatialRelIntersects</name>    <label>coupée par</label>   </spatialrelationship>   <spatialrelationship>    <name>esriSpatialRelEnvelopeIntersects</name>    <label>coupée par l'enveloppe de</label>   </spatialrelationship>  </spatialrelationships>    <bufferunits>   <bufferunit>    <name>UNIT_FOOT</name>    <label>Pieds</label>   </bufferunit>   <bufferunit>    <name>UNIT_METER</name>    <label>Mètres</label>   </bufferunit>     <bufferunit>    <name>UNIT_KILOMETER</name>    <label>Kilomètres</label>   </bufferunit>  </bufferunits>   <spatialReference>4326</spatialReference>  <zoomscale>5000</zoomscale>  <geometryservice>http://local/ArcGIS/rest/services/Geometry/GeometryServer</geometryservice>  <csvSeparator>;</csvSeparator>    <enabledatagridinteractionwithwidget>true</enabledatagridinteractionwithwidget>  <toleranceforpointgraphicalselection>3</toleranceforpointgraphicalselection><!-- value is in screen pixels -->  <tolerancebydefault >false</tolerancebydefault>  <disablebuttons>graphic</disablebuttons><!--possible values one or more not all three search types comma sepearted text,graphic,spatial,grid -->  <defaultselectionoption>textInput</defaultselectionoption><!--possible values only one graphicalInput or textInput or spatialInput -->  <enabledrawgraphicbutton>false</enabledrawgraphicbutton>  <enablebuffergraphicbutton>false</enablebuffergraphicbutton>  <selectedgraphicaltool>extent</selectedgraphicaltool><!-- possible values are extent or polygon or mappoint or polyline or nothing -->  <multipartgraphicsearch>false</multipartgraphicsearch>  <floatorfixed>float</floatorfixed>  <relatetooltip>Show Relates</relatetooltip>  <relateicon>widgets/eSearch/assets/images/i_relate.png</relateicon>  <labels>   <bufferusergraphics>Buffer Graphic</bufferusergraphics>   <norelatesfound>No related features found for: </norelatesfound>   <norelatesfoundalerttitle>Pas de résultats</norelatesfoundalerttitle>   <addtolerance>Ajouter une tolérance au point de sélection</addtolerance>   <existingdrawgraphicslabel>Utiliser l'outil dessine existant</existingdrawgraphicslabel>   <graphicalsearchlabel>Recherche graphique</graphicalsearchlabel>   <textsearchlabel>Recherche</textsearchlabel>   <resultslabel>Resultats</resultslabel>   <layerlabel>Couche de recherche:</layerlabel>   <layerfieldlabel>Search Layer Field:</layerfieldlabel>   <nolayerlabel>Aucune couche de recherche définie</nolayerlabel>   <submitlabel>Recherche</submitlabel>   <pointlabel>Sélection par point</pointlabel>   <linelabel>Sélection by ligne</linelabel>   <rectanglelabel>Sélection by rectangle</rectanglelabel>   <polygonlabel>Sélect by Polygon</polygonlabel>   <clearlabel>Effacer</clearlabel>   <loadinglabel>Chargement...</loadinglabel>   <selectionlabel>Données sélectionnées:</selectionlabel>   <gridresultslabel>Montrer les résultats dans un tableau</gridresultslabel>   <csvdefaultname>Données sélectionnées</csvdefaultname>   <exportbtnlabel>Export...</exportbtnlabel>   <export2csvoptionlabel>Exporter en CSV...</export2csvoptionlabel>   <export2txtoptionlabel>Exporter en Txt...</export2txtoptionlabel>   <bufferLabel>Appliquer une distance de recherche:</bufferLabel>   <spatialsearchLabel>Spatial search</spatialsearchLabel>   <applybufferlabel>Appliquer un buffer</applybufferlabel>   <searchlayerlabel>Search entities of:</searchlayerlabel>   <enablemultipartsearch>Permettre la sélection multiple</enablemultipartsearch>   <zoomalllabel>Zoom</zoomalllabel>   <zoomalltip>Zoom sur tous les résultats</zoomalltip>   <bufferalpha>Adjust buffer alpha</bufferalpha>   <buffercolor>Select buffer color</buffercolor>  </labels>  <symbols>      <simplefillsymbol color="0xff0000" alpha="0.5">       <outline color="0xff0000" alpha="0.8" width="2"/>      </simplefillsymbol>      <!-- You can have one or the other, either simplemarkersymbol or picturemarkersymbol           defined for your point results NOT BOTH. picturemarkersymbol will override simplemarkersymbol           if you do not have it commented out. -->       <!--<simplemarkersymbol style="square" size="12" color="0xff0000" alpha="0.5" xoffset="0" yoffset="0" angle="0">       <outline style="solid" color="0x000000" alpha="1" width="1"/>      </simplemarkersymbol>-->      <picturemarkersymbol url="assets/images/i_search.png" height="30" width="30" xoffset="0" yoffset="0" />   <simplelinesymbol color="0xff0000" alpha="0.8" width="2"/>     </symbols> </configuration>


Thanks for help!
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
MagalyC_
Deactivated User
Hi,

My problem is gone when I updated the flexviewer to 3.0 and the eSearch Widget to 3.0 also 🙂

View solution in original post

0 Kudos
7 Replies
RobertScheitlin__GISP
MVP Emeritus
Magaly,

   I have attempted to replicate your error by creating a brand new Flex Viewer 2.5 project and building it using Adobe SDK 4.5.1 and using eSearch 2.5.1.7f and I can not get that error. Have you tried running a "Clean" from the project menu?
0 Kudos
MagalyC_
Deactivated User
Hi Robert,

Thanks for your reply! I have cleaned my project: my problem is not resolved.
I think it's a problem in my config file because I have another config file who use this widget and it's works fine, the popup is diplayed with the informations... 😕
I have compared the two files but I found nothing weird... This must be a detail I don't see :mad:
0 Kudos
RhettZufelt
MVP Notable Contributor
I know it's been a while, but did you figure this out or give up?

It looks to me like you are missing the <values> and <value> tags within the <expression> tag.

R_
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rhett,

   I did not add multi field expressions until 2.9.0...
0 Kudos
RhettZufelt
MVP Notable Contributor
OIC, 2.9.0 is the only v2.x that I have access to.

in the earlier version, was field actually an expression attribute?

<expression alias="Numéro" textsearchlabel="Recherche par numéro:" field="DONMET.URB_ZI_FONCIER.ZIFNUMERO">DONMET.URB_ZI_FONCIER.ZIFNUMERO='[value]'</expression>


That looked kind of out of place as well.

R_
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Rhett,

   No the field was not a used attribute unless you were using a domain but it would not cause any issues it accidentally included.
0 Kudos
MagalyC_
Deactivated User
Hi,

My problem is gone when I updated the flexviewer to 3.0 and the eSearch Widget to 3.0 also 🙂
0 Kudos