<?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: SAPUI5 - Server error 405 (Method Not Allowed) while creating new entry in OData V2 model in Technology Q&amp;A</title>
    <link>https://community.sap.com/t5/technology-q-a/sapui5-server-error-405-method-not-allowed-while-creating-new-entry-in/qaa-p/12409438#M4645109</link>
    <description>&lt;P&gt;Do you find an error in /n/iwfnd/error_log ?&lt;/P&gt;</description>
    <pubDate>Wed, 07 Apr 2021 18:29:55 GMT</pubDate>
    <dc:creator>WouterLemaire</dc:creator>
    <dc:date>2021-04-07T18:29:55Z</dc:date>
    <item>
      <title>SAPUI5 - Server error 405 (Method Not Allowed) while creating new entry in OData V2 model</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-server-error-405-method-not-allowed-while-creating-new-entry-in/qaq-p/12409437</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;
  &lt;P&gt;I am currently trying to create a new entry in my OData V2 model using the below code:&lt;/P&gt; 
  &lt;PRE&gt;&lt;CODE&gt;//Create entry:
oSubmitModel.createEntry(sPathToMyEntitySet, {properties: oMyNewObject});
//Submit changes to the Model:
oSubmitModel.submitChanges({
 success: function () {
     MessageToast.show("Material created.");
     //Resfreh Model:
     oSubmitModel.refresh(true);
 },
 error: function (oError) {
     MessageToast.show("An error occured during changes submitting. Material has not been created.");
     console.log("Error:", oError);
     //Reset to previous state (before changes) and resfreh Model:
     oSubmitModel.resetChanges();
     oSubmitModel.refresh(true);
 }
});&amp;lt;br&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;
  &lt;P&gt;The code above results in the following error:&lt;/P&gt;
  &lt;P&gt;&lt;IMG alt="" /&gt;&lt;/P&gt;
  &lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1907966-error-405.png" /&gt;&lt;/P&gt;
  &lt;P&gt;I think this is caused by the fact that I did not use GroupIDs for the $batch operation but I can't find a way to do it.&lt;/P&gt;
  &lt;P&gt;How could I post some new entries on a remote OData V2 Service?&lt;/P&gt;
  &lt;P&gt;Thank you,&lt;/P&gt;
  &lt;P&gt;F.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 14:17:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-server-error-405-method-not-allowed-while-creating-new-entry-in/qaq-p/12409437</guid>
      <dc:creator>former_member711808</dc:creator>
      <dc:date>2021-04-07T14:17:42Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 - Server error 405 (Method Not Allowed) while creating new entry in OData V2 model</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-server-error-405-method-not-allowed-while-creating-new-entry-in/qaa-p/12409438#M4645109</link>
      <description>&lt;P&gt;Do you find an error in /n/iwfnd/error_log ?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Apr 2021 18:29:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-server-error-405-method-not-allowed-while-creating-new-entry-in/qaa-p/12409438#M4645109</guid>
      <dc:creator>WouterLemaire</dc:creator>
      <dc:date>2021-04-07T18:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 - Server error 405 (Method Not Allowed) while creating new entry in OData V2 model</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-server-error-405-method-not-allowed-while-creating-new-entry-in/qaa-p/12409439#M4645110</link>
      <description>&lt;P&gt;Yes, I post the relative error below:&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/attachments/1911460-error-405.png" /&gt;&lt;/P&gt;&lt;P&gt;I am trying to post a new entry giving the following URL: &amp;lt;URL to my service&amp;gt;/&amp;lt;Name of my OData service&amp;gt;/&amp;lt;Dataset where to put my new entry('key of the new entry').&lt;/P&gt;</description>
      <pubDate>Thu, 08 Apr 2021 07:20:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-server-error-405-method-not-allowed-while-creating-new-entry-in/qaa-p/12409439#M4645110</guid>
      <dc:creator>former_member711808</dc:creator>
      <dc:date>2021-04-08T07:20:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAPUI5 - Server error 405 (Method Not Allowed) while creating new entry in OData V2 model</title>
      <link>https://community.sap.com/t5/technology-q-a/sapui5-server-error-405-method-not-allowed-while-creating-new-entry-in/qaa-p/12409440#M4645111</link>
      <description>&lt;P&gt;Is the resource you are trying to perform a create on configured to allow HTTP Posts? This has to be set in the oData service. The error message could be because of the resource you are trying to create is read-only (GET). You could f.e. check SEGW for the CRUD flags.&lt;/P&gt;</description>
      <pubDate>Fri, 09 Apr 2021 11:38:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/technology-q-a/sapui5-server-error-405-method-not-allowed-while-creating-new-entry-in/qaa-p/12409440#M4645111</guid>
      <dc:creator>david_bizer</dc:creator>
      <dc:date>2021-04-09T11:38:49Z</dc:date>
    </item>
  </channel>
</rss>

