I am getting the above error with this component, which is used as an action override on the Account object:
<aura:component implements="lightning:actionOverride,force:hasRecordId,flexipage:availableForRecordHome" access="global" >
<aura:attribute name="account" type="Account" default="{ SObjectType: 'Account' }"/>
<force:inputField value="{!v.account.Business_Name__c}"/>
</aura:component>
The full error message is:
aura://ComponentController: org.auraframework.throwable.AuraExecutionException: ui.force.components.controllers.field.InputFieldProvider: org.auraframework.throwable.AuraRuntimeException: Error Retrieving Field for: v.account.Business_Name__c
What am I doing wrong here?!
Here is the component code
<aura:component controller="MyController" implements="force:lightningQuickAction,force:hasRecordId" > <aura:attribute name="cmp" type="Custom_Object__c" default="{ 'sobjectType': 'Custom_Object__c' }"/> <aura:handler value="{!v.cmp.Campaign__c}" name="change" action="{!c.getChildRecords}"/> <force:inputField aura:id="campaignName" value="{!v.cmp.Campaign__c}" required="true"/></aura:component>
– Mitesh Sura Jul 21 '17 at 15:12