I am trying to run a query with a filter on a string column, but at runtime a few filter values (e.g. 'PO Box 27') result in failed queries. When trying to filter using my query fails with the error message: "The string 'PO Box 27' is not a valid TimeSpan value."
Code: var crmAccountsQuery = EntityQuery .from('crmAccountEFs') .where(breeze.Predicate.create('address1_Line1', 'eq', 'abc'));
return manager.executeQuery(crmAccountsQuery)
.then(function (data) {
crmAccountsObservable(data.results);
return;
})
.fail(queryFailed);
The breeze.js on the client builds a url like:
http://localhost:49800/breeze/BreezeDb/crmAccountEFs?$filter=(Address1_Line1%20eq%20time'PO%20Box%2027')
The time typing is completely wrong.
Edit: related to: BreezeJS malformed OData query Url when using "startsWith"