I'm trying to create a Gazetteer style address locator by python script as:
<SPAN class="keyword token">import</SPAN> arcpy
arcpy<SPAN class="punctuation token">.</SPAN>CreateAddressLocator_geocoding<SPAN class="punctuation token">(</SPAN>
in_address_locator_style<SPAN class="operator token">=</SPAN><SPAN class="string token">"General Gazetteer"</SPAN><SPAN class="punctuation token">,</SPAN>
in_reference_data<SPAN class="operator token">=</SPAN><SPAN class="string token">"(folder)\address2.gdb\ADDRESS_LOCATOR 'Primary Table'"</SPAN><SPAN class="punctuation token">,</SPAN>
in_field_map<SPAN class="operator token">=</SPAN><SPAN class="string token">"'Feature ID' OBJECTID VISIBLE NONE;'*Place Name' ADDRESS VISIBLE NONE;Category <None> VISIBLE NONE;Type <None> VISIBLE NONE;Tags <None> VISIBLE NONE;Description <None> VISIBLE NONE;'3-Digit Language Code' <None> VISIBLE NONE;'2-Digit Language Code' <None> VISIBLE NONE;Rank <None> VISIBLE NONE;Neighborhood <None> VISIBLE NONE;City <None> VISIBLE NONE;County <None> VISIBLE NONE;State <None> VISIBLE NONE;'State Abbreviation' <None> VISIBLE NONE;Country <None> VISIBLE NONE;'Country Abbreviation' <None> VISIBLE NONE;'Street Address' <None> VISIBLE NONE;'Full Address' <None> VISIBLE NONE;'Primary Phone' <None> VISIBLE NONE;'Primary URL' <None> VISIBLE NONE;'Display X' <None> VISIBLE NONE;'Display Y' <None> VISIBLE NONE;'Min X value for extent' <None> VISIBLE NONE;'Max X value for extent' <None> VISIBLE NONE;'Min Y value for extent' <None> VISIBLE NONE;'Max Y value for extent' <None> VISIBLE NONE;'Additional Field' USER_DATA VISIBLE NONE"</SPAN><SPAN class="punctuation token">,</SPAN>
out_address_locator<SPAN class="operator token">=</SPAN><SPAN class="string token">"(out_put_folder)\test.GeocodeServer"</SPAN><SPAN class="punctuation token">,</SPAN>
config_keyword<SPAN class="operator token">=</SPAN><SPAN class="string token">""</SPAN><SPAN class="punctuation token">,</SPAN>
enable_suggestions<SPAN class="operator token">=</SPAN><SPAN class="string token">"ENABLED"</SPAN>
<SPAN class="punctuation token">)</SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>
but got error as:
Traceback (most recent call last):
File "<module1>", line 12, in <module>
File "C:\Program Files (x86)\ArcGIS\Desktop10.5\ArcPy\arcpy\geocoding.py", line 160, in CreateAddressLocator
raise e
ExecuteError: Failed to execute. Parameters are not valid.
ERROR 000046: Too many reference data tables for this style.
Failed to execute (CreateAddressLocator).
I did try create locator from arcMap and Pro using the same data and successful.
Any thing wrong with my python script?
thank you for any help.