-502: Illegal statement in DB procedure/trigger
Explanation:
A DB procedure contains a statement that is not allowed in DB procedures.
User Action:
Modify the routine in such a way that it contains only statements valid for DB procedures.