<?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 Accessing Portal Data Store Data in ArcPy in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/accessing-portal-data-store-data-in-arcpy/m-p/276358#M9511</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to write a Web Tool (GP Service) that references a hosted feature service that I have published in Portal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: I want to do a spatial join (intersect) with an input point location to a hosted feature service boundary.&amp;nbsp; If I reference the feature service REST endpoint in the operation, it works fine.&amp;nbsp; However, publishing as a web tool requires that I choose 'copy' the data and cannot access it by reference because it says the service is not registered with the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, I'd like to write a Web Tool (GP Service) that operates by reference to the actual data and not needing to copy any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using a combination of ArcGIS API for Python and ArcPy.&amp;nbsp; Instead of referencing the item by URL, I used `gis.content.get(id)` to get the item by ID and tried passing the feature layer `.layers[0]' into the Spatial Join operation.&amp;nbsp; That didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you write ArcPy scripts to work with data/services as hosted feature services without needing to copy any data when publishing GP Services?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 May 2019 05:36:03 GMT</pubDate>
    <dc:creator>JoshuaTanner2</dc:creator>
    <dc:date>2019-05-04T05:36:03Z</dc:date>
    <item>
      <title>Accessing Portal Data Store Data in ArcPy</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/accessing-portal-data-store-data-in-arcpy/m-p/276358#M9511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to write a Web Tool (GP Service) that references a hosted feature service that I have published in Portal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: I want to do a spatial join (intersect) with an input point location to a hosted feature service boundary.&amp;nbsp; If I reference the feature service REST endpoint in the operation, it works fine.&amp;nbsp; However, publishing as a web tool requires that I choose 'copy' the data and cannot access it by reference because it says the service is not registered with the server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ideally, I'd like to write a Web Tool (GP Service) that operates by reference to the actual data and not needing to copy any data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using a combination of ArcGIS API for Python and ArcPy.&amp;nbsp; Instead of referencing the item by URL, I used `gis.content.get(id)` to get the item by ID and tried passing the feature layer `.layers[0]' into the Spatial Join operation.&amp;nbsp; That didn't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you write ArcPy scripts to work with data/services as hosted feature services without needing to copy any data when publishing GP Services?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 May 2019 05:36:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/accessing-portal-data-store-data-in-arcpy/m-p/276358#M9511</guid>
      <dc:creator>JoshuaTanner2</dc:creator>
      <dc:date>2019-05-04T05:36:03Z</dc:date>
    </item>
  </channel>
</rss>

