When a party moves to dismiss a complaint pursuant to CPLR 3211(a)(7), the standard is whether the pleading states a cause of action. In considering the motion, the court must accept the facts as alleged in the complaint as true, accord plaintiffs the benefit of every possible favorable inference, and determine only whether the facts as alleged fit within any cognizable legal theory. Affidavits submitted by a defendant will almost never warrant dismissal under CPLR 3211 unless they establish conclusively that the plaintiff has no cause of action. Where the movant relies upon evidence beyond the four corners of the complaint, the motion must be denied unless it has been shown that a material fact as claimed by the plaintiff is not a fact at all and unless it can be said that no significant dispute exists regarding it.
808 Union St., LLC v. J. Lehman Park Slope, LLC, NY Slip Op 02632 (2d Dep't May 17, 2023)