DECISION ORDER
ORDERED that the order is modified by deleting the provision thereof granting the defendants summary judgment and substituting therefor a provision granting the defendants' motion pursuant toCPLR 3211(a)(7) to dismiss the complaint for failure to state a cause of action; as so modified, the order is affirmed, without costs or disbursements.
The trial court erred when it converted the defendants' motion pursuant to CPLR 3211(a)(7) to one for summary judgment, since it failed to give notice to the parties (see, CPLR 3211[c]; Rovello v. Orofino Realty Co., 40 N.Y.2d 633, 635 ). Nevertheless, the defendants' motion to dismiss the complaint for failure to state a cause of action should have been granted. Where, as here, evidentiary material has been considered, the court must determine whether the proponent of the pleading has a cause of action, not whether he or she has stated one (see, Guggenheimer v. Ginsburg, 43 N.Y.2d 268, 275 ). When read in conjunction with the evidentiary record, the plaintiff's amended complaint fails to allege any material facts giving rise to a cognizable claim for legal malpractice (see, Kantrowitz Goldhamer, P.C. v. Geller, 265 A.D.2d 529 [2d Dept., Oct. 25, 1999]; Choi v. Dworkin, 230 A.D.2d 780, 782 ). Further, the plaintiff's second cause of action alleging a breach of contract must be dismissed since the terms of the retainer agreement are not set out in the complaint and, in any event, the retainer agreement does not promise a specific result (see,Krouner v. Koplovitz, 175 A.D.2d 531 ).