The court shall deny the approval of an amicable agreement, if its terms:

Contravene the law;

Affect the rights and legitimate interests of third parties.

A ruling shall be made on the dismissal of the amicable agreement, which may be appealed (protested).