I have a Lightning Aura component that is added on the Opportunity record detail page. When I update an Opportunity record and refresh the page, the below error pops up.
Uncaught Error in $A.getCallback() [Value is not a string, ObjectId, or FieldId.]
throws at https://xxxinstance.lightning.force.com/auraFW/javascript/dOMRLHt4yryfVjId3qhSww/aura_prod.js:43:15 . Caused by: Error in $A.getCallback() [Value is not a string, ObjectId, or FieldId.]
I see the console log and even after enabling Lightning debug mode, I don't see any error in the console and neither in the debug logs.
var action = component.get("c.getChecklist");
action.setParams({
"recordId" : component.get("v.recordId")
});
action.setCallback(this, function(a) {
if (a.getState() === "SUCCESS") {
if(component.isValid()) {
var returnValue = a.getReturnValue();
if(returnValue != null){
else{
}
}
}
});
$A.enqueueAction(action);
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.