Hi @MoulaliShaik79
Please use below DAC fields and verify once, with these modifications it is working as expected:
#region SectionID
[PXDBIdentity()] //Removed IsKey property from here
public virtual int? SectionID { get; set; }
public abstract class sectionID : PX.Data.BQL.BqlInt.Field<sectionID> { }
#endregion
#region SectionCode
[PXDBString(30, IsUnicode = true, InputMask = "", IsKey = true)] //Added IsKey property here
[PXUIField(DisplayName = "Section ID")]
[PXDefault]
[PXSelector(typeof(Search<SSPAgreeSection.sectionCode>),
typeof(SSPAgreeSection.sectionCode),
typeof(SSPAgreeSection.descr),
typeof(SSPAgreeSection.sectionType),
typeof(SSPAgreeSection.printDescr))]
public virtual string SectionCode { get; set; }
public abstract class sectionCode : PX.Data.BQL.BqlString.Field<sectionCode> { }
#endregion
In DB table you can mark SectionCode with Primary Key and SectionID also with Primary Key along with Identity Specification, this will work fine.