Getting azure mobile app – 412 precondition failed after first successful time

mobileapp

If like me, you’re getting 412 precondition failed on azure mobile app service on any updates (patch) your posting to the service, even though the update worked the first time….then most likely its because your updating the same item without fetching the new data.

i.e. say you have item User and you update the users first name, then without reloading the user object you try to update the last name….it wont work because the Version column will be out of date.

You need to reload the item from your local store before adding new changes to it.

  • Tony Casey

    I have spent days trying to sort this, well done and thank you.