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
Giri Kumar BGiri Kumar B 

I create Fieldset in opportunity . insert record per pass i using inputfield . when i save the data hit error

I have taken it into the input field and when I created the field set on the opportunity I edited the field set and dropped created date into the field section.
when I am inserted the record save the button showing error :
j_id0:oppForm:oppATPBlock:oppATPBlockSecPart12:j_id29:0:j_id30: An error occurred when processing your submitted information.

Visual Force 
<apex:page standardController="Opportunity" extensions="PSOpportunityController" >
<apex:form id="oppForm">
<apex:pageBlock id="oppATPBlock" mode="inlineEdit"> 
<apex:pageMessages />
<apex:pageBlockButtons location="top">
<apex:commandButton value="Edit" action="{!enableOpportunityEditMode}" rendered="{!NOT(isOpptyEditMode)}"
id="editButton" reRender="oppATPBlock, oppForm" />
<apex:commandButton value="Cancel" action="{!disableOpportunityEditMode}" rendered="{!isOpptyEditMode}"
id="cancelButton" reRender="oppATPBlock, oppForm" />
<apex:commandButton value="Save" action="{!save}" rendered="{!isOpptyEditMode}" />
<!--apex:commandButton value="Save" action="{!saveOpp}" rendered="{!isOpptyEditMode}"
id="saveButton" reRender="oppATPBlock, oppForm" /-->
</apex:pageBlockButtons>
<apex:pageBlockSection id="oppATPBlockSecPart12" columns="2" collapsible="false" rendered="{!isOpptyEditMode}" > 
<apex:repeat value="{!$ObjectType.Opportunity.FieldSets.ATP1_Edit_Fields}" var="fld">
<apex:inputField value="{!oppATP[fld.fieldPath]}"/>
</apex:repeat>
</apex:pageBlockSection>
<apex:pageBlockSection id="blanksection1" columns="2" collapsible="false">
<apex:pageBlockSectionItem />
</apex:pageBlockSection>
</apex:pageBlock>
</apex:form> 
</apex:page>
=============
Controller goes this way
=============
public without sharing class PSOpportunityController {
private String oppId {get; set;}
public Boolean isOpptyEditMode { get; set; }
public Opportunity oppATP { get; set; }
public PSOpportunityController (ApexPages.StandardController stdController ) {
oppId = (String)stdController.getId();
isOpptyEditMode = false;
}
/**
* Method is used to enable edit mode on the opportunity object
*/
public void enableOpportunityEditMode(){
isOpptyEditMode = true;
}
/** 
* Method is used to disables the edit mode on the opportunity object
*/ 
public void disableOpportunityEditMode(){
isOpptyEditMode = false;
}
/** 
* Method is used to save the data
*/
public void saveOpp(){
try{ 
update oppATP;
}catch( DmlException dmlEx ){
ApexPages.addMessages( dmlEx );
}
}
}