Error #1009 in the FV 3 Search Widget Results

2051
2
Jump to solution
04-27-2012 12:00 PM
JosephGrubbs
New Contributor III
I'm configuring my Search widget to query data from a dynamic map service layer.  When I first configured the widget, my feature layer contained the attribute data and the searches worked perfectly. 

However, I need to be able to perform the query with the feature layer joined to a non-ArcSDE view in SQL Server Express.  The SearchWidget.xml file appears to be set up properly, since the query function works fine.  But the selected features do not show up as selected (with a simple marker symbol) in the map display. 

Also, when I mouse over, I get the following 1009 error:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at widgets.Search::SearchWidget/mouseOverSearchResult()
at widgets.Search::SearchWidget/___SearchWidget_SearchResultDataGroup1_searchResultMouseOver()
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.core::UIComponent/dispatchEvent()
at widgets.Search::SearchResultItemRenderer/itemrenderer_mouseOverHandler()
at widgets.Search::SearchResultItemRenderer/___SearchResultItemRenderer_ItemRenderer1_mouseOver()

Any suggestions?  Thank you.

Joe
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
JosephGrubbs
New Contributor III
That was it! When I was configuring the fields, aliases, etc. in the .mxd, I unchecked the Shape field from the display list.  After re-checking it, re-publishing the map service and clearing the rest cache, the Search Results function works perfectly.  Thanks so much for your help.

Joe

View solution in original post

0 Kudos
2 Replies
JasonNielsen
Occasional Contributor
I would check to make sure you have the Shape_leng, Shape_area, Shape, and FID for the layer you are wanting to search are checked on the FIELDS tab in your Msd, or mxd.  If you are trying to zoom to a feature and it doesn't know its geometry it could be the problem. Make sure to clear your rest cache too.
0 Kudos
JosephGrubbs
New Contributor III
That was it! When I was configuring the fields, aliases, etc. in the .mxd, I unchecked the Shape field from the display list.  After re-checking it, re-publishing the map service and clearing the rest cache, the Search Results function works perfectly.  Thanks so much for your help.

Joe
0 Kudos