Data Policy exception : The following fields are mandatory : comments

PriyanshuVerma1
Tera Expert

There is a data policy applied on sysapproval_approver table to make comments mandatory when approval is rejected.

There is an ui action button : reject.

Whenever I fill the comments and hit Reject button I get the data policy exception but still it gets updated and approval is rejected. Attaching the screenshot below

PriyanshuVerma1_0-1689854599795.png

 

I am not able to understand why I am getting the error even though condition of data policy is fulfilled. Also if I change the state to rejected from requested and fill the comment field and use save instead of reject button I won't get the error message. Same way if I did this with UI policy instead of data policy I am not getting any such error. 

5 REPLIES 5

Oliver Goebel
Tera Contributor

I had a similiar situation: On incident added the field "time_worked" and made the "comments" mandatory for the table "task_time_worked". Trying to save the incident record caused the data policy exception. The "time_worked" field inserts a new record in the "task_time_worked" table and the comments are not given.