I have the same problem with the address locator becoming corrupted when using python to rebuild composite locator. It is extremely annoying.
You do not need to rebuild the composite locator as you just rebuild the individual address locators that make up the composite address locator.
I myself had a bat file setup that ran 3 python scripts for this specific scenario. The first python script stopped the geocode service(s), the next python script rebuilt the address locators that were the source of the geocode service, and the third python script started the geocode service(s). These scripts worked relatively well (not 100%) for 1.5 years, but now with changes to my org's environment, I am encountering multiple issues with these scripts that are causing them to fail both when stopping geocode services and rebuilding the address locators. Even if the geocode service gets stopped properly to release locks on the address locators, the rebuild address locator script also fails.
I have been working with ESRI technical support on these issues for a few weeks with very inconsistent results on my org's network.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.