locked
Can I change ConcurrencyMode within a service RRS feed

  • Question

  • I have built an oData service using Lightswitch and am trying to use a client consumer to update/delete data.  The client does not support if-match headers, but the service is automatically configured that way.  So i get the error shown below.

    Is this a setting in Lightswitch - can I change the service so that update/delete doesn't require an if-match header?


    07-26 14:56:00.169: E/AndroidRuntime(12103): Caused by: java.lang.RuntimeException: Expected status OK or No Content, found Bad Request. Server response:
    07-26 14:56:00.169: E/AndroidRuntime(12103): <?xml version="1.0" encoding="utf-8" standalone="yes"?><error xmlns="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata"><code>1</code><message xml:lang="en-AU">&lt;?xml version="1.0" encoding="utf-16"?&gt;&lt;ExceptionInfo&gt;&lt;Message&gt;Only 'If-Match' headers are supported for Update/Delete operations.&lt;/Message&gt;&lt;StackTrace&gt;   at Microsoft.LightSwitch.ServerGenerated.Implementation.DataServiceUpdateProvider.SetConcurrencyValues(Object resourceCookie, Nullable`1 checkForEquality, IEnumerable`1 concurrencyValues)&#xD;
    07-26 14:56:00.169: E/AndroidRuntime(12103):    at System.Data.Services.UpdatableWrapper.SetETagValues(Object resourceCookie, ResourceSetWrapper container)&#xD;

    thanks Anton


    Anton


    • Edited by SydneyWaterBoy Thursday, July 26, 2012 10:55 AM incorrect question
    Thursday, July 26, 2012 10:36 AM