ryukotsei

Issues with CreateGeocodeSDDraft

Discussion created by ryukotsei on Feb 3, 2014
Latest reply on Mar 7, 2014 by LDanzinger-esristaff
I cannot get the arcpy.CreateGeocodeSDDraft function to work. I have ArcGIS Server 10.2 installed and have the locator path set to the folder containing the geodatabase which has locators in it. Has anyone had any success with this code? Below is my current code:

locator_path = "C:/data/GEODATABASE"
sddraft_file = "C:/data/GeoCoding.sddraft"
sd_file = "C:/data/GeoCoding.sd"
service_name = "test"
summary = "Address locator for " + service_name
tags = "address, locator, geocode"
gis_server_connection_file = "C:/data/" + serverName + ".ags"
             
              analyze_messages  = arcpy.CreateGeocodeSDDraft(locator_path, sddraft_file, service_name,
connection_file_path=gis_server_connection_file,
summary=summary, tags=tags)

Outcomes