<?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 Error on Versioned Feature Class Triggers in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/error-on-versioned-feature-class-triggers/m-p/793846#M2270</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have create a versioned feature class CP_FACILITY on SQL Server 2014. The feature class only stores the geometry and few attributes while other text attributes are store in table FACILITY. Therefore, I use triggers to synchronize the attributes between CP_FACILITY and FACILITY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created trigger on A table:&lt;/P&gt;&lt;P&gt;ALTER TRIGGER TR_CP_FACILITY_2_INS ON A562&lt;BR /&gt;AFTER INSERT&lt;BR /&gt;AS&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also trigger on D table:&lt;/P&gt;&lt;P&gt;ALTER TRIGGER TR_CP_FACILITY_2_DEL ON D562&lt;BR /&gt;AFTER INSERT&lt;BR /&gt;AS&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trigger TR_CP_FACILITY_2_INS runs fine but the trigger TR_CP_FACILITY_2_DEL has problem, whenever I delete a feature in CP_FACILITY, the following error is shwon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete Feature: An unexpected failure occurred.Underlying DBMS error [HY000:[Microsoft][ODBC Driver 11 for SQL Server]Connection is busy with results for another command][CPIS.DBO.CP_FACILITY_2][STATE_ID = 1903]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know what I have done wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Oct 2018 04:27:56 GMT</pubDate>
    <dc:creator>MatsHardy</dc:creator>
    <dc:date>2018-10-10T04:27:56Z</dc:date>
    <item>
      <title>Error on Versioned Feature Class Triggers</title>
      <link>https://community.esri.com/t5/geodatabase-questions/error-on-versioned-feature-class-triggers/m-p/793846#M2270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have create a versioned feature class CP_FACILITY on SQL Server 2014. The feature class only stores the geometry and few attributes while other text attributes are store in table FACILITY. Therefore, I use triggers to synchronize the attributes between CP_FACILITY and FACILITY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created trigger on A table:&lt;/P&gt;&lt;P&gt;ALTER TRIGGER TR_CP_FACILITY_2_INS ON A562&lt;BR /&gt;AFTER INSERT&lt;BR /&gt;AS&lt;/P&gt;&lt;P&gt;.......&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also trigger on D table:&lt;/P&gt;&lt;P&gt;ALTER TRIGGER TR_CP_FACILITY_2_DEL ON D562&lt;BR /&gt;AFTER INSERT&lt;BR /&gt;AS&lt;/P&gt;&lt;P&gt;......&lt;/P&gt;&lt;P&gt;GO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The trigger TR_CP_FACILITY_2_INS runs fine but the trigger TR_CP_FACILITY_2_DEL has problem, whenever I delete a feature in CP_FACILITY, the following error is shwon:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Delete Feature: An unexpected failure occurred.Underlying DBMS error [HY000:[Microsoft][ODBC Driver 11 for SQL Server]Connection is busy with results for another command][CPIS.DBO.CP_FACILITY_2][STATE_ID = 1903]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know what I have done wrong?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Oct 2018 04:27:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/error-on-versioned-feature-class-triggers/m-p/793846#M2270</guid>
      <dc:creator>MatsHardy</dc:creator>
      <dc:date>2018-10-10T04:27:56Z</dc:date>
    </item>
  </channel>
</rss>

