Address Locator question

273
10
01-22-2014 10:36 AM
ChadFoster
Occasional Contributor
10.1 SP1

We have an address locator that is referencing address points layer located in SDE.  We are also publishing this address locator for use in Flex Viewers as a geocoding service. 

If we add address points in SDE, does the address locator update to reference the new address points? 

I have tried to use the Rebuild feature in the address locator and have tried to stop and restart the geocode service with no success. 

Can someone tell me the proper workflow to make sure that the address locators are up to date? 

Thanks,

Chad
Tags (2)
10 Replies
BradNiemand
Esri Regular Contributor
You would need to stop the service first (it creates a lock on the locator), rebuild the locator, then restart the service.  I would imagine that you can create a batch script for this and schedule it as a Windows event to happen every night at a specific time.

Brad
0 Kudos
ChadFoster
Occasional Contributor
Brad,

I tried your workflow this morning and still I have new address points that are not being found.  Any idea why?   This address locatore is being consumed in our internal Flex Viewer.

Chad
0 Kudos
BradNiemand
Esri Regular Contributor
What version of ArcGIS are you using and how did you publish the service?

Brad
0 Kudos
ChadFoster
Occasional Contributor
10.1 SP1

We published the service as a geocoding service.  Is that the information you are asking about?


Chad
0 Kudos
BradNiemand
Esri Regular Contributor
I am asking how you published the data.  This means, did you publish it by referencing the locator (creating a data store that pointed to the locator on disk) or by copying the locator to the server (no data store)?  If you published it by referencing it, then my suggestion would work.  If you published it by copying the locator to the server, then you will need to re-create the service by referencing the locator instead of copying it.

Another question.  Where is your locator stored?  I see you mention SDE is where your address points are located but where do you store the locator?

Brad
0 Kudos
ChadFoster
Occasional Contributor
Brad,

The Address Locator was created and is stored on our server, in a folder where all of the MXD's reside that are used to publish the map services which are consumed by our viewers.  The Address Locator was then published as a geocoding service to the same location on our server that we publish our map services too.  I am enclosing a screen shot of the Address Locator properties.


[ATTACH=CONFIG]30781[/ATTACH]
0 Kudos
BradNiemand
Esri Regular Contributor
If you try to publish the locator one more time with a different service name, can you tell me if it prompts you with a dialog entitled "Copying Data to Server", with the following text "Datasets that will be copied to the server:", and the name and path of the locator that you will be copying?

This is what I am trying to figure out.  If the above happens, you don't have your data folder registered with Server so your data will be copied to a known ArcGIS Server folder for use instead.  If you want to learn how to register your data with Server, read the following help topic:

http://resources.arcgis.com/en/help/main/10.2/index.html#/Registering_your_data_with_ArcGIS_Server_u...

Brad
0 Kudos
JoeBorgione
MVP Esteemed Contributor
Just my $00.02....

I maintain a point feature class in a SDE database (sql server back end) but I replicate them to a file geodatabase.  My locators point to that replica data and the locators are published.  All my data maintenance is performed via SDE.  After I sync my changes from parent to child (SDE->FileGDB)  I stop and restart the published service.  The locators themselves are stored in their own directory, not an object of the fgdb.  With the published service stopped, I rebuild the locator and then start the service back up.  Works like a charm.
can't wait to retire....
0 Kudos
PeterHanmore
New Contributor III
It never hurts to dump the REST cache as well (http://servername/Arcgis/rest/admin ).
Stopping and starting the service should invalidate the cache anyways, but we've had to manually clear the cache at times in order to see updates.
0 Kudos