title: Ajax post returning bad request for only one record
body: <p>On load of one of my forms in CRM 2011 i am using an ajax post to clear some fields. On most records it is fine but on one it is failing each time and I cannot figure out what is different with this one that would be causing it to fail. Can someone look over the call i am making to see if there are any errors with it?</p>
  
  <p>Thanks</p>
  
  <pre><code>var serverUrl = Xrm.Page.context.getClientUrl().toString();
      var ODATA_ENDPOINT = "/XRMServices/2011/OrganizationData.svc";
      var crmEntity = new Object();
      var ODATA_EntityCollection = "/SalesOrderSet";
  
      crmEntity.ts_payment_data = null;
      crmEntity.ts_payment_split = null;
  
      var jsonEntity = window.JSON.stringify(crmEntity);
  
      $.ajax({
          type: "POST",
          contentType: "application/json; charset=utf-8",
          datatype: "json",
          async: true,
          url: serverUrl + ODATA_ENDPOINT + ODATA_EntityCollection + "(guid'" + orderid + "')",
          data: jsonEntity,
          beforeSend: function (XMLHttpRequest) {
              XMLHttpRequest.setRequestHeader("Accept", "application/json");
  
              XMLHttpRequest.setRequestHeader("X-HTTP-Method", "MERGE");
          },
          error: function (xmlHttpRequest, textStatus, errorThrown) {
              alert("ClearPaymentData\nStatus: " + textStatus + "; ErrorThrown: " + errorThrown + "; Response: " + xmlHttpRequest.responseText);
          }
      });
  </code></pre>