title: Breeze executeQuery fails randomly
body: <p>We are using Breeze.js for the client side data management. However I see random errors from the breeze.executeQuery on different call. Not sure what is wrong.</p>
  
  <p>Following is the error I receive (again it works most of the time and fails randomly)</p>
  
  <pre><code>             at createHttpError (https://secure.landmark.com/cassette.axd/asset/Scripts/breeze.debug.js?c518691d8bcfc16a534f5519f0286f166524367f:14729:19)
                  at handleHttpError (https://secure.landmark.com/cassette.axd/asset/Scripts/breeze.debug.js?c518691d8bcfc16a534f5519f0286f166524367f:14721:19)
                  at Object.params.error (https://secure.landmark.com/cassette.axd/asset/Scripts/breeze.debug.js?c518691d8bcfc16a534f5519f0286f166524367f:14653:17)
                  at Object.jqConfig.error (https://secure.landmark.com/cassette.axd/asset/Scripts/breeze.debug.js?c518691d8bcfc16a534f5519f0286f166524367f:14978:20)
                  at fire (https://secure.landmark.com/cassette.axd/asset/Scripts/jquery-1.9.1.js?9a71104d8f0b4f5818518b3ece7c639bb308b13b:1040:30)
                  at Object.self.fireWith [as rejectWith] (https://secure.landmarkdividend.com/cassette.axd/asset/Scripts/jquery-1.9.1.js?9a71104d8f0b4f5818518b3ece7c639bb308b13b:1151:7)
                  at done (https://secure.landmark.com/cassette.axd/asset/Scripts/jquery-1.9.1.js?9a71104d8f0b4f5818518b3ece7c639bb308b13b:8079:14)
                  at XMLHttpRequest.callback (https://secure.landmark.com/cassette.axd/asset/Scripts/jquery-1.9.1.js?9a71104d8f0b4f5818518b3ece7c639bb308b13b:8601:8)
              From previous event:
                  at breeze.AbstractDataServiceAdapter.ctor.executeQuery (https://secure.landmark.com/cassette.axd/asset/Scripts/breeze.debug.js?c518691d8bcfc16a534f5519f0286f166524367f:14623:26)
                  at executeQueryCore (https://secure.landmark.com/cassette.axd/asset/Scripts/breeze.debug.js?c518691d8bcfc16a534f5519f0286f166524367f:13798:48)
                  at proto.executeQuery (https://secure.landmark.com/cassette.axd/asset/Scripts/breeze.debug.js?c518691d8bcfc16a534f5519f0286f166524367f:12556:23)
                  at Object.lfPageViewHistoryLog (https://secure.landmark.com/cassette.axd/asset/SalesSystem/scripts/services/dataContext.js?691d65c697248098256cffc4eba5cbf725272e24:3914:28)
                  at https://secure.landmarkdividend.com/cassette.axd/asset/SalesSystem/scripts/main/ViewModel.js?254753e87b1b17f15fb9396ea0865672aa75ad51:1030:33
              Exception type: System.Exception
  </code></pre>
  
  <p>Following is my code for which above error occurred.</p>
  
  <pre><code>        var query = breeze.EntityQuery.from('lfSID').withParameters({ lfPrefix: '018' });
  
              return manager.executeQuery(query)
              .then(function (data) {
                  var lfPageViewHistoryType = store.getEntityType("lfPageViewHistory");
                  newPageViewHistory = lfPageViewHistoryType.createEntity();
                  newPageViewHistory.PageViewHistorySID(data.results[0]);
                  newPageViewHistory.SubjectSID(sid);
                  newPageViewHistory.ViewedByID(loggedUser().Employee.EmployeeID());
                  newPageViewHistory.ViewedOn(new Date());
                  newPageViewHistory.UnauthorizedAccessAttempt(true);
                  manager.addEntity(newPageViewHistory);
                  manager.saveChanges([newPageViewHistory]).fail(dataContext.queryFailed);
              });
  </code></pre>
  
  <p>I know the this is very less input to get more help from you guys but this what all I have. </p>
  
  <p>See what you can help</p>