Select to view content in your preferred language

Parcel Notification Widget error

7055
50
06-02-2010 07:25 AM
MuhammadKhokhar
Emerging Contributor
Hello, I am new to flex API and was trying to implement the Parcel Notification Widget. I have looked over the forums and fixed some errors but I am getting a error #2007.

TypeError: Error #2007: Parameter blendMode must be non-null.
at flash.display::DisplayObject/set blendMode()
at mx.skins.halo::HaloFocusRect/updateDisplayList()
at mx.skins::ProgrammaticSkin/validateDisplayList()
at mx.managers::LayoutManager/validateDisplayList()
at mx.managers::LayoutManager/doPhasedInstantiation()
at Function/http://adobe.com/AS3/2006/builtin::apply()
at mx.core::UIComponent/callLaterDispatcher2()
at mx.core::UIComponent/callLaterDispatcher()

I dont know what mistake I am doing. My xml is below,

-->
<configuration>
<!--Parcel Service for QueryTask-->
<parcels>http://neccog-rip/ArcGIS/rest/services/Maps/PutnamWGS84/MapServer/0</parcels>

<!--Geometry Service for Buffer-->
<geometryservice>http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer</geometryservice>

<!--Locator for address geocode-->
<locator>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer</locator>

<!--Result Zooom Scale-->
<zoomscale>5000</zoomscale>

<!--Select Parcel by Field ("Field","Field Alias")-->
<findparcelfield>NPARNO,National Parcel Number</findparcelfield>

<!--Use parcel autocomplete box ('T' = true, 'F' = false)-->
<!--ArcGIS Server will only return 500 results by default.  If defaults changed and a large number of features returned widget load may take a longer time to complete-->
<autocomplete>T</autocomplete>

<!--Default Parcel ID-->
<defaultparcelid>CT-000-000-000-000</defaultparcelid>

<!--Select Parcel by Address Field -->
<findparceladdressfield>SITEADD</findparceladdressfield>
<locatoraddressfield>Address</locatoraddressfield>

<!--State ComboBox for search by address--> 
<listfield>State</listfield>
<listvalues>CA,CO,CT,DE,DC,FL,GA,HI,IA,ID,IL,IN,KS,KY,LA,MA,MD,ME,MI,MN</listvalues>

<!--Default Address-->
<defaultaddress>216 Fox Rd,Putnam,CT,06260</defaultaddress>

<!--Minimum Score for Geocode-->
<minscore>80</minscore>

<!--Parcel Map Tip Fields ("Field","Field Alias")-->
<!--Fields with "$" formatted as currency-->
<maptip>NPARNO,National Parcel Number;SITEADD,Full Site Address</maptip>

<!--Parcel content for widget ("Field","Field Alias")-->
<!--Fields with "$" formatted as currency-->
<parcelcontent>NPARNO,National Parcel Number;SITEADD,Full Site Address</parcelcontent>

<!--Fields to include in output .csv table ("*" = All fields)-->
<csvfields>*</csvfields>

<!--Default .csv file name-->
<csvdefaultname>Selected Parcels</csvdefaultname>
</configuration>
Tags (2)
0 Kudos
50 Replies
ShawnKraft
Occasional Contributor
configuration>
<!--Parcel Service for QueryTask-->
<parcels>http://icarus/ArcGIS/rest/services/StreetStuff/MapServer/6</parcels>

<!--Locator for address geocode-->
<locator>http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer</locator>

<!--Result Zooom Scale-->
<zoomscale>5000</zoomscale>

<!--Select Parcel by Field ("Field","Field Alias")-->
<findparcelfield>PIN,ID</findparcelfield>

<!--Use parcel autocomplete box ('T' = true, 'F' = false)-->
<!--ArcGIS Server will only return 500 results by default.  If defaults changed and a large number of features returned widget load may take a longer time to complete-->
<autocomplete>T</autocomplete>

<!--Default Parcel ID-->
<defaultparcelid>16742620002000</defaultparcelid>

<!--Select Parcel by Address Field -->
<findparceladdressfield>SITUSFULLA</findparceladdressfield>
<locatoraddressfield>Address</locatoraddressfield>

<!--State ComboBox for search by address--> 
<listfield>State</listfield>
<listvalues>AK,AL,AR,AZ,CA,CO,CT,DE,DC,FL,GA,HI,IA,ID,IL,IN,KS,KY,LA,MA,MD,ME,MI,MN,MS,MO,MT,NC,ND,NE,NH,NJ,NM,NV,NY,OH,OK,OR,PA,RI,SC,SD,TN,TX,UT,VA,WA,WI,WV,WY</listvalues>

<!--Default Address-->
<defaultaddress>221 HWY 130,LARAMIE,WY,82072</defaultaddress>

<!--Minimum Score for Geocode-->
<minscore>80</minscore>

<!--Parcel content for widget ("Field","Field Alias")-->
<!--Fields with "$" formatted as currency-->
<parcelcontent>PIN,ID;SITUSFULLA,Address;NAME,Owner Name</parcelcontent>

<!--Parcel Map Tip Fields ("Field","Field Alias")-->
<!--Fields with "$" formatted as currency-->
<maptip>PIN,ID;SITUSFULLA,Address;NAME,Owner Name</maptip>
</configuration>
0 Kudos
ShawnKraft
Occasional Contributor
I posted the parcel locator stuff cuz that ended up not working right like I thought it was.  So I figure if I get the parcel locator working right then the parcel notification should be the same set up.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shawn,

   So what is the Parcel Locator doing? What is the error?
0 Kudos
ShawnKraft
Occasional Contributor
It doesn't generate any errors.  It operates like it should but it just has problems with finding some of my addresses.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Shawn,

   Not finding some of your addresses is not unusual. Try setting the minscore to 60.
0 Kudos
ShawnKraft
Occasional Contributor
Okay if that is it, someone needs to smack me for not figuring that out.
0 Kudos
ShawnKraft
Occasional Contributor
That worked.  The addresses it was not finding was because they are pretty new addresses and ESRI probably doesn't have them updated in their geocoding service yet.  I probably should set up a geocoding service of my own n use it.
0 Kudos
ShawnKraft
Occasional Contributor
My problem was that when I originally started building with flex, I was using sdk 3.3.  I started adding things and then switched to sdk 3.5.  So I scrapped it all and began with 3.5 and its all working as it should now.  I appreciate the help.  I read somewhere where you said that you need to be consistent with the version you are using throughout.  Mixing them could cause problems and it did cause mine.
0 Kudos
MuhammadKhokhar
Emerging Contributor
I have tried many changes but I am still getting the error : (Error #2007: Parameter blendMode must be non-null.) I downloaded a new SFV and ParcelLocatorWidget but it gives me the error. Does any one know what I can do to solve this problem.

Both the viewer and widget were built in the 3.3 SDK so shouldnt they work?
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Muhammad,

   Try updating to the 3.5 SDK.
0 Kudos