<?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: Arcpy DeleteRows tool: error code 000732 in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1062365#M61247</link>
    <description>&lt;P&gt;I suggest getting the connection string properties and embedding that into your script. Here's an example for connecting into SQL Server.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fc = "CIMDATA=&amp;lt;CIMStandardDataConnection xsi:type='typens:CIMStandardDataConnection' \
      xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' \
      xmlns:typens='http://www.esri.com/schemas/ArcGIS/2.6.0'&amp;gt; \
      &amp;lt;WorkspaceConnectionString&amp;gt; \
      ENCRYPTED_PASSWORD=XXX0000XXXX; \
      SERVER=TGISDB001SQL; \
      INSTANCE=sde:sqlserver:my_instance; \
      DBCLIENT=sqlserver; \
      DB_CONNECTION_PROPERTIES=My_DataBase; \
      DATABASE=My_Data; \
      USER=user; \
      VERSION=dbo.DEFAULT; \
      AUTHENTICATION_MODE=DBMS \
      &amp;lt;/WorkspaceConnectionString&amp;gt; \
      &amp;lt;WorkspaceFactory&amp;gt;SDE&amp;lt;/WorkspaceFactory&amp;gt; \
      &amp;lt;Dataset&amp;gt;Mydata.Dataset.FeatureClass&amp;lt;/Dataset&amp;gt; \
      &amp;lt;DatasetType&amp;gt;esriDTFeatureClass&amp;lt;/DatasetType&amp;gt; \
      &amp;lt;/CIMStandardDataConnection&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 May 2021 15:35:04 GMT</pubDate>
    <dc:creator>Lorne</dc:creator>
    <dc:date>2021-05-27T15:35:04Z</dc:date>
    <item>
      <title>Arcpy DeleteRows tool: error code 000732</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040654#M60550</link>
      <description>&lt;P&gt;I have created a simple python script to do the following:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Scrape web page for data listed in table/json&lt;/LI&gt;&lt;LI&gt;Write data into local FGDB table&lt;/LI&gt;&lt;LI&gt;Map data in local FGDB using coordinates&lt;/LI&gt;&lt;LI&gt;Replace SDE data with mapped data in local FGDB&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Everything works up until step 4 which includes a DeleteRows function call and then an Append function call. I am using DeleteRows instead of truncate due to database locks. Currently this script works perfectly fine from my local machine, but on our server machine where this script will reside for scheduling purposes I run into the error 000732: dataset does not exist or is not supported. I have run through all of the suggested workarounds/solutions and none worked. I even ran the tool in catalog on the server machine and it worked, just not in the script.&amp;nbsp;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Make sure file path provided is correct.&lt;/LI&gt;&lt;LI&gt;Make sure file path provided is not a relative file path.&lt;/LI&gt;&lt;LI&gt;No spaces in file path name&lt;/LI&gt;&lt;LI&gt;No misspellings&lt;/LI&gt;&lt;LI&gt;Backslashes instead of forward slashes&lt;/LI&gt;&lt;LI&gt;No subtypes&lt;/LI&gt;&lt;LI&gt;Process runs on windows machine not UNIX or Linux so hopefully no issue with Copy Rows or Make XY Event Layer tools&lt;/LI&gt;&lt;LI&gt;Disabled background geoprocessing&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Are there any additional suggestions or could this possibly be a bug?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 16:17:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040654#M60550</guid>
      <dc:creator>KevinPiraino2</dc:creator>
      <dc:date>2021-03-25T16:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy DeleteRows tool: error code 000732</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040663#M60551</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;make sure that the variable path is set like this:&lt;/P&gt;&lt;P&gt;myvariable_path = r'C:\Temp\Integrations'&lt;/P&gt;&lt;P&gt;the letter "r" (raw path) is important.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 16:37:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040663#M60551</guid>
      <dc:creator>Tomasz_Tarchalski</dc:creator>
      <dc:date>2021-03-25T16:37:34Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy DeleteRows tool: error code 000732</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040681#M60552</link>
      <description>&lt;P&gt;Tomasz,&lt;/P&gt;&lt;P&gt;Thank you for your suggestion, but unfortunately all of my variables that contain string paths already have the "r" pre-fix so this suggestion does not apply.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 17:09:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040681#M60552</guid>
      <dc:creator>KevinPiraino2</dc:creator>
      <dc:date>2021-03-25T17:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy DeleteRows tool: error code 000732</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040684#M60553</link>
      <description>&lt;P&gt;The path isn't a Mapped drive on your local machine? Have you tried UNC or attempting to navigate to that path in Catalog/Windows Explorer on the server?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 17:15:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040684#M60553</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-03-25T17:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy DeleteRows tool: error code 000732</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040706#M60556</link>
      <description>&lt;P&gt;David,&lt;/P&gt;&lt;P&gt;No the error occurs when trying to use the Delete Rows function against the SDE database table/feature class. Currently when I run the Delete Rows function&amp;nbsp;against the SDE database table/feature class from my local machine the function has no problem executing. The issue occurs when attempting to run the Delete Rows&amp;nbsp;function&amp;nbsp;against the SDE database table/feature class from our server machine (where the script will be run from once its fully tested). I'm 99% sure its not the file path name since I was able to navigate to the SDE table/feature class using the file path the script uses (both in windows file explorer and ArcCatalog on the server machine). I even ran the Delete Rows tool in ArcCatalog (using the SDE data) and it ran fine. I then took the code snippet from the results pane and inserted it into the script and it still failed.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 17:56:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040706#M60556</guid>
      <dc:creator>KevinPiraino2</dc:creator>
      <dc:date>2021-03-25T17:56:22Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy DeleteRows tool: error code 000732</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040718#M60557</link>
      <description>&lt;P&gt;if it's an SDE it's using a connection file I guess?&amp;nbsp; Is that connection file being properly referenced and is the same as on the local machine?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 18:15:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040718#M60557</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-03-25T18:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy DeleteRows tool: error code 000732</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040741#M60558</link>
      <description>&lt;P&gt;Yes you are correct, it is using an SDE file. I assume it's referencing the connection file properly. I have the SDE connection file located in the same folder the script runs from and the script references the file as such:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;db_test = r'C:\rn_development\COVID_Testing_Sites\AZURE_HealthDepartment_gisadministrator_93.sde\HealthDepartment.DBO.CovidTestSites\HealthDepartment.DBO.IDPH_COVID_Test_Sites'

