Skip to Content

Kapsel offline: cannot edit created record

Hi everyone,

I always get an error while I try to update a local record that I just created offline. I tried also to remove the etag without reusing it but I get always the same problem.

The error I get is this one "the request on an entity failed because its etag did not match the request's conditions"

The record I'm trying to update has the following metadata:

	"uri": "MOBILE_SERVICES_URL/Interventions(lodata_sys_edt=X'7D091F16D09311E88000EBC5C647BD1200000000')",
	"type": "default.InterventionsType",
	"etag": "W/\"lodata_sys_etag7d096d36-d093-11e8-8000-ebc5c647bd12\""

How can I solve this issue?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Oct 15, 2018 at 12:13 PM

    How do you try to update it exactly? Could you please let us know the full request? (HTTP verb, URL, headers, body)


    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Emanuele,

      There might were some bugs in the SDK, but as the mentioned SAP Answers Q&A thread is from 2015 I'm pretty sure that it's being fixed now.

      You should use the request method of the sap.OData namespace, i.e. (static) request(request, successCallback, errorCallback)
      in the request parameter you have to define the method, the headers, the URL and the payload. Could you please let me know how do you call this function? When you use etags then you have to add the If-None-Match: <value of the etag> header.

      About the question of your SDK I'm confused what you mean exactly.

      Let me know what you think.


Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.