Anytime I edit a case i get this error, how to fix
Message: [LWC component's @wire target property or method threw an error during value provisioning. Original error:
[Object EmailMessage is not supported in UI API]]
Component Descriptor: markup://lightning:lookup
File Name:https://contentstack--staginguat.lightning.force.com/components/lightning/lookup.js
Function: C.wiredRecordUi
Stack Trace:
C.wiredRecordUi()@https://contentstack--staginguat.lightning.force.com/components/lightning/lookup.js:1:9006 l.emit()@https://contentstack--staginguat.lightning.force.com/components/force/ldsBindings.js:1:2430 r()@https://contentstack--staginguat.lightning.force.com/components/force/ldsBindings.js:1:1980
Hi,
I had the same problem.
Only one profile, with a specific layout assigned to it, was facing this error message while editing a case.
I tried everything, checked all profile settings and apex assigned, everything was correct.
I tried to isolate the error assigning the page layout to another profile for which this error never came up and consequently got the error.
Then I realized that was something in the page layout but couldn't understand what exactly .
I have just cloned the standard case page layout and assigned it to the profile. Now it's ok Maybe this can help you...