<?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: Cannot copy features to D: drive (USB) in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-copy-features-to-d-drive-usb/m-p/1092307#M6543</link>
    <description>&lt;P&gt;usb drives are "sort of" drives.&amp;nbsp; Their utility and functionality can vary widely between manufacturers.&lt;/P&gt;&lt;P&gt;Use them for backups copies saved using your operating system (eg File Explorer in Windows) and not other applications (generally)&lt;/P&gt;</description>
    <pubDate>Wed, 25 Aug 2021 17:01:15 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-08-25T17:01:15Z</dc:date>
    <item>
      <title>Cannot copy features to D: drive (USB)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-copy-features-to-d-drive-usb/m-p/1092195#M6541</link>
      <description>&lt;P&gt;I have a script that copies a template GDB to a folder and then I work off of that GDB.&amp;nbsp; The script works perfectly, except when I choose my USB drive.&amp;nbsp; I can copy it to a network drive or my c drive, but it's not working to my D drive and I have no idea why.&lt;/P&gt;&lt;P&gt;Here's the code:&lt;/P&gt;&lt;LI-CODE lang="python"&gt;Output_Location = parameters[2].valueAsText
outputGDB = "RSD2NIS_Output.gdb" #additional code later to add a prefix

NIS_Schema = 'C:\\Program Files (x86)\\NCSII Configuration Files\\Checkout_Replica\\Checkout_Replica_Template.gdb'
RSD_FGDB = os.path.join(Output_Location, outputGDB)
arcpy.management.Copy(NIS_Schema, RSD_FGDB)
arcpy.AddMessage("Created new geodatabase: " + RSD_FGDB)&lt;/LI-CODE&gt;&lt;P&gt;And here are the results (K is network drive; D is USB drive):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Network drive works" style="width: 774px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21661iB21CD38239C9D4F3/image-size/large?v=v2&amp;amp;px=999" role="button" title="NetworkDrive.PNG" alt="Network drive works" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;Network drive works&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="USB drive fails" style="width: 780px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/21662i4C5BCB59B64EA306/image-size/large?v=v2&amp;amp;px=999" role="button" title="USBdrive.PNG" alt="USB drive fails" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;USB drive fails&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When it fails, there is a copy of the original database in the D drive folder that has not been renamed.&amp;nbsp; And the template seems to have everything it should- it just hasn't been renamed and that's where it failed.&amp;nbsp; I've tried a lot of different folders and any folder on the D drive files while it works fine elsewhere.&amp;nbsp; Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**UPDATE**&lt;/P&gt;&lt;P&gt;It also fails if the template is on the D drive no matter where I try to save it to.&amp;nbsp; And, I can run copy from within ArcPro Geoprocessing without issues to the d drive- it only fails when going through python.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 13:49:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-copy-features-to-d-drive-usb/m-p/1092195#M6541</guid>
      <dc:creator>williamwinner</dc:creator>
      <dc:date>2021-08-25T13:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot copy features to D: drive (USB)</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-copy-features-to-d-drive-usb/m-p/1092307#M6543</link>
      <description>&lt;P&gt;usb drives are "sort of" drives.&amp;nbsp; Their utility and functionality can vary widely between manufacturers.&lt;/P&gt;&lt;P&gt;Use them for backups copies saved using your operating system (eg File Explorer in Windows) and not other applications (generally)&lt;/P&gt;</description>
      <pubDate>Wed, 25 Aug 2021 17:01:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/cannot-copy-features-to-d-drive-usb/m-p/1092307#M6543</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-08-25T17:01:15Z</dc:date>
    </item>
  </channel>
</rss>

