When the grounds of the objection pleaded by the peremptory exception may be removed by amendment of the petition, the judgment sustaining the exception shall order such amendment within the delay allowed by the court. If the grounds of the objection raised through the exception cannot be so removed, or if the plaintiff fails to comply with the order to amend, the action, claim, demand, issue, or theory shall be dismissed.
La. C.P. § 934