I am getting mapper parsing exception while indexing dates at ES :
{
"type": "mapper_parsing_exception",
"reason": "failed to parse [completionTime]",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "Invalid format: "2019-05-07T02:46:16Z" is malformed at "Z""
}
Sometimes this issue reproduces and sometimes not.
Actually, I am using OffsetDateTime Format as :-
private OffsetDateTime completionTime;
before indexing, I am converting time to string using toString().
Can someone help me to resolve this issue ?