<?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: Problem writing to file geodatabase other than default.gdb in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/problem-writing-to-file-geodatabase-other-than/m-p/589338#M46180</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;\\skagit\dept\gis\janiceb\projects\Health\June_2014\Septic.gdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is the location that I go to in Catalog. The script actually creates the new feature class in the geodatabase but dissolve is unable to write to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can use arcpy.ListWorkspaces and see the location and the file geodatabase. I can run the script with the default.gdb but not my septic.gdb.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The link you provided is about Microsoft Security Essentials and I can not find that on my workstation...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the info&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Janice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 19:23:28 GMT</pubDate>
    <dc:creator>JaniceBaird</dc:creator>
    <dc:date>2014-06-12T19:23:28Z</dc:date>
    <item>
      <title>Problem writing to file geodatabase other than default.gdb</title>
      <link>https://community.esri.com/t5/python-questions/problem-writing-to-file-geodatabase-other-than/m-p/589336#M46178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a script that selects parcels within a boundary and then runs a dissolve on those parcels. I have a file geodatabase that I want to use for the output. If I have my workspace set to my default.gdb, everything works great. When I change my workspace to a different file geodatabase, I get "ExecuteError: ERROR 000210: Cannot create output" and the dissolve fails to execute. When I look into the file geodatabase, the new feature class is created but it is empty.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Are there permissions or environment variables that need to be set so that I can write to a different FGDB?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what am I doing wrong?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Janice.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;import sys, os import arcpy from arcpy import env&amp;nbsp; env.overwriteOutput = True&amp;nbsp; ### Set the workspace --- env.workspace = r"C:\Users\janiceb\Documents\ArcGIS\Default.gdb" ##env.workspace = r"\\skagit\dept\gis\janiceb\Projects\Health\June_2014\Septic.gdb"&amp;nbsp; print env.workspace&amp;nbsp; ## Parcel Layer prodParcelPolys = r"Database Connections\SQLVM3_scgis.sde\Scgis.SDEADM.Parcel_Polys" tempParcels = "Temp_Copy_of_Parcels" tempDOHParcels = "Temp_Copy_of_DOH_Parcels" ## MRA Layer prodMRAPolys = r"Database Connections\SQLVM9_Health.sde\Health.SDEADM.MarineRecoveryAreas" tempMRAs = "Temp_Copy_of_MRAs" ## Final Data to be written to file geodatabase for sharing with DOH finalDOHParcels = "ParcelsInMRA"&amp;nbsp; # Make a temporary layer from the parcel feature class print("&amp;nbsp;&amp;nbsp; -&amp;gt; Making temporary copy of the Parcel layer...") arcpy.MakeFeatureLayer_management(prodParcelPolys, tempParcels)&amp;nbsp; # Make a temporary layer from the MRA feature class print("&amp;nbsp;&amp;nbsp; -&amp;gt; Making temporary copy of the MRA layer...") arcpy.MakeFeatureLayer_management(prodMRAPolys, tempMRAs)&amp;nbsp; # Select those parcels with centroid in MRA Polygons arcpy.SelectLayerByLocation_management(tempParcels, "HAVE_THEIR_CENTER_IN", tempMRAs, 5, "NEW_SELECTION") print("FYI :: Number of parcels with centroid in MRA Polygons: {0}".format(str(arcpy.GetCount_management(tempParcels).getOutput(0))))&amp;nbsp; # Dissolve the parcels in the MRA by PARCELID # This will combine parcels with duplicate parcelid values (ex: parcels divided by a road or river.) # This will give us a feature class of parcels which are located in the MRA print("&amp;nbsp;&amp;nbsp; -&amp;gt; Dissolving by parcel id...") dissolveFields = ["PARCELID"] arcpy.Dissolve_management(tempParcels, finalDOHParcels, dissolveFields, "", "MULTI_PART", "") Total_Parcels_In_MRA = int(arcpy.GetCount_management(finalDOHParcels).getOutput(0)) print("FYI :: Number of parcels in MRA after Dissolve: {0}".format(str(Total_Parcels_In_MRA)))&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 17:45:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-writing-to-file-geodatabase-other-than/m-p/589336#M46178</guid>
      <dc:creator>JaniceBaird</dc:creator>
      <dc:date>2014-06-12T17:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem writing to file geodatabase other than default.gdb</title>
      <link>https://community.esri.com/t5/python-questions/problem-writing-to-file-geodatabase-other-than/m-p/589337#M46179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;env.workspace = r"\\skagit\dept\gis\janiceb\Projects\Health\June_2014\Septic.gdb"
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It can't find this path.&amp;nbsp; Give it the drive letter (if it is a mapped drive) or the complete UNC path (make sure "\\skagit" is correct).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Suggestion: navigate to this Spetic.gdb in your ArcCatalog tree, then clickin the "Location" box to select the full path.&amp;nbsp; Right-click and choose "copy".&amp;nbsp; Then paste it into your code base.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit:&amp;nbsp; Or..&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://support.esri.com/en/knowledgebase/techarticles/detail/41280" rel="nofollow noopener noreferrer" target="_blank"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/41280&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 01:19:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-writing-to-file-geodatabase-other-than/m-p/589337#M46179</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2021-12-12T01:19:04Z</dc:date>
    </item>
    <item>
      <title>Re: Problem writing to file geodatabase other than default.gdb</title>
      <link>https://community.esri.com/t5/python-questions/problem-writing-to-file-geodatabase-other-than/m-p/589338#M46180</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;James,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;\\skagit\dept\gis\janiceb\projects\Health\June_2014\Septic.gdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is the location that I go to in Catalog. The script actually creates the new feature class in the geodatabase but dissolve is unable to write to it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can use arcpy.ListWorkspaces and see the location and the file geodatabase. I can run the script with the default.gdb but not my septic.gdb.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The link you provided is about Microsoft Security Essentials and I can not find that on my workstation...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks for the info&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Janice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 19:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-writing-to-file-geodatabase-other-than/m-p/589338#M46180</guid>
      <dc:creator>JaniceBaird</dc:creator>
      <dc:date>2014-06-12T19:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem writing to file geodatabase other than default.gdb</title>
      <link>https://community.esri.com/t5/python-questions/problem-writing-to-file-geodatabase-other-than/m-p/589339#M46181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Maybe check to make sure correct permissions are set to allow you to write to the directory:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;\\skagit\dept\gis\janiceb\Projects\Health\June_2014&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Edit: the link also says: "...Other anti-virus programs/applications can also prevent the creation of the feature class".&amp;nbsp; Perhaps it isn't just related to Microsoft Essentials?&amp;nbsp; Not sure.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 19:26:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-writing-to-file-geodatabase-other-than/m-p/589339#M46181</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2014-06-12T19:26:18Z</dc:date>
    </item>
    <item>
      <title>Re: Problem writing to file geodatabase other than default.gdb</title>
      <link>https://community.esri.com/t5/python-questions/problem-writing-to-file-geodatabase-other-than/m-p/589340#M46182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I spoke with a couple of my co-workers who were in today and got the scoop on what is probably giving me issues...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://support.esri.com/en/knowledgebase/techarticles/detail/41119/?WT.mc_id=EmailCampaign15945" rel="nofollow" target="_blank"&gt;http://support.esri.com/en/knowledgebase/techarticles/detail/41119/?WT.mc_id=EmailCampaign15945&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I heard of this long, long, ago! This has to do with creating file geodatabases on a network. I do not see the mentioned Microsoft Hot Fix on the server that I am running the script on but decided to discontinue the struggle and add the extra steps of creating my data locally and then copying it out to the network when I am done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyone have more news on this issue and why is it still an issue? It seems that it has been a known problem for over a year! I am using 10.1.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Janice.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Jun 2014 14:48:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/problem-writing-to-file-geodatabase-other-than/m-p/589340#M46182</guid>
      <dc:creator>JaniceBaird</dc:creator>
      <dc:date>2014-06-13T14:48:15Z</dc:date>
    </item>
  </channel>
</rss>

