Hi, I have a similar problem:
If I do this in my server code (I have already defined the dbApiKey variable):
var result = Collection.multiUpdateObject(dbApiKey, "CAcol1", '{"end_date":"2017- 03-27"}', {"display":"expired"});
it works fine.
But if I do this:
var result = Collection.multiUpdateObject(dbApiKey, "CAcol1", '{"end_date":{"$lte":"2017-03-27"}', {"display":"expired"});
then I get these error messages in the response section:
"Error code SCSE014: Script execution failed. Details have been added to Trace tab."
and in the Trace tab:
"30.3.2017, 5:45:30 PM: Script Remove_by_end_date_on_test_db: ApperyioAPI: Incorrect query"
As you can see I am using a static date in the query.
Any advice will be appreciated.
Cheers,
John