[status_exception] error while executing search in Kibana

Hi,

I'm getting this error in discover and dashboards.

[status_exception] error while executing search

Though it seems to be working for different time periods...

It gives this error when i select for a particular time period....

Say Dec 1 , 2021 to Dec 31, 2021.

I'm not able to see data for this period.

Don't see any issue in mapping...

Cannot pinpoint exact reason.....

The full error shows:

search_phase_execution_exception all shards failed Error at Fetch._callee3$ (https://domain_name/kibana/33813/bundles/core/core.entry.js:34:109213) at l (https://domain_name/kibana/33813/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:155323) at Generator._invoke (https://domain_name/kibana/33813/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:155076) at Generator.forEach.e.<computed> [as next] (https://domain_name/kibana/33813/bundles/kbn-ui-shared-deps/kbn-ui-shared-deps.js:368:155680) at fetch_asyncGeneratorStep (https://domain_name/bundles/core/core.entry.js:34:102354) at _next (https://domain_name/kibana/33813/bundles/core/core.entry.js:34:102670)

Funny, The error went away when I reinserted data with proper field mappings.

It was throwing error because of some key missing fields.