A. All objections to the proceedings, including objections based on defects in the petition and defenses capable of determination as a matter of law, may be raised by motion to dismiss.B. Upon a finding of grounds to dismiss the petition as provided for in Paragraph A of this Article, the court shall order that the petition be dismissed.