<?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: What is the proper workflow to recreate data everyday? in ArcGIS GeoAnalytics Server Questions</title>
    <link>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/what-is-the-proper-workflow-to-recreate-data/m-p/855471#M130</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar situation. I just tested using truncate and append on a file geodatabase with locks. If it was just a geodatabase lock (like some had it open in ArcCatalog) the truncate/append worked. However, if someone had the feature class being truncated open in ArcCatalog preview, the truncate worked but the append failed with&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;ERROR 000224: Cannot insert features&lt;/P&gt;&lt;P&gt;Failed to execute (Append).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I tested this on 10.2.2 using Pyhon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If the feature class is opened in ArcCatalog with geometry preview, truncate/append works. If it's open with table preview, truncate works but append fails. Same thing happens with ArcMap; if the feature class is open in data view it will truncate/append but if the attribute table is also open it will truncate but fail to append.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Feb 2015 18:43:44 GMT</pubDate>
    <dc:creator>BlakeTerhune</dc:creator>
    <dc:date>2015-02-12T18:43:44Z</dc:date>
    <item>
      <title>What is the proper workflow to recreate data everyday?</title>
      <link>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/what-is-the-proper-workflow-to-recreate-data/m-p/855469#M128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a company wide database (it’s Sungard HTE aka AS400).&amp;nbsp; We have another program that pulls data out&lt;BR /&gt;of those databases and makes shapefiles. &lt;BR /&gt;That’s all it can output to, shapefiles or SDE.&amp;nbsp; So I have it creating new shapefiles every morning.&amp;nbsp;&amp;nbsp; I have&lt;BR /&gt;ArcCatalog on our Server and a model in ArcCatalog which will &lt;/P&gt;&lt;P&gt;Delete the previous days file geodatabase &lt;EM&gt;HTE.gdb&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Create a new Geodatabase &lt;EM&gt;HTE.gdb&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Import shapefiles into &lt;EM&gt;HTE.gdb&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This Geodatabase is used by users in ArcGIS Server applications and ArcReader.&lt;/P&gt;&lt;P&gt;Because I have been doing so many changes and experiments I&lt;BR /&gt;find it easier to have a batch file call modelbuilder and run it instead of&lt;BR /&gt;exporting to a new python file every time I make a change.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Unfortunately I have had nothing but problems with this workflow.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; The current problem that is making me pull my hair out is the previous nights&lt;EM&gt; HTE.gdb&lt;/EM&gt; will not delete.&amp;nbsp; I look in the geodatabase in&lt;BR /&gt;windows explorer and sometimes I see lock files from people who left their&lt;BR /&gt;computer on and ArcReader open, or a lock file from ArcGIS Server.&amp;nbsp; I made a batch file to stop services on the&lt;BR /&gt;server that hit that file geodatabase but even that does not work.&amp;nbsp; Often with no lock file it still will not&lt;BR /&gt;delete.&amp;nbsp; Other times I can get people to exit GIS applications and the lock file will remain.&amp;nbsp; The only night it works cleanly is the night&lt;BR /&gt;we do windows patches and everyone’s computer is forcibly rebooted. &lt;/P&gt;&lt;P&gt;What are other people doing? &lt;BR /&gt;What is the proper workflow to overwrite data on a nightly basis?&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 17:40:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/what-is-the-proper-workflow-to-recreate-data/m-p/855469#M128</guid>
      <dc:creator>TomMagdaleno</dc:creator>
      <dc:date>2015-02-12T17:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper workflow to recreate data everyday?</title>
      <link>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/what-is-the-proper-workflow-to-recreate-data/m-p/855470#M129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are importing the same shapefiles into the HTE.gdb everyday, you should take a look at using the &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/truncatetable.htm"&gt;Truncate Table&lt;/A&gt; and &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/data-management-toolbox/append.htm"&gt;Append &lt;/A&gt;tools.&amp;nbsp; These tools will work whether there are locks or not.&amp;nbsp; The tools will simply delete all rows in the feature classes, and then append new rows.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 17:51:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/what-is-the-proper-workflow-to-recreate-data/m-p/855470#M129</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2015-02-12T17:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper workflow to recreate data everyday?</title>
      <link>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/what-is-the-proper-workflow-to-recreate-data/m-p/855471#M130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a similar situation. I just tested using truncate and append on a file geodatabase with locks. If it was just a geodatabase lock (like some had it open in ArcCatalog) the truncate/append worked. However, if someone had the feature class being truncated open in ArcCatalog preview, the truncate worked but the append failed with&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;ERROR 000224: Cannot insert features&lt;/P&gt;&lt;P&gt;Failed to execute (Append).&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I tested this on 10.2.2 using Pyhon.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;EDIT:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If the feature class is opened in ArcCatalog with geometry preview, truncate/append works. If it's open with table preview, truncate works but append fails. Same thing happens with ArcMap; if the feature class is open in data view it will truncate/append but if the attribute table is also open it will truncate but fail to append.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Feb 2015 18:43:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/what-is-the-proper-workflow-to-recreate-data/m-p/855471#M130</guid>
      <dc:creator>BlakeTerhune</dc:creator>
      <dc:date>2015-02-12T18:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: What is the proper workflow to recreate data everyday?</title>
      <link>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/what-is-the-proper-workflow-to-recreate-data/m-p/855472#M131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you both for the replies so far.&amp;nbsp; I wasn't clear earlier but the daily updates are not just the changes, it is everything recreated from scratch.&amp;nbsp; So to prevent double data the old will need to be deleted first. &lt;/P&gt;&lt;P&gt;I'm waiting until 5:00 so I can go nuclear and stop the ArcGIS server in order to delete the old hte.gdb and recreate it.&amp;nbsp; After that I will try to build a model to do what you suggested Jake.&amp;nbsp; I tried it out on another dataset and it went pretty fast.&amp;nbsp; I was afraid it would take a long time to delete rows of data and then append new data to the empty feature class.&amp;nbsp; Hopefully it will let me delete the rows of old data&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Feb 2015 00:48:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-geoanalytics-server-questions/what-is-the-proper-workflow-to-recreate-data/m-p/855472#M131</guid>
      <dc:creator>TomMagdaleno</dc:creator>
      <dc:date>2015-02-13T00:48:01Z</dc:date>
    </item>
  </channel>
</rss>

