the migration fails due to the missing panelIndex in the panelsJSON array
here's the relevant error in the log:
{"type":"log","@timestamp":"2019-09-02T15:52:07Z","tags":["warning","migrations"],"pid":7,"message":"Exception @ migrations730 while trying to migrate dashboard panels!\nError: TypeError: Cannot read property 'toString' of undefined\n at migratePre61PanelToLatest ......
This error is caught, but then the migration process tries to insert the unchanged document, which leads to the following error
Error: mapping set to strict, dynamic introduction of [uiStateJSON] within [dashboard] is not allowed
A successful migration would have removed that property, but now migration is failing due to the strict mapping restriction.
Kibana version: 7.3.1 Elasticsearch version: 7.3.1
Original install method (e.g. download page, yum, from source, etc.): docker
Describe the bug: When migrating a dashboard like the following in it's 6.8 version to 7.3.1
the migration fails due to the missing
panelIndex
in thepanelsJSON
arrayhere's the relevant error in the log:
This error is caught, but then the migration process tries to insert the unchanged document, which leads to the following error
Error: mapping set to strict, dynamic introduction of [uiStateJSON] within [dashboard] is not allowed
A successful migration would have removed that property, but now migration is failing due to the strict mapping restriction.