My AppID : 820FBB35-552C-F405-FFB9-B4D60982E100
Table Name : CharitiesFinal
sometime it works: distance( ‘36.00’, ‘-84.32’, latitude, longitude) < mi(100)
but did not work with other conditions like : distance( ‘36.00’, ‘-84.32’, latitude, longitude) < mi(100) AND Featured = true
I do not see the “f2” column in CharitiesFinal table. Have you removed it?
To summarize. You created generated column “f2” with expression “distance( ‘36.00’, ‘-84.32’, latitude, longitude) < mi(100)” and it worked fine but when you extended it you received error. Am I correct?
curl -X GET 'https://api.backendless.com/820FBB35-552C-F405-FFB9-B4D60982E100/<API_KEY>/data/CharitiesFinal?pageSize=100&where=distance(%20%2736.00%27%2C%20%27-84.32%27%2C%20latitude%2C%20longitude)%20%3C%20mi(100)%20%20AND%20Featured%20%3D%20true'
I think that I found reason of your problem. In whereClause you pass nullable columns as params to distance function. This cause an exception on the database level. This exception is not correctly parsed by Backendless and you receive strange error about invalid generated column expression.
I have created an internal ticket BKNDLSS-27809 to return correct error message for this case.
But earlier it was working fine then suddenly this error occur?
Some rows have empty ‘latitude’ and ‘longitude’ values
Do I need to add lat long in those rows ??