<?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: Trigger on Versioned Geodatabase in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819954#M3675</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this is the expected behavior.&amp;nbsp; There is no such thing as an UPDATE or DELETE in the versioning model, only a pair of INSERTs (one to the adds table, the other to deletes) and a single INSERT to deletes.&amp;nbsp; If you play close attention to how versioning is implemented, you'll understand why use of triggers is discouraged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 17 Apr 2016 01:39:17 GMT</pubDate>
    <dc:creator>VinceAngelo</dc:creator>
    <dc:date>2016-04-17T01:39:17Z</dc:date>
    <item>
      <title>Trigger on Versioned Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819948#M3669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I am trying to create a trigger on a versioned geodatabase, I created the trigger before registering the GDB as versioned; it worked well. However, when registering it as versioned GDB, the trigger does not work, and I am not able to create a trigger on the _evw view.&lt;/P&gt;&lt;P&gt;Is their a way to attach a trigger to the versioned GDB that is immediately fired when inserting/updating features?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is appreciated!&lt;/P&gt;&lt;P&gt;Hani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Mar 2016 22:32:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819948#M3669</guid>
      <dc:creator>HaniDraidi</dc:creator>
      <dc:date>2016-03-23T22:32:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on Versioned Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819949#M3670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Triggers aren't encouraged when intermixing with geodatabase functionality, but can work if you put them in the right place.&amp;nbsp; For versioned inserts, that place is &lt;STRONG&gt;not&lt;/STRONG&gt; the business table, but instead on the ADDs table.&amp;nbsp; Both insert and update requests go through the ADDs table first, so there is no reason to place a trigger on the business table (which would only fire during reconcile/post) .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Mar 2016 16:09:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819949#M3670</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2016-03-24T16:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on Versioned Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819950#M3671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many Thanks Vince!&lt;/P&gt;&lt;P&gt;As usual, your solutions resolve my issues!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2016 20:28:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819950#M3671</guid>
      <dc:creator>HaniDraidi</dc:creator>
      <dc:date>2016-03-26T20:28:26Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on Versioned Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819951#M3672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;BTW, Why the triggers are not recommended in geodatabases? What GDB capabilities/functions could be affected?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Mar 2016 20:56:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819951#M3672</guid>
      <dc:creator>HaniDraidi</dc:creator>
      <dc:date>2016-03-26T20:56:40Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on Versioned Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819952#M3673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif; font-size: 14px;"&gt;What GDB capabilities/functions could be affected?&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;All of them. Like any powerful tool, triggers could corrupt your geodatabase quite effectively (albeit unintentionally) -- corrupting versioning, altering domains, mangling relationship classes, ...&amp;nbsp; the list is endless, really.&amp;nbsp; Extreme caution&amp;nbsp; is recommended.&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Mar 2016 02:29:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819952#M3673</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2016-03-28T02:29:13Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on Versioned Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819953#M3674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vince,&lt;/P&gt;&lt;P&gt;I'm creating an easy trigger for data validation on a test feature class in a 10.3.1 SDE environment. We have an Oracle 11g backend as well.&lt;/P&gt;&lt;P&gt;However, I find that when editing the data in ArcMap, no matter what I'm doing, it only fires the Insert Trigger.&lt;/P&gt;&lt;P&gt;So, if I edit a feature that already exists, instead of the Update trigger running, the Insert Trigger runs. If I add a new record, then the Insert Trigger runs as its supposed to.&lt;/P&gt;&lt;P&gt;Wonder if you've encountered this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ruchira&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Apr 2016 18:05:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819953#M3674</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-04-16T18:05:32Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on Versioned Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819954#M3675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, this is the expected behavior.&amp;nbsp; There is no such thing as an UPDATE or DELETE in the versioning model, only a pair of INSERTs (one to the adds table, the other to deletes) and a single INSERT to deletes.&amp;nbsp; If you play close attention to how versioning is implemented, you'll understand why use of triggers is discouraged.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Apr 2016 01:39:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819954#M3675</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2016-04-17T01:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on Versioned Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819955#M3676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ruchira&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe, in order to maintain the lineage inside each version... any edition on a feature is treated as a insert....If you update the feature this lineage is lost. Does this make sense?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Jesús de Diego&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Apr 2016 21:35:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819955#M3676</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-04-17T21:35:39Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on Versioned Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819956#M3677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I get it! Thanks for clearing that up. Everything, whether an attribute update, add, or delete is an INSERT on the A and D table.&lt;/P&gt;&lt;P&gt;I've noticed however that when working with feature services, it is an update statement that runs to commit the attributes to the table. The record geometry is inserted, but it's an update that inputs the data into the newly created record.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ruch&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 13:00:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819956#M3677</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-04-18T13:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on Versioned Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819957#M3678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That makes sense, &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Jesús! Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 13:02:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819957#M3678</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2016-04-18T13:02:20Z</dc:date>
    </item>
    <item>
      <title>Re: Trigger on Versioned Geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819958#M3679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for pointing out the&amp;nbsp;INSERT/UPDATE process&amp;nbsp;Ruch.&amp;nbsp; It was driving me crazy, because my INSERT trigger works great in ArcMap, but fails on the feature service.&amp;nbsp; Have you developed a consistent process to handle this behavior?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 20:06:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/trigger-on-versioned-geodatabase/m-p/819958#M3679</guid>
      <dc:creator>SteveSchunzel</dc:creator>
      <dc:date>2016-09-09T20:06:40Z</dc:date>
    </item>
  </channel>
</rss>

