I'm trying to query a collection and filter by date.
<Query dbname="mudb" tablename="order" importtype="UPDATEADD" matchingcols="_id" selectcols="" skiptop="">
<CollectionName>order</CollectionName>
<FieldNames></FieldNames>
<FieldAliasMapping></FieldAliasMapping>
<Find>
{
"creDt": {$gte: ISODate("2016-08-21")}
},
{"pjQ": 0, "pjP": 0, "billS": 0, "billC": 0, "advPay": 0}
</Find>
</Query>
java.lang.RuntimeException: Syntax Error in query:{
"creDt": {$gte: ISODate("2016-08-21")}
},
{"pjQ": 0, "pjP": 0, "billS": 0, "billC": 0, "advPay": 0}
at com.adventnet.zoho.client.report.advancedtool.MongoDB.parseQuery(MongoDB.java:229)
at com.adventnet.zoho.client.report.advancedtool.MongoDB.executeQuery(MongoDB.java:244)
at com.adventnet.zoho.client.report.advancedtool.AdvancedUploader.startUpload(AdvancedUploader.java:384)
at com.adventnet.zoho.client.report.advancedtool.ZohoReportUploadDataFromDB.main(ZohoReportUploadDataFromDB.java:49)
Caused by: com.mongodb.util.JSONParseException:
{
"creDt": {$gte: ISODate("2016-08-21")}
},
{"pjQ": 0, "pjP": 0, "billS": 0, "billC": 0, "advPay": 0}
^
at com.mongodb.util.JSONParser.parse(JSON.java:208)
at com.mongodb.util.JSONParser.parseObject(JSON.java:241)
at com.mongodb.util.JSONParser.parse(JSON.java:205)
at com.mongodb.util.JSONParser.parseObject(JSON.java:241)
at com.mongodb.util.JSONParser.parse(JSON.java:205)
at com.mongodb.util.JSONParser.parse(JSON.java:155)
at com.mongodb.util.JSON.parse(JSON.java:93)
at com.mongodb.util.JSON.parse(JSON.java:74)
at com.adventnet.zoho.client.report.advancedtool.MongoDB.parseQuery(MongoDB.java:227)
... 3 more