Can't geocode addresses on a feature after its address range attributes have been edited.
Last Published: August 25, 2014No Product Found
Bug ID Number
NIM002438
Submitted
May 9, 2006
Last Modified
April 2, 2025
Applies to
No Product Found
Version found
9.1
Status
Will Not Be Addressed
The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.
Additional Information
No Public Explanation
Workaround
Workarounds:1. Close and reopen ArcMap.2. Use a local locator instead of an SDE locator.3. Use the code belwo to force the server to use a new instance of a locator object. The new instance will work with the correct state ID.------Option Base 0Private Function GetLocatorExtension() As ILocatorExtension Dim pApplication As IApplication Dim pUID As New esriSystem.UID Set pApplication = ThisDocument.Parent pUID.Value = "esriLocationUI.LocatorExtension" Set GetLocatorExtension = pApplication.FindExtensionByCLSID(pUID)End FunctionPrivate Sub ForceLocatorRefresh(loc As ILocator) Dim locImpl As ILocatorImpl Set locImpl = loc Dim locPS As IPropertySet Set locPS = locImpl.Properties ' now a hack to prevent server side code from reusing the cached locator locPS.SetProperty "RD.ForceNewLocInst", CStr(Now) locImpl.Properties = locPSEnd SubPublic Sub RefreshSDELocators() Dim locExtension As ILocatorExtension Set locExtension = GetLocatorExtension Dim locInd As Long Dim address As IPropertySet Set address = New PropertySet For locInd = 0 To locExtension.LocatorCount("Address") - 1 Dim loc As ILocator Set loc = locExtension.Locator("Address", locInd) locExtension.RemoveLocator "Address", locInd ForceLocatorRefresh loc locExtension.AddLocator loc Next locIndEnd Sub===========================================================