An Error alert was showing regarding Data Policy Exception on top of the Form 2 times how can we able to find from where the error was coming from

Ram141
Tera Expert

Hi Team,

Can anyone please help me on this.

one of my fellow developer created the Data Policy regarding Assignment Group Mandatory but he wasn't available currently, how can we able to find from where the data policy exception alert was showing.

Thanks,

Raj

1 ACCEPTED SOLUTION

Hi Raj,



Per my understanding Case_wo extends Case table. If so, the Data policy is on the the parent table (Case) and being applied on Case_wo table as well.


As you said, if state of any one of the above table changes (first execution), it'll change the same state of other table (second execution), that's why it is executing twice.



Hope it helps.



Regards,


NItesh Asthana


View solution in original post

16 REPLIES 16

Hi Raj,



If the error message is being displayed twice, it could be because any one of below reasons,


- Specified condition is being met twice


- There may be a loop between different scripts, which is causing it to execute twice.


- Same Data policy on parent (with Inherit checked)and child table.



Please provide some more information for better understanding of the scenario.



Regards,


Nitesh Asthana


Hi Nitesh,



In my Instance there were two tables Case,Case_wo if i change State to Cancelled on one table other table gets automatically updated with the same status,they have given data policy on Assignment Group and whenever Status changes to cancelled the alert will be shown as assignment group is Mandatory.



my scenario is to find why two times alert was showing on the form.



Thanks,


Raj  


Hi Raj,



Per my understanding Case_wo extends Case table. If so, the Data policy is on the the parent table (Case) and being applied on Case_wo table as well.


As you said, if state of any one of the above table changes (first execution), it'll change the same state of other table (second execution), that's why it is executing twice.



Hope it helps.



Regards,


NItesh Asthana


Hi Nitesh,



But in Data Policy on Case form Inherit field was unchecked so it was not going to reflect right?status was updating through script in that case how can we restrict to run only once.



Thanks,


Raj


Hi Raj,



It doesn't matter whether state is being modified from the script. If a Data policy has a condition on the change of State field, it'll execute.



Ensure you don't have similar data policy on the child table. Let me know if your issue has been resolved.