Hi,
I am using reactive form in angular. In this form, I am sending a request to the API. But I am getting select value and it gives an error. How can I resolve this error.
Error : "The JSON value could not be converted to System.Int32. Path: $.OperationClaimId | LineNumber: 0 | BytePositionInLine: 34."
JavaScript
Claim Seç
Users
AdminJavaScript
UserClaimsEdit= new FormGroup({
UserId: new FormControl('',[Validators.required ]),
OperationClaimId: new FormControl('',[Validators.required ]),
});JavaScript
SaveClaims(){
this.service.addClaims(this.UserClaimsEdit.value).subscribe(res=>{
this.UserClaimsEdit.reset();
});
}
Kapil Aananth99 reputationPosted Dec 3, 2021, 6:12 AM EST
Srinivasan RamamoorthiRank #877 · 2.5K reputationPosted Dec 2, 2021, 9:28 AM EST