Mapper parsing exception for date at elastic search version 6.2.0

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 ?

Hey @rvyas
Can you please share your mapping for this index?
Specifically for the completiontime field

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.