Error when entering record in lightning - StackTraceId: 825741904 - Action failed: console:relatedRecord$controller$mainRecordChange
Last updated 2021-03-19 ·Reference W-8827296 ·Reported By 8 users
When a Customer has Related record on the Task Record Home, which has a lookup field as Asset->Receiving Service Contact. There is a lookup filter on the "Receiving Service Contact" field on the Asset. This causes error on loading the Record Home.
The issue is that mainRecord is null, so mainRecord[primaryLookupField] is throwing error. primaryLookupField is AssetId in this case.
error message appears when opening record
no error message should appear when opening record
Create a related record component in task home, with a lookup field as Asset->Receiving Service Contact. The lookup field is set up as follows:
First Lookup: Asset
Second Lookup: Receiving Service Contact
1. Go to a task record
2. See that the record is opened with the following error message:
Action failed: console:relatedRecord$controller$mainRecordChange [Cannot read property 'Asset__c' of null]
remove the filter
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.