<?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: Suppress Technical Error on Save in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/suppress-technical-error-on-save/qaa-p/12600020#M4725543</link>
    <description>&lt;P&gt;Hi Adnan, &lt;/P&gt;&lt;P&gt;If you are looking to handle the errors on the model level, check:&lt;/P&gt;&lt;P&gt;&lt;A href="https://ui5.sap.com/#/api/sap.ui.model.odata.v2.ODataModel%23events/requestFailed" target="test_blank"&gt;https://ui5.sap.com/#/api/sap.ui.model.odata.v2.ODataModel%23events/requestFailed&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;A href="https://ui5.sap.com/#/api/sap.ui.model.odata.v2.ODataModel%23events/batchRequestFailed" target="test_blank"&gt;https://ui5.sap.com/#/api/sap.ui.model.odata.v2.ODataModel%23events/batchRequestFailed&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Greg&lt;/P&gt;</description>
    <pubDate>Thu, 24 Nov 2022 15:40:13 GMT</pubDate>
    <dc:creator>GregMalewski</dc:creator>
    <dc:date>2022-11-24T15:40:13Z</dc:date>
    <item>
      <title>Suppress Technical Error on Save</title>
      <link>https://community.sap.com/t5/technology-q-a/suppress-technical-error-on-save/qaq-p/12600018</link>
      <description>&lt;P&gt;Dear All&lt;/P&gt;
  &lt;P&gt;I am submitting a UI5 based form data back to oData/ERP on Save Event. Requirement is, for example to stop creation of record, if employee has not completed 5 years of service, which is handled by raising oData exception message but App is also showing standard Fiori Technical Error instead of showing only user friendly error message.&lt;/P&gt;
  &lt;P&gt;Within OData create_entity method, exception is raised using /iwbep/cx_mgw_busi_exception whereas within controller UI below code is written. However, system is showing standard Technical Error, in addition to customized error raised using oData exception,&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/2106541-error.jpg" /&gt;&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;oModel.submitChanges({
				success: function(oData, oResponse) {
					if (oData.__batchResponses[0].response.statusCode &amp;gt;= 400) {
						var oResp = JSON.parse(oData.__batchResponses[0].response.body);
						MessageBox.error(oResp.error.message.value);
					    this.getModel("appView").setProperty("/busy", false);
					}
				},
				error: function(oError) {
					this.getModel("appView").setProperty("/busy", false);
				}
			});&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Sat, 22 Oct 2022 13:10:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/suppress-technical-error-on-save/qaq-p/12600018</guid>
      <dc:creator>adnanmaqbool</dc:creator>
      <dc:date>2022-10-22T13:10:17Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress Technical Error on Save</title>
      <link>https://community.sap.com/t5/technology-q-a/suppress-technical-error-on-save/qaa-p/12600019#M4725542</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Any possible solution.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 06:07:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/suppress-technical-error-on-save/qaa-p/12600019#M4725542</guid>
      <dc:creator>adnanmaqbool</dc:creator>
      <dc:date>2022-11-21T06:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: Suppress Technical Error on Save</title>
      <link>https://community.sap.com/t5/technology-q-a/suppress-technical-error-on-save/qaa-p/12600020#M4725543</link>
      <description>&lt;P&gt;Hi Adnan, &lt;/P&gt;&lt;P&gt;If you are looking to handle the errors on the model level, check:&lt;/P&gt;&lt;P&gt;&lt;A href="https://ui5.sap.com/#/api/sap.ui.model.odata.v2.ODataModel%23events/requestFailed" target="test_blank"&gt;https://ui5.sap.com/#/api/sap.ui.model.odata.v2.ODataModel%23events/requestFailed&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;A href="https://ui5.sap.com/#/api/sap.ui.model.odata.v2.ODataModel%23events/batchRequestFailed" target="test_blank"&gt;https://ui5.sap.com/#/api/sap.ui.model.odata.v2.ODataModel%23events/batchRequestFailed&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;BR /&gt;Greg&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 15:40:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/suppress-technical-error-on-save/qaa-p/12600020#M4725543</guid>
      <dc:creator>GregMalewski</dc:creator>
      <dc:date>2022-11-24T15:40:13Z</dc:date>
    </item>
  </channel>
</rss>

