¶1in part in a memorandum as follows: I respectfully dissent to the extent that, while I believe the majority’s conclusion to vacate the default entered against defendant to be proper, I find the majority’s decision to sua sponte dismiss the complaint, pursuant to CPLR 3211 (a) (7), for failure to state a cause of action, to be incorrect.
¶2Plaintiff commenced the underlying action against defendant to recover fees for legal services rendered. After issue was joined, defendant’s answer was stricken, on default, for failure to appear and submit to a court ordered examination before trial, and a default judgment was thereafter entered against defendant after inquest. Defendant subsequently moved to vacate the default judgment which was granted by Justice Lippmann, whose vacatur order is the subject of this appeal.
¶3It has been held that the involuntary dismissal of an action must await a motion for such relief (Fischer v Mead Johnson Labs., 41 AD2d 737; see also, Blunt v Northern Oneida (County Landfill, 145 AD2d 913; Balogh v H.R.B. Caterers, 88 AD2d 136). In the matter at bar, no motion was made before the court to dismiss the complaint or a defense, and the only issue raised by plaintiff on appeal is the IAS Court’s order vacating defendant’s default. There is no cross appeal. The majority’s sua sponte dismissal of the complaint, without notice to plaintiff, deprives plaintiff of the opportunity to address the issue of the sufficiency of his causes of action (Matter of Dental Socy. v Carey, 92 AD2d 263, 264, affd 61 NY2d 330; Greene v Davidson, 210 AD2d 108, 109, lv denied 85 NY2d 806). Since the dismissal is predicated upon CPLR 3211 (a) (7), plaintiff is also deprived of the right to seek an opportunity for leave to replead (CPLR 3211 [e]; McLearn v Cowen & Co., 60 NY2d 686).
¶4*208There is authority, when a motion for summary judgment is made, for the court to search the record and, if appropriate, grant judgment in favor of non-moving parties (see, CPLR 3212 [b]; Merritt Hill Vineyards v Windy Hgts. Vineyard, 61 NY2d 106; Grimaldi v Pagan, 135 AD2d 496). However, a motion is necessary so that all parties be given an opportunity to fully address the issue and to lay bare their proof (Gibbs v Kinsey, 120 AD2d 701; Ressis v Mactye, 98 AD2d 836).
¶5I am also aware that on a motion to dismiss a defense, the court may search the record and the IAS Court, or an appellate court, may dismiss the complaint if it is inadequate (see, Siegel, NY Prac § 282, at 412 [2d ed 1991]). In the matter before us, however, the majority searches the record in the absence of a motion which brings the complaint into issue (see, Ressis v Mactye, supra).
¶6Further, the majority’s dismissal, predicated on CPLR 3211 (a) (7), appears to be on the merits and would have res judicata effect. With such drastic impact, the Court of Appeals has held that the motion court’s failure to apprise the parties of its intention to treat a CPLR 3211 motion as one for summary judgment deprived the plaintiff of an " 'opportunity to make an adequate record’ ” and that this "thwarted the very purpose of CPLR 3211 (c)” (Mihlovan v Grozavu, 72 NY2d 506, 508).
¶7I also find that the manner in which the majority reaches its conclusion to be procedurally incorrect. CPLR 3211 (a) provides that "[a] party” may move for judgment dismissing one or more causes of action based on the enumerated grounds set forth therein. It is highly questionable whether the court can invoke the remedy of CPLR 3211 (a) when none of the parties moved for relief under this provision. Further, CPLR 3211 (e) provides that a motion made pursuant to CPLR 3211 (a) shall be made before service of the responsive pleading. Here, issue was already joined when the default was entered against defendant.
¶8Accordingly, I find that, since the complaint was not brought up for review and plaintiff was deprived of the opportunity to address the issue of the sufficiency of his causes of action, the majority’s decision to dismiss the complaint is premature.