<?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: If data exists does not work in ArcMap Questions</title>
    <link>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041379#M2221</link>
    <description>&lt;P&gt;yes I know, but that model is based on:&amp;nbsp;&lt;/P&gt;&lt;P&gt;when output of copy features "ID" is created and saved in another gdb (not Ka.gdb), after then it can delete Ka.gdb. that is why i include that "if exist"&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 28 Mar 2021 16:37:03 GMT</pubDate>
    <dc:creator>StanislavaV</dc:creator>
    <dc:date>2021-03-28T16:37:03Z</dc:date>
    <item>
      <title>If data exists does not work</title>
      <link>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041331#M2214</link>
      <description>&lt;P&gt;HI!&lt;/P&gt;&lt;P&gt;I have large model made in ModelBuilder in ArcMap. First step is to create GDB where all of the outputs are saved. I need to the final output save in another output location. So I add "if data exists" this final output and I connect Yes (like precondition) with Delete that GDB. But it does not work.&lt;/P&gt;&lt;P&gt;When I run just Delete GDB - it works, but with those "if..." not.&lt;/P&gt;&lt;P&gt;What is the problem?&lt;/P&gt;&lt;P&gt;I know about scratch workspaces or in memory, but I need it this way in case it crash..&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 22:23:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041331#M2214</guid>
      <dc:creator>StanislavaV</dc:creator>
      <dc:date>2021-03-27T22:23:24Z</dc:date>
    </item>
    <item>
      <title>Re: If data exists does not work</title>
      <link>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041337#M2215</link>
      <description>&lt;P&gt;You can't delete objects that have been validated in ModelBuilder because there are file locks in play.&lt;/P&gt;&lt;P&gt;Have you tried using scratchGDB instead of in_memory? That way if you have a crash the scratch data will still be there after the model fails.&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 23:09:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041337#M2215</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-03-27T23:09:22Z</dc:date>
    </item>
    <item>
      <title>Re: If data exists does not work</title>
      <link>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041345#M2216</link>
      <description>&lt;P&gt;I can´t figure it out. So I set the output location everywhere like C://User/username/Documents/scratch.gdb/base_name? Or C://User/username/Documents/&lt;EM&gt;%scratchGDB%/base_name?&amp;nbsp;&lt;/EM&gt;And then it should work?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Mar 2021 23:59:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041345#M2216</guid>
      <dc:creator>StanislavaV</dc:creator>
      <dc:date>2021-03-27T23:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: If data exists does not work</title>
      <link>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041347#M2217</link>
      <description>&lt;P&gt;The model variable %scratchGDB% or %scratchFolder% will be replaced with a current writable location, normally a GDB or folder named scratch in the current project folder. For details, see the help for these environment variables.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 02:49:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041347#M2217</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-03-28T02:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: If data exists does not work</title>
      <link>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041364#M2218</link>
      <description>&lt;P&gt;didn´t work either. i don´t understand why is that when it is connected like "if data exists" in model, it won´t delete. but when i run model just for deleting, it works. i wanted to make it like "after model finish, than delete gdb"&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="StanislavaV_0-1616939089568.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/9524iD33AA1888D960429/image-size/medium?v=v2&amp;amp;px=400" role="button" title="StanislavaV_0-1616939089568.png" alt="StanislavaV_0-1616939089568.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 13:46:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041364#M2218</guid>
      <dc:creator>StanislavaV</dc:creator>
      <dc:date>2021-03-28T13:46:28Z</dc:date>
    </item>
    <item>
      <title>Re: If data exists does not work</title>
      <link>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041367#M2219</link>
      <description>The issue is file locking. When you create or access data in your gdb, layers are created in memory that are pointing to your data and create a file lock that prevents deleting. Are you deleting all the layers and data before trying to delete the workspace? Even if you do that it can be challenging.&lt;BR /&gt;</description>
      <pubDate>Sun, 28 Mar 2021 14:07:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041367#M2219</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2021-03-28T14:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: If data exists does not work</title>
      <link>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041372#M2220</link>
      <description>&lt;P&gt;If you simply want to delete the file geodatabase if it exists, using Exists is unnecessary because Delete returns success whether the file geodatabase exists or not.&amp;nbsp; Delete will return a warning if the geodatabase does not exist, but it returns "success" whether the GDB exists or not.&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 15:40:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041372#M2220</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-03-28T15:40:17Z</dc:date>
    </item>
    <item>
      <title>Re: If data exists does not work</title>
      <link>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041379#M2221</link>
      <description>&lt;P&gt;yes I know, but that model is based on:&amp;nbsp;&lt;/P&gt;&lt;P&gt;when output of copy features "ID" is created and saved in another gdb (not Ka.gdb), after then it can delete Ka.gdb. that is why i include that "if exist"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 16:37:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041379#M2221</guid>
      <dc:creator>StanislavaV</dc:creator>
      <dc:date>2021-03-28T16:37:03Z</dc:date>
    </item>
    <item>
      <title>Re: If data exists does not work</title>
      <link>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041387#M2222</link>
      <description>&lt;P&gt;yes i tried it. nothing again. i am thinking maybe about creating submodel? or i will give up and create another model just for "cleaning up" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 28 Mar 2021 17:33:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041387#M2222</guid>
      <dc:creator>StanislavaV</dc:creator>
      <dc:date>2021-03-28T17:33:49Z</dc:date>
    </item>
    <item>
      <title>Re: If data exists does not work</title>
      <link>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041533#M2237</link>
      <description>&lt;P&gt;Ah, OK, I thought you were checking for the existence of the GDB you were deleting and not another GDB.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Mar 2021 14:44:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcmap-questions/if-data-exists-does-not-work/m-p/1041533#M2237</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2021-03-29T14:44:56Z</dc:date>
    </item>
  </channel>
</rss>

