<?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: Geoprocessing Services - Write Data to Non ArcGIS Server Location in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499530#M39225</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow thanks for the insight. It in fact seems to be a permissions issue. I ran a script to create a geodatabase from the server side onto the shared network location and everything is working like a charm. Of course having to run a script to create a geodatabase in this manner can be tedious so what I think needs to be done is have higher level permissions applied to the ArcGIS Server admin account. Thanks for your help Josh!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Feb 2020 16:23:20 GMT</pubDate>
    <dc:creator>LanceKirby2</dc:creator>
    <dc:date>2020-02-20T16:23:20Z</dc:date>
    <item>
      <title>Geoprocessing Services - Write Data to Non ArcGIS Server Location</title>
      <link>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499523#M39218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've searched many threads for an answer to this question, but haven't had a lot of luck. In a nutshell what I am trying to do is have a geoprocessing service run on the ArcGIS Server, but access a network file geodatabase location, retrieve data, manipulate data, and write back to that file geodatabase. I have the gdb registered with the service so I have no problem accessing or manipulating the data. However, I am running into issues writing back to the file geodatabase. I can however, write a shapefile back to the folder containing the file geodatabase with no issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just been trying to test this with some very simple code that I will attach below. The first example is writing to the folder as a shapefile which works just fine. The second example is basically the same except I am trying to write to a file geodatabase.&amp;nbsp; In the 2nd example my code will not delete the feature class when it is present. That is where it fails. If I manually delete it before I run the service, my code will fail on the copy features. (Note I am testing for the presence of the shapefile or FC and deleting it as arcpy.env.overwriteOutput does not work in Pro 2.5.) I would very much appreciate any help or suggestions!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:42:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499523#M39218</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2020-02-18T20:42:04Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Services - Write Data to Non ArcGIS Server Location</title>
      <link>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499524#M39219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is helpful if you can post the error messages and trace backs for any Python errors and ArcPy messages for anything being returned by the service.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 20:58:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499524#M39219</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-02-18T20:58:54Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Services - Write Data to Non ArcGIS Server Location</title>
      <link>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499525#M39220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the quick response. This is the error returned when the script tries to delete the feature class&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/482577_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is what is returned when I manually delete the feature class.&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/482578_pastedImage_2.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 21:46:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499525#M39220</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2020-02-18T21:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Services - Write Data to Non ArcGIS Server Location</title>
      <link>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499526#M39221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So it looks like the service has no issue accessing the file geodatabase.. It's only when it tries to write or delete data from it that causes the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 21:48:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499526#M39221</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2020-02-18T21:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Services - Write Data to Non ArcGIS Server Location</title>
      <link>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499527#M39222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My guess is file system permissions.&amp;nbsp; What credentials are you running GIS Server under?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 22:04:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499527#M39222</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-02-18T22:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Services - Write Data to Non ArcGIS Server Location</title>
      <link>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499528#M39223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;That is what I thought as well; however, I can write a shapefile or say a PDF map to the folder containing this geodatabase. It's only when I try to write/delete data inside the geodatabase that it fails. So, if that account has permissions to write data to the folder containing the geodatabase, then I would assume it would have permission to write inside the geodatabase itself unless there was some specific restrictions applied on the geodatabase itself, which I am almost certain there are not.&amp;nbsp;I'm using the ArcGIS Server admin account that appears to have read write access to this location.&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Can write data here: \\toto\gis\_ArcGIS_PublishingProjects\_tools\widget_downloads\GpTool&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;Can not write here:&amp;nbsp; &amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;\\toto\gis\_ArcGIS_PublishingProjects\_tools\widget_downloads\GpTool\outSDE.gdb&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 22:16:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499528#M39223</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2020-02-18T22:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Services - Write Data to Non ArcGIS Server Location</title>
      <link>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499529#M39224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;if that account has permissions to write data to the folder containing the geodatabase, then I would assume it would have permission to write inside the geodatabase itself&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Not necessarily.&amp;nbsp; The way Creator Owner permissions are commonly set on shared directories allows multiple people to create files and folders, but once someone creates a file or folder that file or folder is owned only by him/her and others cannot modify or delete it (but can commonly read it).&amp;nbsp; Try running a script that creates a new file geodatabase in the parent directory in question.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Feb 2020 22:38:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499529#M39224</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-02-18T22:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Services - Write Data to Non ArcGIS Server Location</title>
      <link>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499530#M39225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Wow thanks for the insight. It in fact seems to be a permissions issue. I ran a script to create a geodatabase from the server side onto the shared network location and everything is working like a charm. Of course having to run a script to create a geodatabase in this manner can be tedious so what I think needs to be done is have higher level permissions applied to the ArcGIS Server admin account. Thanks for your help Josh!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 16:23:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499530#M39225</guid>
      <dc:creator>LanceKirby2</dc:creator>
      <dc:date>2020-02-20T16:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: Geoprocessing Services - Write Data to Non ArcGIS Server Location</title>
      <link>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499531#M39226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, granting additional permissions to the GIS Server service account is what our organization does to address these kinds of situations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since it seems like my response answered your question, please mark one of the responses as correct to close out the thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 17:04:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/geoprocessing-services-write-data-to-non-arcgis/m-p/499531#M39226</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-02-20T17:04:39Z</dc:date>
    </item>
  </channel>
</rss>

