<?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: Copy a polygon from one feature layer to another one in Portal in ArcGIS Enterprise Portal Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/copy-a-polygon-from-one-feature-layer-to-another/m-p/66438#M795</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are these hosted feature layers? You can try to do this in ArcMap using the disconnected editing workflow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/editing-fundamentals/making-a-local-copy-of-a-service-for-editing.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/editing-fundamentals/making-a-local-copy-of-a-service-for-editing.htm"&gt;Making a local copy of a feature service for editing—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another approach is to get the input features through the input parameter, and then use &lt;A href="https://developers.arcgis.com/rest/services-reference/apply-edits-feature-service-.htm"&gt;Add&lt;/A&gt;/&lt;A href="https://developers.arcgis.com/rest/services-reference/update-features.htm"&gt;Update&lt;/A&gt;/&lt;A href="https://developers.arcgis.com/rest/services-reference/delete-features.htm"&gt;Delete&lt;/A&gt; operations within the API to update the new layer. You're not getting a feature class, layer, table, or table view when you run it as a GP service, so an insert cursor won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/data-access/insertcursor-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/data-access/insertcursor-class.htm"&gt;InsertCursor—Data Access module | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="margin-bottom: 1.55rem; width: 767px; background-color: #ffffff; border-collapse: collapse; border-spacing: 0px; border: 1px solid #cccccc; text-align: left; overflow: auto; font-size: 0.875rem; line-height: 1.55rem; color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;THEAD style="background-color: #efefef; border-bottom: 1px solid #cccccc; font-weight: 400; font-style: normal; font-size: 1rem; line-height: 1.55rem;"&gt;&lt;TR style="border-bottom: none; text-align: left;"&gt;&lt;TD class="" style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;Parameter&lt;/TD&gt;&lt;TD class="" style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;Explanation&lt;/TD&gt;&lt;TD class="" style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;Data Type&lt;/TD&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="overflow: auto; width: 767px;"&gt;&lt;TR style="border-bottom: 1px solid #cccccc; text-align: left;"&gt;&lt;TD style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;&lt;DIV class=""&gt;in_table&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;&lt;P style="margin-top: 0px; margin-bottom: 0px;"&gt;The feature class, layer, table, or table view.&lt;/P&gt;&lt;/TD&gt;&lt;TD style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;String&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Apr 2018 18:40:33 GMT</pubDate>
    <dc:creator>JonathanQuinn</dc:creator>
    <dc:date>2018-04-11T18:40:33Z</dc:date>
    <item>
      <title>Copy a polygon from one feature layer to another one in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/copy-a-polygon-from-one-feature-layer-to-another/m-p/66437#M794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to copy a polygon from one feature layer to another one in a web application in Portal for ArcGIS containing both polygon layers. I have a federated ArcGIS for Server, to which I have published a geoprocessing service with the following code in it: &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;import arcpy&lt;/P&gt;&lt;P&gt;inPolygon = arcpy.GetParameter(0)&lt;BR /&gt;copyLayer = arcpy.GetParameter(1)&lt;/P&gt;&lt;P&gt;with arcpy.da.InsertCursor(copyLayer, ['PIN','SHAPE@']) as icursor:&lt;BR /&gt; with arcpy.da.SearchCursor (inPolygon, ['PIN','SHAPE@']) as cursor:&lt;BR /&gt; for row in cursor:&lt;BR /&gt; icursor.insertRow([row[0],row[1]])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I have a layer going in for which I create a search cursor, with the resulting rows copied to another layer with an insert cursor. &amp;nbsp;This works fine on the desktop. When I publish the geoprocessing service in ArcGIS for Server, I make the layers interactive so that the user can choose the input and output layers. Indeed, In Portal this works and I can let the user select these layers. Note that both layers in Portal for ArcGIS are the same type (polygon) and both have an attribute field named "PIN".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However the copying does not work. I have also tried using the "select" widget to select one polygon of the input layer as well then redirect that input to the geoprocessing service, but nothing works. &amp;nbsp;The error I am getting in ArcGIS for Server logs is "The workspace is not connected".&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone has an example of how to copy a polygon feature from one feature layer to another in Portal for ArcGIS using a geoprocessing service?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hugo&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Apr 2018 05:22:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/copy-a-polygon-from-one-feature-layer-to-another/m-p/66437#M794</guid>
      <dc:creator>HugoBouckaert1</dc:creator>
      <dc:date>2018-04-10T05:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: Copy a polygon from one feature layer to another one in Portal</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-portal-questions/copy-a-polygon-from-one-feature-layer-to-another/m-p/66438#M795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are these hosted feature layers? You can try to do this in ArcMap using the disconnected editing workflow:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/editing-fundamentals/making-a-local-copy-of-a-service-for-editing.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/editing-fundamentals/making-a-local-copy-of-a-service-for-editing.htm"&gt;Making a local copy of a feature service for editing—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another approach is to get the input features through the input parameter, and then use &lt;A href="https://developers.arcgis.com/rest/services-reference/apply-edits-feature-service-.htm"&gt;Add&lt;/A&gt;/&lt;A href="https://developers.arcgis.com/rest/services-reference/update-features.htm"&gt;Update&lt;/A&gt;/&lt;A href="https://developers.arcgis.com/rest/services-reference/delete-features.htm"&gt;Delete&lt;/A&gt; operations within the API to update the new layer. You're not getting a feature class, layer, table, or table view when you run it as a GP service, so an insert cursor won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/data-access/insertcursor-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/data-access/insertcursor-class.htm"&gt;InsertCursor—Data Access module | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE style="margin-bottom: 1.55rem; width: 767px; background-color: #ffffff; border-collapse: collapse; border-spacing: 0px; border: 1px solid #cccccc; text-align: left; overflow: auto; font-size: 0.875rem; line-height: 1.55rem; color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;THEAD style="background-color: #efefef; border-bottom: 1px solid #cccccc; font-weight: 400; font-style: normal; font-size: 1rem; line-height: 1.55rem;"&gt;&lt;TR style="border-bottom: none; text-align: left;"&gt;&lt;TD class="" style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;Parameter&lt;/TD&gt;&lt;TD class="" style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;Explanation&lt;/TD&gt;&lt;TD class="" style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;Data Type&lt;/TD&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="overflow: auto; width: 767px;"&gt;&lt;TR style="border-bottom: 1px solid #cccccc; text-align: left;"&gt;&lt;TD style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;&lt;DIV class=""&gt;in_table&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;&lt;P style="margin-top: 0px; margin-bottom: 0px;"&gt;The feature class, layer, table, or table view.&lt;/P&gt;&lt;/TD&gt;&lt;TD style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;String&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 18:40:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-portal-questions/copy-a-polygon-from-one-feature-layer-to-another/m-p/66438#M795</guid>
      <dc:creator>JonathanQuinn</dc:creator>
      <dc:date>2018-04-11T18:40:33Z</dc:date>
    </item>
  </channel>
</rss>

