This is my DB record:
{"_id":{"$oid":"66926c22d78eca74f8f0d4f4"},"atsId":"734549","clientCode":"keoic","email":"ekintunali@gmail.com","error":"No content to map due to end-of-input\n at [Source: (org.jvnet.mimepull.DataHead$ReadMultiStream); line: 1, column: 0]","importId":"796fe5c5-c189-4577-925e-ec1b76f8c034","importType":"icims-candidate-event","profileType":"person","status":"fail","timestamp":{"$date":{"$numberLong":"1720871970033"}}}
I can run this query successfully:
{$and: [{timestamp: {$gt: {$date: "2024-07-13T11:58:43.614+00:00"}}}, {status: "fail"}]}
But this query fails:
{$and: [
{timestamp: {$gt: {$date: "2024-07-13T11:58:43.614+00:00"}}},
{error: {$regex: "Contains invalid characters"}}
]}
The error says:
We're sorry, an unexpected error has occurred. Check your query and try again.
Each individual clause of the $and operator works separately.
Any idea how to fix this issue?