<?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>topic Re: ODATA update in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-update/m-p/11915066#M1963468</link>
    <description>&lt;P&gt;Hi Krushna,&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;I can update the entity using Postman/PATCH without a problem.&lt;/P&gt;</description>
    <pubDate>Tue, 02 Apr 2019 13:56:38 GMT</pubDate>
    <dc:creator>WFlats</dc:creator>
    <dc:date>2019-04-02T13:56:38Z</dc:date>
    <item>
      <title>ODATA update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-update/m-p/11915064#M1963466</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
  &lt;P&gt;I'm using web IDE Full Stack, SAP UI5 and a HANA db service.&lt;/P&gt;
  &lt;P&gt;Creating entities with the app works fine. But I receive errors during the update operation.&lt;/P&gt;
  &lt;P&gt;onTaskStatePress: function () { &lt;/P&gt;
  &lt;P&gt; var oModel = this.getView().getModel(), &lt;BR /&gt; oViewModel = this.getModel("taskView"), &lt;BR /&gt; sPath = oViewModel.getProperty("/sTaskPath"), // sPath is "/Tasks(2)"&lt;BR /&gt; oTask = oModel.getObject(sPath); &lt;BR /&gt; // change some data, e.g.&lt;BR /&gt; oTask.started = true;&lt;BR /&gt; oModel.update(sPath, oTask);&lt;/P&gt;
  &lt;P&gt;This throws an error like: HTTP Status 503 - No application is available to handle this request&lt;/P&gt;
  &lt;P&gt;If I try this instead of oModel.update:&lt;/P&gt;
  &lt;P&gt; oModel.setProperty(sPath, oTask); &lt;BR /&gt; oModel.submitChanges();&lt;/P&gt;
  &lt;P&gt;Then I receive this error at oModel.setProperty: Assertion failed: Tasks(2) is not a valid property path&lt;/P&gt;
  &lt;P&gt;The oModel.submitChanges throws the error: "Illegal argument for method call with message 'Tasks(2)'." (500 Internal Server Error) &lt;/P&gt;
  &lt;P&gt;In the logs I find an error like: org.apache.olingo.odata2.api.ep.EntityProviderException: Illegal argument for method call with message '__ref'.","\t... 56 more"] }&lt;/P&gt;
  &lt;P&gt;sPath and oTask look correct. Any idea what's wrong with my code?&lt;/P&gt;
  &lt;P&gt;Wolfgang&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 07:49:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/odata-update/m-p/11915064#M1963466</guid>
      <dc:creator>WFlats</dc:creator>
      <dc:date>2019-04-02T07:49:33Z</dc:date>
    </item>
    <item>
      <title>Re: ODATA update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-update/m-p/11915065#M1963467</link>
      <description>&lt;P&gt;Check the server side update operation? Is it running fine or not?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 11:03:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/odata-update/m-p/11915065#M1963467</guid>
      <dc:creator>former_member596346</dc:creator>
      <dc:date>2019-04-02T11:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: ODATA update</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/odata-update/m-p/11915066#M1963468</link>
      <description>&lt;P&gt;Hi Krushna,&lt;/P&gt;&lt;P&gt;thanks.&lt;/P&gt;&lt;P&gt;I can update the entity using Postman/PATCH without a problem.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Apr 2019 13:56:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/odata-update/m-p/11915066#M1963468</guid>
      <dc:creator>WFlats</dc:creator>
      <dc:date>2019-04-02T13:56:38Z</dc:date>
    </item>
  </channel>
</rss>

