<?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 &amp;quot;ERROR 160385: Workspace or data source is read only.&amp;quot; when running ExportTable. Tried all solutions I've found so far... in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/quot-error-160385-workspace-or-data-source-is-read/m-p/1609337#M95310</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi there, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have run the code below on multiple occasions with no problems, but lately have been running into an error. I use&amp;nbsp;&lt;/SPAN&gt;arcpy.conversion.ExportTable&lt;SPAN&gt;to bring csvs housed on a network drive to tables in my working gdb (Code Below). I have tried the following solutions I found on Esri Community and GISStackExchange.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/error-160385-workspace-or-data-source-is-read-only/td-p/1414954" target="_blank" rel="nofollow noopener noreferrer"&gt;Not enough memory&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- checked&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/error-workspace-or-data-source-is-read-only-000022489" target="_blank" rel="nofollow noopener noreferrer"&gt;Insufficient permissions&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- checked, I have permissions for both the source and destination folders&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-1-project-becomes-read-only-at-random/td-p/1318047" target="_blank" rel="nofollow noopener noreferrer"&gt;Need to reset your instance of ArcGIS&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- this did not resolve the error.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;The &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/160001-170000/tool-errors-and-warnings-160376-160400-160385.htm" target="_self"&gt;help page&lt;/A&gt; is pretty unhelpful&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have also restarted my computer. When I check the output in the GUI, it seems some of the rows/observations in the csv are exported to the gdb before the error is returned. Any suggestions are more than welcome, but please check the error handling and previous attempts. Thank you!&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Step 4. Create tables from csv files

# set workspace to gdb
arcpy.env.workspace = gdb

for in_table in in_tables_ed:
    print(f"Processing {in_table}...")
    
    # Check if the input file exists
    if not os.path.exists(in_table):
        print(f"Error: {in_table} does not exist")
        continue
    
    # Resolve output name
    out_name = os.path.basename(in_table).replace('.csv', '')
    
    # Check if the table already exists in the geodatabase
    if arcpy.Exists(out_name):
        print(f"Table {out_name} already exists in the geodatabase. Skipping...")
        continue
    
    try:
        # Export the table
        arcpy.conversion.ExportTable(in_table, out_name)
        print(f"Converted {in_table} to table {out_name} in {gdb}")
    except arcpy.ExecuteError:
        print(f"Failed to export {in_table}. Error: {arcpy.GetMessages(2)}")
    except Exception as e:
        print(f"An unexpected error occurred: {e}")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Apr 2025 18:44:42 GMT</pubDate>
    <dc:creator>MegRFay</dc:creator>
    <dc:date>2025-04-25T18:44:42Z</dc:date>
    <item>
      <title>"ERROR 160385: Workspace or data source is read only." when running ExportTable. Tried all solutions I've found so far...</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/quot-error-160385-workspace-or-data-source-is-read/m-p/1609337#M95310</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi there, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have run the code below on multiple occasions with no problems, but lately have been running into an error. I use&amp;nbsp;&lt;/SPAN&gt;arcpy.conversion.ExportTable&lt;SPAN&gt;to bring csvs housed on a network drive to tables in my working gdb (Code Below). I have tried the following solutions I found on Esri Community and GISStackExchange.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/error-160385-workspace-or-data-source-is-read-only/td-p/1414954" target="_blank" rel="nofollow noopener noreferrer"&gt;Not enough memory&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- checked&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/error-workspace-or-data-source-is-read-only-000022489" target="_blank" rel="nofollow noopener noreferrer"&gt;Insufficient permissions&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- checked, I have permissions for both the source and destination folders&lt;/LI&gt;&lt;LI&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-questions/arcgis-pro-3-1-project-becomes-read-only-at-random/td-p/1318047" target="_blank" rel="nofollow noopener noreferrer"&gt;Need to reset your instance of ArcGIS&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;- this did not resolve the error.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;The &lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/160001-170000/tool-errors-and-warnings-160376-160400-160385.htm" target="_self"&gt;help page&lt;/A&gt; is pretty unhelpful&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;I have also restarted my computer. When I check the output in the GUI, it seems some of the rows/observations in the csv are exported to the gdb before the error is returned. Any suggestions are more than welcome, but please check the error handling and previous attempts. Thank you!&lt;/P&gt;&lt;LI-CODE lang="python"&gt;# Step 4. Create tables from csv files

# set workspace to gdb
arcpy.env.workspace = gdb

