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."
UserClaimsEdit= new FormGroup({
UserId: new FormControl('',[Validators.required ]),
OperationClaimId: new FormControl('',[Validators.required ]),
});
SaveClaims(){
this.service.addClaims(this.UserClaimsEdit.value).subscribe(res=>{
this.UserClaimsEdit.reset();
});
}
Kapil AananthPosted Dec 3, 2021, 11:12 AM
Srinivasan RamamoorthiPosted Dec 2, 2021, 2:28 PM