<?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: 500 Internal Server while DELETING rows from SAPUI5 in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/500-internal-server-while-deleting-rows-from-sapui5/qaa-p/632155#M157086</link>
    <description>&lt;P&gt;I would suggest you record your test in Gateway Client and from the UI5 App using /IWFND/TRACE and check the difference.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jun 2018 13:46:20 GMT</pubDate>
    <dc:creator>gregorw</dc:creator>
    <dc:date>2018-06-20T13:46:20Z</dc:date>
    <item>
      <title>500 Internal Server while DELETING rows from SAPUI5</title>
      <link>https://community.sap.com/t5/technology-q-a/500-internal-server-while-deleting-rows-from-sapui5/qaq-p/632154</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;I have designed and OData service and SAPUI5 Application to perform CRUD operations.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;During DELETE operation, everything works fine when tested in Gateway Client. But when tested from SAPUI5 it is Gateway throwing 500 error, though row is deleted successfully. Below are my codes. Please guide me here.&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;
  &lt;P&gt;Note : I have a date field in table which is marked 'nullable' in EntityType&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;	var oTable = this.getView().byId("idProductsTable");
		var oModel = oTable.getModel();
		var aBatchtoDelete = [];
		var oSelectedItems = oTable.getSelectedItems();
		var sPath = oSelectedItems[0].getBindingContext().sPath;
		oModel.remove(sPath,null,function(){
			MessageToast.show("Deleted Successfully");
			oModel.refresh();
		},
		function(errData) {
			MessageBox.show(
			"Error occured during deleting records" ,{
			icon: sap.m.MessageBox.Icon.ERROR,
			title: "Dear User",
			styleClass: "sapUiSizeCompact"
					}
			);}
			);
&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/162260-capture.png" /&gt;&lt;/P&gt;
  &lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 13:28:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/500-internal-server-while-deleting-rows-from-sapui5/qaq-p/632154</guid>
      <dc:creator>former_member383720</dc:creator>
      <dc:date>2018-06-20T13:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: 500 Internal Server while DELETING rows from SAPUI5</title>
      <link>https://community.sap.com/t5/technology-q-a/500-internal-server-while-deleting-rows-from-sapui5/qaa-p/632155#M157086</link>
      <description>&lt;P&gt;I would suggest you record your test in Gateway Client and from the UI5 App using /IWFND/TRACE and check the difference.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jun 2018 13:46:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/500-internal-server-while-deleting-rows-from-sapui5/qaa-p/632155#M157086</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2018-06-20T13:46:20Z</dc:date>
    </item>
    <item>
      <title>Re: 500 Internal Server while DELETING rows from SAPUI5</title>
      <link>https://community.sap.com/t5/technology-q-a/500-internal-server-while-deleting-rows-from-sapui5/qaa-p/632156#M157087</link>
      <description>&lt;P&gt;Thanks. It showed me the cause which finally resolved the issue.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 09:00:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/500-internal-server-while-deleting-rows-from-sapui5/qaa-p/632156#M157087</guid>
      <dc:creator>former_member383720</dc:creator>
      <dc:date>2018-06-21T09:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: 500 Internal Server while DELETING rows from SAPUI5</title>
      <link>https://community.sap.com/t5/technology-q-a/500-internal-server-while-deleting-rows-from-sapui5/qaa-p/632157#M157088</link>
      <description>&lt;P&gt;Great, I've converted my comment to an answer which you now can accept.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jun 2018 23:18:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/500-internal-server-while-deleting-rows-from-sapui5/qaa-p/632157#M157088</guid>
      <dc:creator>gregorw</dc:creator>
      <dc:date>2018-06-21T23:18:07Z</dc:date>
    </item>
  </channel>
</rss>

