Pentana Audit: Message "You cannot set this [record type] to Approved until all the child [record type] are Approved", even though there are no child records
When setting a record to Approved, this message appears - even though there are no child records:
You cannot set this [record type] to Approved until all the child [record type] are Approved" e.g.: You cannot set this Test to Approved until all the child Points are Approved |
This occurs because the parent record (e.g. Test) has a 'count' for the child record type (e.g. ReviewPointCount). If that is set to 0 then the UI will display no icon for the child record type (e.g. it will display no Points icon), and so the user will not see that there are child records.
Solution
A quick workaround is to add a new child record (still using the Tests and Points example - add a new Point). This will cause the UI to display the new child record plus the existing ones, and the user can then Approve the child records and delete the new one.
It is not a true solution however, because the parent's count record is not corrected.
At the moment we do not have a script that will reconcile the counts with child records across the entire database, so any corrections have to be made case-by-case.
Root cause and further investigation
This issue can appear as a result of a temporary problem with the main service.
The issue is cleared after a restart of the service’s application pool, but there may be additional issues that need investigating – more information here: Pentana Audit: Logged error "Could not fetch business rules because query of type Behavior could not be executed"