How to debug Approval Error *History tree table*,*Error in evaluating routing slip* ?
Hello All,
This post is on How to debug Approval Error - Error occurred while displaying History tree table. Error in evaluating routing slip ?
Situation\Scenario
You are doing a particular activity for which approvals are enabled e.g. Transfer ,Promotion,New hire etc.
and You get Error Message : Error occurred while displaying History tree table. Error in evaluating routing slip. Check the underlying exception and correct the error in the routing slip.
How to Debug:
Based on experience ,this one can be Debugged and corrected as follows .
1/ Check the approval configuration esp rule . It should be compiled and saved properly.
FSM - We have two navigation to reach the workflow rules so use either of those to check the approval config.
2/ Check the Data being used in the transaction /activity which led to this error V/s Rule Conditions.
May be Rules in the approval config are not covering the condition of the transaction properly. e.g.
lets say There are two active rules for an approval,and its saved and compiled properly-
rule1 if dept='A' then do something
rule2 if dept='B' then do something
This seems to be fine logically however in the transaction if you have department C (not A and B ) than it will fail and lead to history table error
So we need to alter the approval config as follows by adding one more active rule -
rule1 if dept='A' then do something
rule2 if dept='B' then do something
rule 3 if dept !='A' and dept !='B' then also do something (that is what to do if department is not A and B .
/3: If the hierarchy has issues e.g. may be loops , missing persons etc.
Trust this helps to debug this types of errors.
Regards,
Abhishek