EnhancedLightningGrid icon indicating copy to clipboard operation
EnhancedLightningGrid copied to clipboard

Uncaught Error during LWC component connect phase: [Cannot convert undefined or null to object]

Open AngelMtz97 opened this issue 3 years ago • 3 comments

Summary

Calling an API and loading the data on the table cause an error, the response of the API is correct and was validated. The error was reported after winter 23 release update.

After testing our code, we found that using this method causes the error, trying to convert to Double.

private List<grishield.SDGField> GetFields() { List<grishield.SDGField> fields = new List<grishield.SDGField>(); fields.add( new grishield.SDGField('1', 'AMOUNT USED', 'FieldName__c', 'DOUBLE', '', false, false, null, 5)); }

Actual result Error Componente

AngelMtz97 avatar Sep 15 '22 22:09 AngelMtz97

We use this application on Salesforce Orders. And after Winter 23 release we too are seeing this error. We narrowed it down to the Quantity field (standard salesforce field). If we remove that from the grid the grid renders results. If we do not remove it then the grid shows empty except for its link to the source record. We urgently need a work around or fix to be able to add the quantity back. Our month end is next week and this is slowing down if not holding up the processing of orders and sending them for invoicing. Thank you. Rachel

Rachlind avatar Oct 20 '22 15:10 Rachlind

I report the same issue on my org. More details on my situation (same error) in this Issue: https://github.com/SalesforceLabs/EnhancedLightningGrid/issues/79

ErikReiken avatar Oct 25 '22 14:10 ErikReiken

PS: I have created a work around for now: I have created a formula field that displays OLI.Quantity in text. That is displyed in the ELG. And the error has gone. PPS: If the formula displays Quantity in number, the error still persists

ErikReiken avatar Oct 25 '22 15:10 ErikReiken