<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic problem using arcpy.GeocodeAddresses_geocoding with a query layer (Oracle View) in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/problem-using-arcpy-geocodeaddresses-geocoding/m-p/820676#M2788</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to geocode addresses from an Oracle View. This has to be implemented with&amp;nbsp;Arcpy.&lt;/P&gt;&lt;P&gt;first i try&amp;nbsp; this in ArcMap (10.6.1) by adding my view as query layer and geocoding the addresses with a local locator .all this with the user interface.&lt;/P&gt;&lt;P&gt;this went fine and really quick.&lt;/P&gt;&lt;P&gt;then&amp;nbsp;i have tried to implement these steps with&amp;nbsp;Arcpy like this:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myoracledb_sde = "Connexions aux bases de données\\myoracledb.sde"&lt;BR /&gt;ADDRESS_DATA = "ADDRESSES_FROM_MY_VIEW"&lt;BR /&gt;BDTOPO_Advanced = "C:\\DATA\\Advanced\\L93\\Data\\locators\\Advanced\\BDTOPO_Advanced"&lt;BR /&gt;GeocodeAddresses = "C:\\Users\\xxxx\\Documents\\ArcGIS\\Default.gdb\\GeocodeAddresses"&lt;BR /&gt;LOCATOR_FIELDS_CONFIG = "Address NO_NOM_VOIE VISIBLE NONE;Postal ADR_CODE_POSTAL VISIBLE NONE;Neighborhood &amp;lt;Aucun&amp;gt; VISIBLE NONE;City ADR_COMMUNE VISIBLE NONE;Subregion '' VISIBLE NONE;State &amp;lt;Aucun&amp;gt; VISIBLE NONE;Country &amp;lt;Aucun&amp;gt; VISIBLE NONE"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;# add query layer&lt;BR /&gt;arcpy.MakeQueryLayer_management(myoracledb_sde, ADDRESS_DATA, "select * from&amp;nbsp; xyz.V_ADDRESS_DATA", "ID", "", "", "")&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;# geocode addresses&lt;BR /&gt;arcpy.GeocodeAddresses_geocoding(ADDRESS_DATA, BDTOPO_Advanced, LOCATOR_FIELDS_CONFIG, GeocodeAddresses, "STATIC", "", "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the "add query layer" step works fine (the connection to db is ok) but the second step failed with:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 000732: Table en entrée : le jeu de données &amp;nbsp;&lt;SPAN&gt;ADDRESSES_FROM_MY_VIEW&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;n’existe pas ou n’est pas pris en charge&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am not sure about the first parameter of&amp;nbsp;&lt;SPAN&gt;arcpy.GeocodeAddresses_geocoding and how to set it in my case?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how i did it seems to be incorrect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the way i choose with "add query layer and&amp;nbsp;GeocodeAddresses_geocoding" is perhaps not the suitable one.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but it works fine in ArcMap with the user interface ! so i was supposing&amp;nbsp;i can implement this in Arcpy.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what am i doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2020 08:14:16 GMT</pubDate>
    <dc:creator>laurepillet1</dc:creator>
    <dc:date>2020-06-11T08:14:16Z</dc:date>
    <item>
      <title>problem using arcpy.GeocodeAddresses_geocoding with a query layer (Oracle View)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/problem-using-arcpy-geocodeaddresses-geocoding/m-p/820676#M2788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need to geocode addresses from an Oracle View. This has to be implemented with&amp;nbsp;Arcpy.&lt;/P&gt;&lt;P&gt;first i try&amp;nbsp; this in ArcMap (10.6.1) by adding my view as query layer and geocoding the addresses with a local locator .all this with the user interface.&lt;/P&gt;&lt;P&gt;this went fine and really quick.&lt;/P&gt;&lt;P&gt;then&amp;nbsp;i have tried to implement these steps with&amp;nbsp;Arcpy like this:&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;myoracledb_sde = "Connexions aux bases de données\\myoracledb.sde"&lt;BR /&gt;ADDRESS_DATA = "ADDRESSES_FROM_MY_VIEW"&lt;BR /&gt;BDTOPO_Advanced = "C:\\DATA\\Advanced\\L93\\Data\\locators\\Advanced\\BDTOPO_Advanced"&lt;BR /&gt;GeocodeAddresses = "C:\\Users\\xxxx\\Documents\\ArcGIS\\Default.gdb\\GeocodeAddresses"&lt;BR /&gt;LOCATOR_FIELDS_CONFIG = "Address NO_NOM_VOIE VISIBLE NONE;Postal ADR_CODE_POSTAL VISIBLE NONE;Neighborhood &amp;lt;Aucun&amp;gt; VISIBLE NONE;City ADR_COMMUNE VISIBLE NONE;Subregion '' VISIBLE NONE;State &amp;lt;Aucun&amp;gt; VISIBLE NONE;Country &amp;lt;Aucun&amp;gt; VISIBLE NONE"&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;# add query layer&lt;BR /&gt;arcpy.MakeQueryLayer_management(myoracledb_sde, ADDRESS_DATA, "select * from&amp;nbsp; xyz.V_ADDRESS_DATA", "ID", "", "", "")&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;# geocode addresses&lt;BR /&gt;arcpy.GeocodeAddresses_geocoding(ADDRESS_DATA, BDTOPO_Advanced, LOCATOR_FIELDS_CONFIG, GeocodeAddresses, "STATIC", "", "")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the "add query layer" step works fine (the connection to db is ok) but the second step failed with:&amp;nbsp;&lt;/P&gt;&lt;P&gt;ERROR 000732: Table en entrée : le jeu de données &amp;nbsp;&lt;SPAN&gt;ADDRESSES_FROM_MY_VIEW&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;n’existe pas ou n’est pas pris en charge&amp;nbsp;&lt;/P&gt;&lt;P&gt;i am not sure about the first parameter of&amp;nbsp;&lt;SPAN&gt;arcpy.GeocodeAddresses_geocoding and how to set it in my case?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;how i did it seems to be incorrect.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the way i choose with "add query layer and&amp;nbsp;GeocodeAddresses_geocoding" is perhaps not the suitable one.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but it works fine in ArcMap with the user interface ! so i was supposing&amp;nbsp;i can implement this in Arcpy.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;what am i doing wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;thanks for your help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;regards.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2020 08:14:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/problem-using-arcpy-geocodeaddresses-geocoding/m-p/820676#M2788</guid>
      <dc:creator>laurepillet1</dc:creator>
      <dc:date>2020-06-11T08:14:16Z</dc:date>
    </item>
  </channel>
</rss>

