<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.appian.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Handling Exceptions</title><link>https://community.appian.com/discussions/f/general/10123/handling-exceptions</link><description>Im playing with the Write to Data Store Entity Smart Server and have had no problems in getting it to work. 
 However I&amp;#39;d like to ask how exceptions are handled ? Lets say for instance that when I attempt to write to the DB, that the DB is offline. 
</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Handling Exceptions</title><link>https://community.appian.com/thread/83375?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 15:44:05 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:186aec6f-0b69-4d8d-b7e4-1cf5a3416100</guid><dc:creator>rodgraham</dc:creator><description>&lt;p&gt;you&amp;#39;re correct it won&amp;#39;t. You&amp;#39;d either need to put the failing node in a sub process and put an exception against the call to the sub process. Or depending on your process a timer node that fires if the process hasn&amp;#39;t complete in a given time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Exceptions</title><link>https://community.appian.com/thread/83373?ContentTypeID=1</link><pubDate>Mon, 05 Jul 2021 14:55:38 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:7bb52349-db44-471a-8c58-5e7dc065b4d2</guid><dc:creator>dinasaleh</dc:creator><description>&lt;p&gt;the failed node will pause the process so how&amp;nbsp;&lt;span&gt;could you add an exception to the failing node?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Exceptions</title><link>https://community.appian.com/thread/64968?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2019 13:33:29 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:ab417772-5944-4192-81be-8cf5596530ef</guid><dc:creator>davel001150</dc:creator><description>One other thing you might want to consider is the saved values output.  This works slightly better than the true / false by giving you the data from the database so that you can also compare against an expected value in the asynch process waiting to see if database write happened.&lt;br /&gt;
&lt;br /&gt;
This would allow you to log database writes that technically happened, but not as they should, where the node completes but the data is somehow wrong.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Exceptions</title><link>https://community.appian.com/thread/64945?ContentTypeID=1</link><pubDate>Thu, 28 Feb 2019 14:25:45 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:99a00d42-bbca-471b-9369-72bb4fe433d2</guid><dc:creator>Josh</dc:creator><description>Have a pv that is initially set to false, on the output of the node set the pv to true. In a parallel flow, you can check the pv value to determine if the node completed or not.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Exceptions</title><link>https://community.appian.com/thread/64944?ContentTypeID=1</link><pubDate>Thu, 28 Feb 2019 14:01:34 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:eff40b03-a0fa-4c3f-bf43-35ff9a03e39e</guid><dc:creator>josuv0001</dc:creator><description>Hi Josh. What is the best way to check if the node completed successfully?&lt;br /&gt;
&lt;br /&gt;
Thanks&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Exceptions</title><link>https://community.appian.com/thread/44785?ContentTypeID=1</link><pubDate>Mon, 10 Apr 2017 12:42:40 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:e2e6cc81-942a-4111-8fd8-be53a84eb2dc</guid><dc:creator>Jim Schweitzer</dc:creator><description>@rodgraham unfortunately the smart service exception path doesn&amp;amp;#x27;t fire in the case where the node breaks. You have to encapsulate it in a subprocess and let the subprocess node throw the exception as &lt;a href="/members/joshl"&gt;Josh&lt;/a&gt; describes&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Exceptions</title><link>https://community.appian.com/thread/44774?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 12:37:21 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:5ea60066-8319-43a8-90ea-13b5269182d5</guid><dc:creator>Josh</dc:creator><description>Unfortunately, there isn&amp;amp;#x27;t a great solution to this problem. What you can do is schedule a timer to start with your write to Data Store Entity node and after one minute check to see if the node completed successfully. If the node completed then you do nothing, but if it did not succeed, you would restart the timer and the write to data store node.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Handling Exceptions</title><link>https://community.appian.com/thread/44772?ContentTypeID=1</link><pubDate>Fri, 07 Apr 2017 12:07:56 GMT</pubDate><guid isPermaLink="false">d3a83456-d57b-489c-a84c-4e8267bb592a:f79b910b-ef95-47c4-bf5b-d98d85e92aac</guid><dc:creator>rodgraham</dc:creator><description>The failing node will get a red line through it and the process should be visible in processes with problems report. The documentation does state that the final retry is logged as an error. Alert would be generated for the failed node. You could add an exception to the failing node to redirect the process down an alternative path if wanted.&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>