Select to view content in your preferred language

Error #1010 In esearch widget?

1339
9
Jump to solution
04-09-2012 07:25 AM
EmilyLaMunyon
Deactivated User
Hello,

I am using version 2.5 of the esearch widget and am getting an error #1010 when a couple of my features are selected from a user list in the text search. Does anyone know what this error means and why it would only appear on a couple of features when the rest are fine?

Thanks for any help!

 <layer>  <definitionexpression></definitionexpression>  <enableexport>true</enableexport>  <name>All Weeds</name>  <url>http://gis.slco.org/wwwrest/services/public/Weeds/MapServer/32</url>    <expressions>  <expression alias="Weed Name" textsearchlabel="Search By Weed Name [ Example: Russian Olive]:"  field="Weed_Common_Name" usedomain="false" userlist="Black Henbane, Canada Thistle, Dalmatian Toadlflax, Diffuse Knapweed, Dyers Woad, Field Bindweed, Garlic Mustard, Hoary Cress, Houndstongue,  Johnsongrass, Leafy Spurge, Medusahead, Musk Thistle, Myrtle Spurge, Oxeye Daisy, Perennial Pepperweed, Phragmites, Poison Hemlock, Puncturvine, Purple Starthistle, Quackgrass,  Russian Knapweed, Russian Olive, Saltcedar, Scotch Thistle, Spotted Knapweed, Squarrose Knapweed, St.Johns Wort, Sulphur Cinquefiol, Yellow Starthistle, Yellow Toadflax">  upper(Weed_Common_Name) LIKE upper('%[value]%')</expression>    <expression alias="Collector_Agency"  textsearchlabel="Search by Agency [ Example: SLCo ]:"  >upper(Collector_Agency) LIKE upper('%[value]%')</expression>    </expressions>
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus
Emily,

   When you update to newer versions of my widget you have to pay attention to the the PDFs as there can be configuration file changes that must be made to use the new version. This was the case for you...

Here is an updated (cleaned) version of your SearchWidget.xml that you need to use.

View solution in original post

0 Kudos
9 Replies
RobertScheitlin__GISP
MVP Emeritus
Emily,

   A couple of things that you should fix:


  1. remove field="Weed_Common_Name" usedomain="false"

  2. remove all the spaces in between your comma separated userlist


<expression alias="Weed Name" textsearchlabel="Search By Weed Name [ Example: Russian Olive]:"  userlist="Black Henbane,Canada Thistle,Dalmatian Toadlflax,Diffuse Knapweed,Dyers Woad,Field Bindweed,Garlic Mustard,Hoary Cress,Houndstongue,  Johnsongrass,Leafy Spurge,Medusahead,Musk Thistle,Myrtle Spurge,Oxeye Daisy,Perennial Pepperweed,Phragmites,Poison Hemlock,Puncturvine,Purple Starthistle,Quackgrass,Russian Knapweed,Russian Olive,Saltcedar,Scotch Thistle,Spotted Knapweed,Squarrose Knapweed,St.Johns Wort,Sulphur Cinquefiol,Yellow Starthistle,Yellow Toadflax">  upper(Weed_Common_Name) LIKE upper('%[value]%')</expression>


Don't forget to click the Mark as answer check on this post and to click the top arrow (promote) as shown below:
0 Kudos
EmilyLaMunyon
Deactivated User
Thanks Robert!

I tried your suggestions and still no luck. Is there something else I am missing?

<expressions>
<expression alias="Weed Name" textsearchlabel="Search By Weed Name [ Example: Russian Olive]:"
userlist="Black Henbane,Canada Thistle,Dalmatian Toadlflax,Diffuse Knapweed,Dyers Woad,Field Bindweed,Garlic Mustard,Hoary Cress,Houndstongue,Johnsongrass,Leafy Spurge,Medusahead,Musk Thistle,Myrtle Spurge,Oxeye Daisy,Perennial Pepperweed,Phragmites,Poison Hemlock,Puncturvine,Purple Starthistle,Quackgrass,Russian Knapweed,Russian Olive,Saltcedar,Scotch Thistle,Spotted Knapweed,Squarrose Knapweed,St.Johns Wort,Sulphur Cinquefiol,Yellow Starthistle,Yellow Toadflax">
upper(Weed_Common_Name) LIKE upper('%[value]%')</expression>

0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Emily,

   You are going to have to give me more details to go on here... I use your map service and can get it to use your userlist and return results just fine.


[ATTACH=CONFIG]13360[/ATTACH]
0 Kudos
EmilyLaMunyon
Deactivated User
I appreciate yout time!

The following features, Phragmites and St. Johns Wort are the two that return a #1010 error when selected from the userlist using the esearch widget. I have provided the link below. The Search layer is All Weeds and in the Search Layer Field the Weed Name should be selected.

http://www.surveyor.slco.org/flexviewer_weeds/index.html

I hope that is enough information, let me know what else you may need.

Thanks so much!!!!
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Emily,

   When you update to newer versions of my widget you have to pay attention to the the PDFs as there can be configuration file changes that must be made to use the new version. This was the case for you...

Here is an updated (cleaned) version of your SearchWidget.xml that you need to use.
0 Kudos
EmilyLaMunyon
Deactivated User
Thanks once again...I apologize for missing the updated information and will be more diligent about this with future releases.

I marked this as answered:)
0 Kudos
EmilyLaMunyon
Deactivated User
I was hoping the new xml would resolve this, but there still seems to be a problem with 3 of the features when searched on in the widget (Dalmatian Toadflax, Phragmites, and St. Johns Wort). However, now it just shows that 0 features are selected when the problem ones are chosen. I have attached a screenshot of what I see.

I am sorry to keep bugging you on this, but I have tried everything. I downloaded the newest esearch, updated the xml, cleared my cache a ton, and made sure there are acually records to be selected.:confused:

Any other thoughts?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Emily,

   That is because when you search your data even using the rest end point you do not get results for those:

http://gis.slco.org/wwwrest/services/public/Weeds/MapServer/32/query?text=&geometry=&geometryType=es...
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Emily,

   OK, I have narrowed it down to some spelling issues in your userList:


[TABLE="class: grid, width: 594"]What your userList hasWhat it should beMistake
Dalmatian ToadlflaxDalmatian Toadflax extra l in ToadflaxPhragmitesPhragmetes i instead of eSt.Johns WortSt. Johnswort no space in Johswort
[/TABLE]
0 Kudos