arcpy.DeleteRows_management(db_test)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As for the file being the same on the local machine, yes to an extent. The exact paths differs, but the file was originally copied from local machine to the server when I was setting up the final testing on the server machine.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 18:46:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040741#M60558</guid>
      <dc:creator>KevinPiraino2</dc:creator>
      <dc:date>2021-03-25T18:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy DeleteRows tool: error code 000732</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040746#M60560</link>
      <description>&lt;P&gt;Perhaps the authentication in the connection file is OS_AUTH and the server doesn't have that privilege?&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 18:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040746#M60560</guid>
      <dc:creator>DavidPike</dc:creator>
      <dc:date>2021-03-25T18:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy DeleteRows tool: error code 000732</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040752#M60563</link>
      <description>&lt;P&gt;Checking the connection properties of each SDE connection file, each file is "Database Authentication", so I don't believe that is the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 18:59:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040752#M60563</guid>
      <dc:creator>KevinPiraino2</dc:creator>
      <dc:date>2021-03-25T18:59:27Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy DeleteRows tool: error code 000732</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040778#M60568</link>
      <description>&lt;P&gt;I believe &lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/167692"&gt;@DavidPike&lt;/a&gt; is likely correct, i.e., you are using OS authentication in the SDE file, and the service account running GIS Server doesn't have permissions to delete records.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 19:21:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040778#M60568</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-03-25T19:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy DeleteRows tool: error code 000732</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040781#M60569</link>
      <description>&lt;P&gt;This is the connection properties for the SDE file on the server machine:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2021-03-25_14-23-02.png" style="width: 484px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9401iD8A6A329C66E46BB/image-size/large?v=v2&amp;amp;px=999" role="button" title="2021-03-25_14-23-02.png" alt="2021-03-25_14-23-02.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 19:25:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1040781#M60569</guid>
      <dc:creator>KevinPiraino2</dc:creator>
      <dc:date>2021-03-25T19:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy DeleteRows tool: error code 000732</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1062365#M61247</link>
      <description>&lt;P&gt;I suggest getting the connection string properties and embedding that into your script. Here's an example for connecting into SQL Server.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;fc = "CIMDATA=&amp;lt;CIMStandardDataConnection xsi:type='typens:CIMStandardDataConnection' \
      xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:xs='http://www.w3.org/2001/XMLSchema' \
      xmlns:typens='http://www.esri.com/schemas/ArcGIS/2.6.0'&amp;gt; \
      &amp;lt;WorkspaceConnectionString&amp;gt; \
      ENCRYPTED_PASSWORD=XXX0000XXXX; \
      SERVER=TGISDB001SQL; \
      INSTANCE=sde:sqlserver:my_instance; \
      DBCLIENT=sqlserver; \
      DB_CONNECTION_PROPERTIES=My_DataBase; \
      DATABASE=My_Data; \
      USER=user; \
      VERSION=dbo.DEFAULT; \
      AUTHENTICATION_MODE=DBMS \
      &amp;lt;/WorkspaceConnectionString&amp;gt; \
      &amp;lt;WorkspaceFactory&amp;gt;SDE&amp;lt;/WorkspaceFactory&amp;gt; \
      &amp;lt;Dataset&amp;gt;Mydata.Dataset.FeatureClass&amp;lt;/Dataset&amp;gt; \
      &amp;lt;DatasetType&amp;gt;esriDTFeatureClass&amp;lt;/DatasetType&amp;gt; \
      &amp;lt;/CIMStandardDataConnection&amp;gt;"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 May 2021 15:35:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-deleterows-tool-error-code-000732/m-p/1062365#M61247</guid>
      <dc:creator>Lorne</dc:creator>
      <dc:date>2021-05-27T15:35:04Z</dc:date>
    </item>
  </channel>
</rss>

