<?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 Create Vs Replace in Data Pipelines Questions</title>
    <link>https://community.esri.com/t5/data-pipelines-questions/create-vs-replace/m-p/1550229#M111</link>
    <description>&lt;P&gt;I've got a bunch of layers that I want to bring in as hosted feature layers from my ArcGIS Server Rest service implementation.&amp;nbsp; I've got the process working but have doubts about how "create" is used vs "replace".&lt;/P&gt;&lt;P&gt;I see that at first, I have to use "create" to get the hosted feature layers generated, but then, as we update our enterprise data being exposed by our ArcGIS Server site, I want to replace the data in the hosted feature layers via the scheduler.&lt;/P&gt;&lt;P&gt;Right now, in Data Pipelines, I bring in each ArcGIS Server based feature layer and then associate that to a hosted feature layer output with the "create" option.&amp;nbsp; But then, once that's done, I've been changing the "create" option to "replace".&lt;/P&gt;&lt;P&gt;This is a fairly laborious process.&amp;nbsp; Is there a trick to this?&amp;nbsp; Should I have one data pipeline for "create" on all my layers, and then have another one that uses "replace"?&amp;nbsp; That way if I ever need to recreate a layer, I can use that "create" pipeline but for the standard, scheduled update process, I'd just be using the "replace" pipeline.&lt;/P&gt;&lt;P&gt;What's the most sensible workflow here?&amp;nbsp; Ideally, I'd like to see the "create" and "replace" as a single option.&amp;nbsp; So, if the layer doesn't exist, create it and if it does, just replace the data, or perhaps a toggle to allow for data replacement vs recreation of the entire hosted feature layer.&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;x &lt;/SPAN&gt;&lt;SPAN class=""&gt;(x) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 18 Oct 2024 22:50:54 GMT</pubDate>
    <dc:creator>Royce_Simpson</dc:creator>
    <dc:date>2024-10-18T22:50:54Z</dc:date>
    <item>
      <title>Create Vs Replace</title>
      <link>https://community.esri.com/t5/data-pipelines-questions/create-vs-replace/m-p/1550229#M111</link>
      <description>&lt;P&gt;I've got a bunch of layers that I want to bring in as hosted feature layers from my ArcGIS Server Rest service implementation.&amp;nbsp; I've got the process working but have doubts about how "create" is used vs "replace".&lt;/P&gt;&lt;P&gt;I see that at first, I have to use "create" to get the hosted feature layers generated, but then, as we update our enterprise data being exposed by our ArcGIS Server site, I want to replace the data in the hosted feature layers via the scheduler.&lt;/P&gt;&lt;P&gt;Right now, in Data Pipelines, I bring in each ArcGIS Server based feature layer and then associate that to a hosted feature layer output with the "create" option.&amp;nbsp; But then, once that's done, I've been changing the "create" option to "replace".&lt;/P&gt;&lt;P&gt;This is a fairly laborious process.&amp;nbsp; Is there a trick to this?&amp;nbsp; Should I have one data pipeline for "create" on all my layers, and then have another one that uses "replace"?&amp;nbsp; That way if I ever need to recreate a layer, I can use that "create" pipeline but for the standard, scheduled update process, I'd just be using the "replace" pipeline.&lt;/P&gt;&lt;P&gt;What's the most sensible workflow here?&amp;nbsp; Ideally, I'd like to see the "create" and "replace" as a single option.&amp;nbsp; So, if the layer doesn't exist, create it and if it does, just replace the data, or perhaps a toggle to allow for data replacement vs recreation of the entire hosted feature layer.&lt;/P&gt;&lt;DIV&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;x &lt;/SPAN&gt;&lt;SPAN class=""&gt;(x) &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 18 Oct 2024 22:50:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-pipelines-questions/create-vs-replace/m-p/1550229#M111</guid>
      <dc:creator>Royce_Simpson</dc:creator>
      <dc:date>2024-10-18T22:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: Create Vs Replace</title>
      <link>https://community.esri.com/t5/data-pipelines-questions/create-vs-replace/m-p/1559023#M120</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Royce, thanks for the question! We made some related updates in the release this week:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;The "Create" method now has an "Overwrite" option that, when selected, will recreate the entire hosted feature layer if it already exists (&lt;A id="menur69ti" class="fui-Link ___1q1shib f2hkw1w f3rmtva f1ewtqcl fyind8e f1k6fduh f1w7gpdv fk6fouc fjoy568 figsok6 f1s184ao f1mk8lai fnbmjn9 f1o700av f13mvf36 f1cmlufx f9n3di6 f1ids18y f1tx3yz7 f1deo86v f1eh06m1 f1iescvh fhgqx19 f1olyrje f1p93eir f1nev41a f1h8hb77 f1lqvz6u f10aw75t fsle3fq f17ae5zn" title="https://doc.arcgis.com/en/data-pipelines/latest/process/output-feature-layer.htm" href="https://doc.arcgis.com/en/data-pipelines/latest/process/output-feature-layer.htm" target="_blank" rel="noreferrer noopener" aria-label="Link doc"&gt;doc&lt;/A&gt; &amp;amp; &lt;A href="https://doc.arcgis.com/en/data-pipelines/latest/get-started/schedule-data-pipeline-tasks.htm#ESRI_SECTION1_13B10ACCC857450B9F9D6899537D62C3" target="_self"&gt;considerations&lt;/A&gt;)&lt;/LI&gt;
&lt;LI&gt;When switching from "Create" to "Replace" after the data pipeline is run, the "Replace" layer will automatically populate with the output from "Create" (this was inspired by your post)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;BR /&gt;Our recommendation is to use "Create" while authoring and "Replace" for automated workflows. "Replace" is quite optimized for automation; it preserves the schema to avoid breaking downstream apps, it rolls back on failures, and it has negligible disruption (via a table swap). That said, "Create" with "Overwrite" enabled can also work if you want the layer schema to change. I would author this all within one data pipeline because it will be easier to switch from "Create" to "Replace" for the newly created layers.&lt;BR /&gt;&lt;BR /&gt;Hope this is helpful and please continue to share feedback as it comes up!&lt;BR /&gt;&lt;BR /&gt;Thank you, Max&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 01:30:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-pipelines-questions/create-vs-replace/m-p/1559023#M120</guid>
      <dc:creator>MaxPayson</dc:creator>
      <dc:date>2024-11-15T01:30:13Z</dc:date>
    </item>
  </channel>
</rss>

