function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
BHASKAR GANGULYBHASKAR GANGULY 

Uncaught Action failed: c:SLR$controller$valChanged [Cannot read property 'config' of undefined]

Hi All,
I am getting the below error while trying to set customize error.
below is my controller code :
 valChanged : function(component, event, helper) {
     var newValue = event.getParam("value");
      var oldValue = event.getParam("oldValue");
      var epp= component.find("Selected_Claims_Service_Level__c");
       var eppval = epp.get('v.value'); 
     // alert(eppval);
    //  alert("value name changed from '" + oldValue + "' to '" + newValue + "'");
       if(newValue =='')
       {
           alert("i am in");
           component.find("Selected_Claims_Service_Level__c").set("v.errors", [{message:"This is not a right selection"}]);
        
       }
    },

below is my component code part.

<lightning:recordEditForm aura:id="formStep1"
                                                  recordId="{!v.recordId}"
                                                  objectApiName="Service_Level_Assessment__c"     
                                                  onload="{!c.handleOnload}"
                                                  onsubmit="{!c.handleOnSubmit}"
                                                  onsuccess="{!c.nextTab}"
                                                  onerror="{!c.handleOnError}"
                                                  class="slds-card__body_inner">
                                                  <lightning:messages/> 
                            

  <div class="slds-grid slds-gutters"> 
                              <div class="slds-col slds-size_1-of-2">
                                <lightning:inputField onchange="{!c.checkHelp}" disabled="{!v.isReadOnly}" aura:id="Selected_Claims_Service_Level__c" fieldName="Selected_Claims_Service_Level__c" value ="{!v.expenseName}" />
                                <a href="/resource/DTHServiceLevelClaimsPdf" target="_blank">Click here for descriptions</a>  
                                </div>


Can somebody help me why i am getting this error?