SalesforceLabs / EnhancedLightningGrid

Component that allows you to sort and filter data within the Lightning Experience. Use as a replacement for a Related List, or create a new grid that shows results from a custom query.
BSD 3-Clause "New" or "Revised" License
136 stars 96 forks source link

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

Open AngelMtz97 opened 2 years ago

AngelMtz97 commented 2 years ago

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

Rachlind commented 1 year ago

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

ErikReiken commented 1 year ago

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 commented 1 year ago

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