<?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 Script overwriting referenced feature layer in Portal for ArcGIS in Publishing and Managing Services Questions</title>
    <link>https://community.esri.com/t5/publishing-and-managing-services-questions/script-overwriting-referenced-feature-layer-in/m-p/1042391#M365</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm hoping someone can help me. I have a feature layer in my local portal instance. This feature service references a dataset that lives in an enterprise geodatabase. Every month a new version of this dataset is added to the enterprise geodatabase and I overwrite the feature layer in portal. The dataset is made up of two layers, point and polygon.&lt;/P&gt;&lt;P&gt;I would like to automate overwriting the feature layer in the portal. However when reading the guidance and looking at blogs they all indicate that you need to overwrite the service definition layer. I do not seem to have a service definition in my portal (is this because its a referenced layer?).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any script that might be able to solve this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI I have looked at the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-questions/automate-overwrite-web-layer-feature-class/td-p/20067" target="_blank"&gt;https://community.esri.com/t5/python-questions/automate-overwrite-web-layer-feature-class/td-p/20067&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/sample-notebooks/overwriting-feature-layers/" target="_blank"&gt;https://developers.arcgis.com/python/sample-notebooks/overwriting-feature-layers/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/api-python/analytics/updating-your-hosted-feature-services-with-arcgis-pro-and-the-arcgis-api-for-python/?rmedium=redirect&amp;amp;rsource=blogs.esri.com/esri/arcgis/2017/03/14/updating-your-hosted-feature-services-with-arcgis-pro-and-the-arcgis-api-for-python" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/api-python/analytics/updating-your-hosted-feature-services-with-arcgis-pro-and-the-arcgis-api-for-python/?rmedium=redirect&amp;amp;rsource=blogs.esri.com/esri/arcgis/2017/03/14/updating-your-hosted-feature-services-with-arcgis-pro-and-the-arcgis-api-for-python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 31 Mar 2021 14:46:20 GMT</pubDate>
    <dc:creator>OsgurMcDermott_Long</dc:creator>
    <dc:date>2021-03-31T14:46:20Z</dc:date>
    <item>
      <title>Script overwriting referenced feature layer in Portal for ArcGIS</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/script-overwriting-referenced-feature-layer-in/m-p/1042391#M365</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm hoping someone can help me. I have a feature layer in my local portal instance. This feature service references a dataset that lives in an enterprise geodatabase. Every month a new version of this dataset is added to the enterprise geodatabase and I overwrite the feature layer in portal. The dataset is made up of two layers, point and polygon.&lt;/P&gt;&lt;P&gt;I would like to automate overwriting the feature layer in the portal. However when reading the guidance and looking at blogs they all indicate that you need to overwrite the service definition layer. I do not seem to have a service definition in my portal (is this because its a referenced layer?).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any script that might be able to solve this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance!&amp;nbsp;&lt;/P&gt;&lt;P&gt;FYI I have looked at the following:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-questions/automate-overwrite-web-layer-feature-class/td-p/20067" target="_blank"&gt;https://community.esri.com/t5/python-questions/automate-overwrite-web-layer-feature-class/td-p/20067&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/sample-notebooks/overwriting-feature-layers/" target="_blank"&gt;https://developers.arcgis.com/python/sample-notebooks/overwriting-feature-layers/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.esri.com/arcgis-blog/products/api-python/analytics/updating-your-hosted-feature-services-with-arcgis-pro-and-the-arcgis-api-for-python/?rmedium=redirect&amp;amp;rsource=blogs.esri.com/esri/arcgis/2017/03/14/updating-your-hosted-feature-services-with-arcgis-pro-and-the-arcgis-api-for-python" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/api-python/analytics/updating-your-hosted-feature-services-with-arcgis-pro-and-the-arcgis-api-for-python/?rmedium=redirect&amp;amp;rsource=blogs.esri.com/esri/arcgis/2017/03/14/updating-your-hosted-feature-services-with-arcgis-pro-and-the-arcgis-api-for-python&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 14:46:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/script-overwriting-referenced-feature-layer-in/m-p/1042391#M365</guid>
      <dc:creator>OsgurMcDermott_Long</dc:creator>
      <dc:date>2021-03-31T14:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: Script overwriting referenced feature layer in Portal for ArcGIS</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/script-overwriting-referenced-feature-layer-in/m-p/1042399#M366</link>
      <description>&lt;P&gt;It was my understanding that if you reference an enterprise database, the Portal feature layer should be updated automatically with the new data.&amp;nbsp; Is this not the case for you?&lt;/P&gt;&lt;P&gt;Does the schema of the data change between monthly updates?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 14:59:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/script-overwriting-referenced-feature-layer-in/m-p/1042399#M366</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2021-03-31T14:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Script overwriting referenced feature layer in Portal for ArcGIS</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/script-overwriting-referenced-feature-layer-in/m-p/1042411#M367</link>
      <description>&lt;P&gt;The schema does not change between versions. The issues is that it isnt ideally set up, I unfortunately have a new dataset each month. If I could replace the layer easily in the Enterprise Geodatabase and maintain the connection to portal that would be great&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 15:10:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/script-overwriting-referenced-feature-layer-in/m-p/1042411#M367</guid>
      <dc:creator>OsgurMcDermott_Long</dc:creator>
      <dc:date>2021-03-31T15:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: Script overwriting referenced feature layer in Portal for ArcGIS</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/script-overwriting-referenced-feature-layer-in/m-p/1042418#M368</link>
      <description>&lt;P&gt;So you are not replacing the data set in SDE, but adding a new data set each time?&amp;nbsp; If this is the case, is there an error in SDE if you try to overwrite the feature data set?&lt;/P&gt;</description>
      <pubDate>Wed, 31 Mar 2021 15:13:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/script-overwriting-referenced-feature-layer-in/m-p/1042418#M368</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2021-03-31T15:13:52Z</dc:date>
    </item>
    <item>
      <title>Re: Script overwriting referenced feature layer in Portal for ArcGIS</title>
      <link>https://community.esri.com/t5/publishing-and-managing-services-questions/script-overwriting-referenced-feature-layer-in/m-p/1054853#M397</link>
      <description>&lt;P&gt;Osgur:&lt;/P&gt;&lt;P&gt;Have you tried to implement the python code in the 3rd link that you have provided?&lt;/P&gt;&lt;P&gt;I am trying to use that code to update a Portal hosted feature layer but I am getting error in Server manager that says it can not find service even though I can perform the same process manually in Pro.&amp;nbsp; I did see mention of a bug with updating hosted feature layers with python when Active Directory authentication is being used for Portal which is the case at my org.&lt;/P&gt;</description>
      <pubDate>Wed, 05 May 2021 19:35:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/publishing-and-managing-services-questions/script-overwriting-referenced-feature-layer-in/m-p/1054853#M397</guid>
      <dc:creator>MichaelVolz</dc:creator>
      <dc:date>2021-05-05T19:35:59Z</dc:date>
    </item>
  </channel>
</rss>

