JSON Serialization Filter for Lightning Components Drops Standard Apex Fields from Managed Packages
Salesforce says this works as designed.
Summary
When a managed package with a Lightning component (Aura or LWC) and an Apex class is installed in a subscriber org, the standard object fields from the Apex class may be dropped by the new JSON serialization filter when the Lightning component returns the object to the client.
The issue is caused by a bug (W-9427852). When a Lightning component executes an Apex action in a managed package, the component namespace isn’t set and defaults to null. This namespace mismatch causes the standard object fields to be dropped due to access restrictions.
The issue is caused by a bug (W-9427852). When a Lightning component executes an Apex action in a managed package, the component namespace isn’t set and defaults to null. This namespace mismatch causes the standard object fields to be dropped due to access restrictions.
Workaround
We haven't loaded the full details for this issue yet. Check the official page.
History
First tracked here as Working as Expected with 4 reports
Nov 30, 2026
Also open in Lightning Services
Record Page Fails to Load with "is not a function" JavaScript Error: 52601705
Solution DeployingWorkaroundPlatform / Lightning ServicesSummer '26Reported Jun 18, 20261,012 reports1,012reports
When saving the lightning component code with custom lablel in the packaging org the namespace is removed.
Solution ScheduledPlatform / Lightning ServicesSummer '19Reported Sep 11, 201966 reports66reports
Spring' 20 - Indefinite number of xhr requests to "RecordUi.getRecordCreateDefaults"
Solution ScheduledPlatform / Lightning ServicesSpring '20Reported Jan 24, 202061 reports61reports
Unable to create a new Home Page with the Lightning App Builder
Solution ScheduledPlatform / Lightning ServicesWinter '22Reported Feb 17, 202237 reports37reports