+ Start a Discussion
KoolABKoolAB 

LightningDataTable component Throws errors on page refresh

I have used standard LightningDataTable component inside a custom lightning component. I want to display data in table format for OpportunityLineItem object. I have created lightning quick action and exposed custom lightning component inside the lighting quick action. Lightning quick action is added to Opportunity Page Layout. When I click the button data is loaded in lightning data table and shown successfully. But this behaviour is not consistent. When I refresh the page 4-5 times the lightningdatatable component shows following error.

[Cannot destructure property `rowKeyValue` of 'undefined' or 'null'.]
getIndexesActiveCell()@https://tomtom--aegtest.lightning.force.com/components/lightning/datatable.js:2372:13
setFocusActiveCell()@https://tomtom--aegtest.lightning.force.com/components/lightning/datatable.js:2141:36
LightningDatatable.handleTableFocus()@https://tomtom--aegtest.lightning.force.com/components/lightning/datatable.js:3161:13
Object.setFocus()@https://tomtom--aegtest.lightning.force.com/libraries/ui/panelLib/panelLibCore.js:353:50
HTMLDivElement.eval()@https://tomtom--aegtest.lightning.force.com/libraries/ui/panelLib/panelLibCore.js:180:12

Has anybody experienced similar issue. Please let me know what needs to be done to resolve this issue