When using lightning:recordEditForm
I am getting the following error in the
<lightning:messages />
:
Field does not exist.
Here is the markup I am using:
<lightning:recordEditForm aura:id="trainingRecordEditForm"
recordId="{!v.currentlySelectedId}"
objectApiName="{!v.objectApiName}"
onsuccess="{!c.handleSuccess}" onerror="{!c.handleError}">
<lightning:messages />
<aura:iteration items="{!v.fields}" var="field">
<lightning:inputField fieldName="{!field}" />
</aura:iteration>
<lightning:inputField class="hiddenField"
fieldName="{!v.fieldWithParentId}"
value="{!v.currentlySelectedId}"/>
</lightning:recordEditForm>
Nothing special, really.
Here is the params of the error event:
"{"error":{"message":"Field does not exist.","stackTrace":"","data":{"message":"Field does not exist.","statusCode":400,"errorCode":"POST_BODY_PARSE_ERROR"},"id":"1408552758"}}"
What I am doing more precisely:
I open the component successfully.
Change nothing in the fields.
Click button which submits the
<lightning:recordEditForm>
.