for in_table in in_tables_ed:
    print(f"Processing {in_table}...")
    
    # Check if the input file exists
    if not os.path.exists(in_table):
        print(f"Error: {in_table} does not exist")
        continue
    
    # Resolve output name
    out_name = os.path.basename(in_table).replace('.csv', '')
    
    # Check if the table already exists in the geodatabase
    if arcpy.Exists(out_name):
        print(f"Table {out_name} already exists in the geodatabase. Skipping...")
        continue
    
    try:
        # Export the table
        arcpy.conversion.ExportTable(in_table, out_name)
        print(f"Converted {in_table} to table {out_name} in {gdb}")
    except arcpy.ExecuteError:
        print(f"Failed to export {in_table}. Error: {arcpy.GetMessages(2)}")
    except Exception as e:
        print(f"An unexpected error occurred: {e}")&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 18:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/quot-error-160385-workspace-or-data-source-is-read/m-p/1609337#M95310</guid>
      <dc:creator>MegRFay</dc:creator>
      <dc:date>2025-04-25T18:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR 160385: Workspace or data source is read only." when running ExportTable. Tried all solutions I've found so far...</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/quot-error-160385-workspace-or-data-source-is-read/m-p/1609339#M95311</link>
      <description>&lt;P&gt;Sometimes the error is " Error: ERROR 000224: Cannot insert features - The table was not found." Again, after some amount of rows have been exported. I am completely confused.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 18:51:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/quot-error-160385-workspace-or-data-source-is-read/m-p/1609339#M95311</guid>
      <dc:creator>MegRFay</dc:creator>
      <dc:date>2025-04-25T18:51:00Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR 160385: Workspace or data source is read only." when running ExportTable. Tried all solutions I've found so far...</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/quot-error-160385-workspace-or-data-source-is-read/m-p/1609351#M95314</link>
      <description>&lt;P&gt;Can you try running the script where the csv file is local to the machine to see if in that scenario you get successful repeatable results?&lt;/P&gt;&lt;P&gt;If that works I would add code to copy csv file to local drive from shared drive before running the geoprocess.&lt;/P&gt;&lt;P&gt;I say this because I have experienced these kind of issues when trying to source data from a network location as well as save data to a network location.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 19:17:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/quot-error-160385-workspace-or-data-source-is-read/m-p/1609351#M95314</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2025-04-25T19:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR 160385: Workspace or data source is read only." when running ExportTable. Tried all solutions I've found so far...</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/quot-error-160385-workspace-or-data-source-is-read/m-p/1609353#M95315</link>
      <description>&lt;P&gt;although deprecated, but still available, can you sub in&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/conversion/table-to-table.htm" target="_blank"&gt;Table To Table (Conversion)—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;because the error message suggests it is rare and there is a feedback link to provide info to support&lt;/P&gt;&lt;P&gt;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/tool-errors-and-warnings/160001-170000/tool-errors-and-warnings-160376-160400-160385.htm" target="_blank"&gt;160385: Workspace or data source is read only.—ArcGIS Pro | Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;worth a shot, since there is no public-facing report on the bug list&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 19:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/quot-error-160385-workspace-or-data-source-is-read/m-p/1609353#M95315</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2025-04-25T19:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR 160385: Workspace or data source is read only." when running ExportTable. Tried all solutions I've found so far...</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/quot-error-160385-workspace-or-data-source-is-read/m-p/1609401#M95323</link>
      <description>&lt;P&gt;Thank you for your reply! I started with TabletoTable and had the same issues. I will submit feedback to support if I can't find a solution by EOD.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 20:33:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/quot-error-160385-workspace-or-data-source-is-read/m-p/1609401#M95323</guid>
      <dc:creator>MegRFay</dc:creator>
      <dc:date>2025-04-25T20:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: "ERROR 160385: Workspace or data source is read only." when running ExportTable. Tried all solutions I've found so far...</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/quot-error-160385-workspace-or-data-source-is-read/m-p/1609402#M95324</link>
      <description>&lt;P&gt;Worth a shot! I'll mark as solution if this works, although some of my data are quite large and transferring to and fro often takes longer than its worth&lt;/P&gt;</description>
      <pubDate>Fri, 25 Apr 2025 20:37:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/quot-error-160385-workspace-or-data-source-is-read/m-p/1609402#M95324</guid>
      <dc:creator>MegRFay</dc:creator>
      <dc:date>2025-04-25T20:37:56Z</dc:date>
    </item>
  </channel>
</rss>

