getting the below error when using instead of trigger in SQl server to validate the data entered in details view

Could not refresh Detail View after inserting record. No records were found when executing the 'Refresh row' query.

regards,
samee
[email protected]
ph:- +919008424056