<?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 Re: RegisterWithGeodatabase() takes at most 1 argument in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/registerwithgeodatabase-takes-at-most-1-argument/m-p/92030#M7174</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(P.S. I'm using Arcgis 10.3.1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Aug 2017 08:04:09 GMT</pubDate>
    <dc:creator>SamNeefs</dc:creator>
    <dc:date>2017-08-04T08:04:09Z</dc:date>
    <item>
      <title>RegisterWithGeodatabase() takes at most 1 argument</title>
      <link>https://community.esri.com/t5/python-questions/registerwithgeodatabase-takes-at-most-1-argument/m-p/92029#M7173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to register a view to the Geodatabase.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since it's a view, I have to pass trough the second parameter with the ObjectID-column.&lt;/P&gt;&lt;P&gt;However, if I passtrough more than one paremeter, I get the error "RegisterWithGeodatabase() takes at most 1 argument".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I followed the example from&amp;nbsp;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/register-with-geodatabase.htm" title="http://pro.arcgis.com/en/pro-app/tool-reference/data-management/register-with-geodatabase.htm"&gt;Register with Geodatabase—Data Management toolbox | ArcGIS Desktop&lt;/A&gt;:&lt;/P&gt;&lt;P&gt;# RegisterWithGeodatabase.py&lt;BR /&gt;# Description: Simple example showing use of RegisterWithGeodatabase tool&lt;BR /&gt; &lt;BR /&gt;# Import system modules&lt;BR /&gt;import arcpy&lt;/P&gt;&lt;P&gt;# Set variables&lt;BR /&gt;inTable = r"F:\DatabaseConnections\ANB-SQL-001_ANBGISv10_ISANBGIS.sde\V_BEHEEREENHEDEN_IVANHO_TEST1"&lt;BR /&gt;oid_field = "OBJECTID"&lt;BR /&gt;shape_field = "Shape"&lt;BR /&gt;geometry_type = "POLYGON"&lt;BR /&gt;sr = arcpy.SpatialReference(31370)&lt;BR /&gt;in_extent = "17736.0314 23697.0977 297289.9391 245375.4223"&lt;/P&gt;&lt;P&gt;# Process: Register With Geodatabase&lt;BR /&gt;arcpy.RegisterWithGeodatabase_management(inTable, oid_field, shape_field, geometry_type, sr, in_extent)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#Process: Use the CreateArcSDEConnectionFile function&lt;BR /&gt;#arcpy.RegisterWithGeodatabase_management (inTable, oid_field, shape_field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the complete error:&lt;/P&gt;&lt;P&gt;Traceback (most recent call last):&lt;BR /&gt; File "C:\register.py", line 16, in &amp;lt;module&amp;gt;&lt;BR /&gt; arcpy.RegisterWithGeodatabase_management(inTable, oid_field, shape_field, geometry_type, sr, in_extent)&lt;BR /&gt;TypeError: RegisterWithGeodatabase() takes at most 1 argument (6 given)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 08:02:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/registerwithgeodatabase-takes-at-most-1-argument/m-p/92029#M7173</guid>
      <dc:creator>SamNeefs</dc:creator>
      <dc:date>2017-08-04T08:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: RegisterWithGeodatabase() takes at most 1 argument</title>
      <link>https://community.esri.com/t5/python-questions/registerwithgeodatabase-takes-at-most-1-argument/m-p/92030#M7174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(P.S. I'm using Arcgis 10.3.1)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 08:04:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/registerwithgeodatabase-takes-at-most-1-argument/m-p/92030#M7174</guid>
      <dc:creator>SamNeefs</dc:creator>
      <dc:date>2017-08-04T08:04:09Z</dc:date>
    </item>
    <item>
      <title>Re: RegisterWithGeodatabase() takes at most 1 argument</title>
      <link>https://community.esri.com/t5/python-questions/registerwithgeodatabase-takes-at-most-1-argument/m-p/92031#M7175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The message / stacktrace seems like a bug to me! (Or just a bad error message).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your "InTable" correct...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;inTable = r"F:\DatabaseConnections\ANB-SQL-001_ANBGISv10_ISANBGIS.sde\V_BEHEEREENHEDEN_IVANHO_TEST1"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;All mine are like this: (Like in the example)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;SPAN&gt;inTable = r"F:\DatabaseConnections\ANB-SQL-001_ANBGISv10_ISANBGIS.sde\&lt;STRONG&gt;DATABASE.DataOwner.&lt;/STRONG&gt;V_BEHEEREENHEDEN_IVANHO_TEST1"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;To test, use the "Add data" button in ArcMap, and see if your path can be pasted in directly to add the table.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 11:45:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/registerwithgeodatabase-takes-at-most-1-argument/m-p/92031#M7175</guid>
      <dc:creator>LukeWebb</dc:creator>
      <dc:date>2017-08-04T11:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: RegisterWithGeodatabase() takes at most 1 argument</title>
      <link>https://community.esri.com/t5/python-questions/registerwithgeodatabase-takes-at-most-1-argument/m-p/92032#M7176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You &lt;STRONG&gt;&lt;EM&gt;can't&lt;/EM&gt;&lt;/STRONG&gt; register a view with a geodatabase with 10.3.1 Desktop.&amp;nbsp; If you go to the &lt;A href="http://desktop.arcgis.com/en/arcmap/10.3/tools/data-management-toolbox/register-with-geodatabase.htm"&gt;appropriate documentation&lt;/A&gt;, you'll see the list of objects which can be registered is different ("feature classes, tables, and raster layers" vice "feature classes, tables, views, and raster layers"). The ability to register views is &lt;A href="http://desktop.arcgis.com/en/arcmap/latest/get-started/introduction/whats-new-in-arcgis.htm#ESRI_SECTION1_F09FDA10274F4CE583CE8C35A1CC51A8"&gt;new at 10.5.x&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 13:18:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/registerwithgeodatabase-takes-at-most-1-argument/m-p/92032#M7176</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-08-04T13:18:15Z</dc:date>
    </item>
    <item>
      <title>Re: RegisterWithGeodatabase() takes at most 1 argument</title>
      <link>https://community.esri.com/t5/python-questions/registerwithgeodatabase-takes-at-most-1-argument/m-p/92033#M7177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, I didn't see this, since the page I referenced didn't mention a version, I expected it to be for all versions.&lt;/P&gt;&lt;P&gt;Your link clearly is the version I use and it indeed doesn't support views and&amp;nbsp;doesn't accept more than one parameter.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 13:26:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/registerwithgeodatabase-takes-at-most-1-argument/m-p/92033#M7177</guid>
      <dc:creator>SamNeefs</dc:creator>
      <dc:date>2017-08-04T13:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: RegisterWithGeodatabase() takes at most 1 argument</title>
      <link>https://community.esri.com/t5/python-questions/registerwithgeodatabase-takes-at-most-1-argument/m-p/92034#M7178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It can be a pain, because the Pro documentation is often found first in searches, but it's important to use the documentation for the software you are actually using. I generally go to desktop.arcgis.com, then Search, and specify the ArcMap flavor (vice "any"). Pro is sufficiently different that you shouldn't ever rely on its Python docs while using 32-bit Desktop or 64-bit Background Geoprocessing (it's even a different Python).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Aug 2017 14:13:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/registerwithgeodatabase-takes-at-most-1-argument/m-p/92034#M7178</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2017-08-04T14:13:56Z</dc:date>
    </item>
  </channel>
</rss>

