<?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: SQL Trigger on table causes CODE 500 Error. in ArcGIS Survey123 Questions</title>
    <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826822#M17302</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still unable to use an "AFTER UPDATE" sql trigger on the table of a survey123 feature class.&amp;nbsp; I am able to use&amp;nbsp;&lt;SPAN&gt;"AFTER INSERT".&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"AFTER&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;INSERT&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; does do one insert and I am able to pull data from the submission (before after insert would only work with Attachments&amp;nbsp;disabled.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;"AFTER UPDATE" still causes the survey submission to hang.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Sure would be nice to to use&amp;nbsp;"AFTER UPDATE" on a survey123 feature table...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jun 2019 21:14:12 GMT</pubDate>
    <dc:creator>TL2</dc:creator>
    <dc:date>2019-06-10T21:14:12Z</dc:date>
    <item>
      <title>SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826812#M17292</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a trigger on the base table of one of my feature services.&amp;nbsp; After Insert seems to work fine as I have concluded that a Survey123 to FS transaction does a Input, then an Update.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After Insert statements to not cause the Code 500 Error.&lt;/P&gt;&lt;P&gt;After Update does cause the Code 500 error, but not everytime, most of the time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a rational reason for this where I can code around it.&amp;nbsp; I need to pull data from insert after an update without the code 500.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I should add that the trigger performs fine and correctly when making the edits right in ArcMap, every time.&amp;nbsp; Also I have never had these issues with Collector (however most of my Collector FS is versioned, Survey123 is archive enabled.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 Jan 2018 21:59:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826812#M17292</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2018-01-04T21:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826813#M17293</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Tucker&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does you service have attachments? The reason I ask is that on submission, Survey123 will do an ApplyEdits and then an AddAttachments and this is why you would get two calls.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the future we will change this into a single transaction using apply edits with UploadID, but we are still working on this implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jan 2018 02:56:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826813#M17293</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2018-01-05T02:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826814#M17294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was skeptical on this response at first but apparently this is exactly what is going on.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I realized that all of my After Insert triggers work when there&amp;nbsp;are no attachments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When there are attachments, my After Insert triggers fire, but the declared variables are always null.&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to go something like this... Insert Row, Update Attachments, Update Row.&amp;nbsp; Unfortunately After Update does give the Code 500 error and freezes up the feature service as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any idea on the implementation of the apply edits with UploadID?&amp;nbsp; I would guess that is the method Collector uses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jan 2018 18:08:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826814#M17294</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2018-01-10T18:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826815#M17295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are aiming for 2.7 - there are just a couple of bugs that we need to iron out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jan 2018 02:49:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826815#M17295</guid>
      <dc:creator>JohnathanHasthorpe</dc:creator>
      <dc:date>2018-01-11T02:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826816#M17296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Was this able to be fixed in 2.7 (before I begin to test)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;THANKS!!!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 21:52:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826816#M17296</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2018-04-03T21:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826817#M17297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi TL,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With 2.7, we have instituted a change in the submission process where supported. This reduces the number of calls to the database to 1. &amp;nbsp;Note that this is not supported with ArcGIS Enterprise hosted services (they currently do not advertise support for the submission procedure we are using) - it sounds as if you service is federated, correct (it should be using the new submission if that's the case).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Apr 2018 22:28:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826817#M17297</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-04-03T22:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826818#M17298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am testing my triggers using 2.7 and while I do not receive the code 500 error when posting my surveys, the data still does not seem to post before the trigger is fired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I make edits or create a new feature within ArcMAP, my trigger contains the variables.&amp;nbsp; When I create a survey in Survey123 2.7, the trigger is fired but the variables are not passed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any Suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: I do receive the error on "update" but not on "insert"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 13:13:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826818#M17298</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2018-04-12T13:13:11Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826819#M17299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is probably a bit complex to debug via GeoNet; it may make sense to try to do a webcast to interactively debug/understand the issue. &amp;nbsp;That being said, there are some areas to examine:&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;What is the database Survey123 is writing to- and enterprise GDB or the hosted feature store? &amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Can you attempt editing&amp;nbsp;via the REST endpoint directly to see if the behaviors are consistent?&lt;UL&gt;&lt;LI&gt;&lt;SPAN&gt;Survey123 uses the applyEdits call at the FeatureService endpoint (i.e., &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgis.server.com%2Farcgis%2FMyService%2FFeatureService%2FapplyEdits" rel="nofollow" target="_blank"&gt;https://gis.server.com/arcgis/MyService/FeatureService/applyEdits&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Most other web editing techniques use applyEdits at the Feature Service Layer endpoint (i.e., &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=https%3A%2F%2Fgis.server.com%2Farcgis%2FMyService%2FFeatureService%2FapplyEdits" rel="nofollow" target="_blank"&gt;https://gis.server.com/arcgis/MyService/FeatureService/applyEdits&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Apr 2018 21:53:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826819#M17299</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2018-04-12T21:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826820#M17300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It seems to be behaving like version 2.6 and prior.&amp;nbsp; I have republished with 2.7 Connect, republished my service mxd and upgraded S123 to 2.7.&amp;nbsp; Is there a way to verify it is using the new method to post.&amp;nbsp; Portal federated with server 10.5.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 14:05:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826820#M17300</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2018-04-13T14:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826821#M17301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should say, posting with attachments disabled still works, just not with attachments.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 14:06:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826821#M17301</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2018-04-13T14:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826822#M17302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am still unable to use an "AFTER UPDATE" sql trigger on the table of a survey123 feature class.&amp;nbsp; I am able to use&amp;nbsp;&lt;SPAN&gt;"AFTER INSERT".&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;"AFTER&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;INSERT&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt; does do one insert and I am able to pull data from the submission (before after insert would only work with Attachments&amp;nbsp;disabled.&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;"AFTER UPDATE" still causes the survey submission to hang.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Sure would be nice to to use&amp;nbsp;"AFTER UPDATE" on a survey123 feature table...&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 21:14:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826822#M17302</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2019-06-10T21:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826823#M17303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What DBMS are you using? Which version of ArcGIS Enterprise?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could I also ask that you try a direct REST submission request on the &lt;EM&gt;feature service's&lt;/EM&gt; ApplyEdits call (&lt;A class="link-titled" href="https://developers.arcgis.com/rest/services-reference/apply-edits-feature-service-.htm" title="https://developers.arcgis.com/rest/services-reference/apply-edits-feature-service-.htm"&gt;Apply Edits (Feature Service)—ArcGIS REST API: Services Directory | ArcGIS for Developers&lt;/A&gt;&amp;nbsp;) and see if you get the same results?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2019 22:51:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826823#M17303</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-06-10T22:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826824#M17304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;James,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #505051; background-color: #cee6fa; font-size: 12px;"&gt;Error: Underlying DBMS error [HY000:[Microsoft][ODBC Driver 13 for SQL Server]Connection is busy with results for another command] [GISDB.DBO.FC_S123_TABLE].&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe this to be the one error in my way.&amp;nbsp; Here are the scenarios that work and fail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems to not be a S123 issue so maybe you can point me to someone else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After Insert&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a. The post is &lt;STRONG&gt;successful&lt;/STRONG&gt; and I am able to&amp;nbsp;use data from &lt;EM&gt;inserted&lt;/EM&gt; and update tables in the geodatabase with &lt;EM&gt;inserted&lt;/EM&gt; data.&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;b. The post is &lt;STRONG&gt;successful&lt;/STRONG&gt;&amp;nbsp;when I use an exec store procedure and do not&amp;nbsp;use any data from &lt;EM&gt;inserted&lt;/EM&gt; in the SP.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;c. The post &lt;STRONG&gt;fails&lt;/STRONG&gt; when I use an exec store procedure&amp;nbsp;&lt;SPAN&gt;and&amp;nbsp;try to capture any data from &lt;EM&gt;inserted&lt;/EM&gt; in the SP.&lt;/SPAN&gt;&lt;UL&gt;&lt;LI&gt;example:&amp;nbsp;exec sp_send_dbmail fails with &lt;EM&gt;inserted&lt;/EM&gt; data in the email body/subject...&lt;UL&gt;&lt;LI&gt;This is the one I want and this is the one that gives me the error above.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;After Update&lt;/SPAN&gt;&lt;/P&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;d. The post is &lt;STRONG&gt;successful&lt;/STRONG&gt; and I am able to&amp;nbsp;use&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;data from&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;inserted&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;and update tables in the geodatabase with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;inserted&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;data.&lt;/LI&gt;&lt;/UL&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;&lt;SPAN&gt;e. The post &lt;STRONG&gt;fails&lt;/STRONG&gt; when I use an exec store procedure and do not&amp;nbsp;use&amp;nbsp;any data from&amp;nbsp;&lt;EM&gt;inserted&lt;/EM&gt;&amp;nbsp;in the&amp;nbsp;SP.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI style="margin: 0.2em 0px;"&gt;f. The post &lt;STRONG&gt;fails&lt;/STRONG&gt; when I use an exec store procedure&amp;nbsp;&lt;SPAN&gt;and&amp;nbsp;try to&amp;nbsp;capture any data from&amp;nbsp;&lt;EM&gt;inserted&lt;/EM&gt;&amp;nbsp;in the&amp;nbsp;SP.&lt;/SPAN&gt;&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;example:&amp;nbsp;exec&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;sp_send_dbmail fails with&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;EM&gt;inserted&lt;/EM&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;data in the email body/subject...&lt;UL style="padding: 0px 0px 0px 30px;"&gt;&lt;LI style="margin: 0.2em 0px;"&gt;This is the one I want and this is the one that gives me the error above.&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I do receive these same results when applying edits at the rest end point as mentioned above.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using SS2016 and 10.7.&amp;nbsp; Data is Archived.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When applying the edits directly in ArcMap I do not have any issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Nov 2019 14:08:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826824#M17304</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2019-11-05T14:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826825#M17305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, this appears to be out of scope for Survey123 - I would suggest opening an Esri technical support ticket focusing on the DB behavior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Nov 2019 18:35:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826825#M17305</guid>
      <dc:creator>JamesTedrick</dc:creator>
      <dc:date>2019-11-12T18:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826826#M17306</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was facing same issue&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 21:12:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826826#M17306</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2019-11-21T21:12:28Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826827#M17307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Its actually not a S123 issue but the way the rest endpoint posts to the database using Apply Edits at the feature service level.&amp;nbsp; From my testing it does two transactions, an insert and then an update.&amp;nbsp; Any executions fail in the trigger because they are called on the insert but the update has not occurred yet.&amp;nbsp; Hence the warning.&amp;nbsp; I have not found a work around, but that is whats happening.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally it is by design so basically not an ESRI problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure how Collector posts but this is not an issue with Collector.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 22:25:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826827#M17307</guid>
      <dc:creator>TL2</dc:creator>
      <dc:date>2019-11-21T22:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826828#M17308</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes .. The problem with Insert when we append update to it AFTER INSERT, UPDATE . Whenever Inserting records , Internally update is also firing . If you write Trigger in Attachment table . it should work . it is not working on Base table&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2019 22:32:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826828#M17308</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2019-11-21T22:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Trigger on table causes CODE 500 Error.</title>
      <link>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826829#M17309</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The problem is when i did not pass attachment is also. it is firing twice on insert trigger&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Nov 2019 17:49:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-survey123-questions/sql-trigger-on-table-causes-code-500-error/m-p/826829#M17309</guid>
      <dc:creator>vijaybadugu</dc:creator>
      <dc:date>2019-11-22T17:49:36Z</dc:date>
    </item>
  </channel>
</rss>

