<?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>Question Re: Catch Action not capturing Exception error from SQL Query, when SQL query is unble to create DB connection in Product Lifecycle Management Q&amp;A</title>
    <link>https://community.sap.com/t5/product-lifecycle-management-q-a/catch-action-not-capturing-exception-error-from-sql-query-when-sql-query-is/qaa-p/11382871#M66417</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Indira,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a requirement in a project to check if the connection to the database is up and then perform the DB operations. I used a work around to make a call like 'select count(*) from dual' to check the connection and if it returned an error and/or exception I terminated the transaction writing the error to the logs etc. I am on a different MII version, but suppose the same technique might work for you as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saumya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Nov 2015 11:29:04 GMT</pubDate>
    <dc:creator>saumya_govil</dc:creator>
    <dc:date>2015-11-20T11:29:04Z</dc:date>
    <item>
      <title>Catch Action not capturing Exception error from SQL Query, when SQL query is unble to create DB connection</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/catch-action-not-capturing-exception-error-from-sql-query-when-sql-query-is/qaq-p/11382869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the SQL Query action is unable to create a connection to database and throwing error, the catch action block is not capturing the error and keeps the transaction running. I&lt;SPAN style="font-family: 'Calibri',sans-serif; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;t logged an error “Cannot create a connection to the database”, but it did NOT throw an action error. We are on 14.0 SP05.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri',sans-serif; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Please if share you suggestion.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri',sans-serif; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;this has been already disscussed in the below link&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Calibri',sans-serif; font-size: 11pt; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;A __default_attr="15554029" __jive_macro_name="message" class="jive_macro_message jive_macro" data-orig-content="Looks like catch action block behaving in different way" href="https://community.sap.com/"&gt;&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 14:54:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/catch-action-not-capturing-exception-error-from-sql-query-when-sql-query-is/qaq-p/11382869</guid>
      <dc:creator>indiraboga3</dc:creator>
      <dc:date>2015-11-19T14:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: Catch Action not capturing Exception error from SQL Query, when SQL query is unble to create DB connection</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/catch-action-not-capturing-exception-error-from-sql-query-when-sql-query-is/qaa-p/11382870#M66416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see the same behavior in a 14.0 sp4 patch5 system. It may be a bug so if you can't find any related SAP notes you should submit a ticket with SAP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Nov 2015 17:42:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/catch-action-not-capturing-exception-error-from-sql-query-when-sql-query-is/qaa-p/11382870#M66416</guid>
      <dc:creator>former_member185280</dc:creator>
      <dc:date>2015-11-19T17:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: Catch Action not capturing Exception error from SQL Query, when SQL query is unble to create DB connection</title>
      <link>https://community.sap.com/t5/product-lifecycle-management-q-a/catch-action-not-capturing-exception-error-from-sql-query-when-sql-query-is/qaa-p/11382871#M66417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Indira,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a requirement in a project to check if the connection to the database is up and then perform the DB operations. I used a work around to make a call like 'select count(*) from dual' to check the connection and if it returned an error and/or exception I terminated the transaction writing the error to the logs etc. I am on a different MII version, but suppose the same technique might work for you as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saumya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Nov 2015 11:29:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/product-lifecycle-management-q-a/catch-action-not-capturing-exception-error-from-sql-query-when-sql-query-is/qaa-p/11382871#M66417</guid>
      <dc:creator>saumya_govil</dc:creator>
      <dc:date>2015-11-20T11:29:04Z</dc:date>
    </item>
  </channel>
</rss>

