By statute in this State every partnership except commercial and banking partnerships established and transacting business in a place without the United States, transacting business in the State under a fictitious name, or a designation not showing the names of the persons interested as partners in such business, is required to file with the clerk of the county in which its principal place of business is situated, a certificate signed by the partners and acknowledged before some officer authorized to take the acknowledgment of conveyances of real property, stating the names in full of all the members of such partnership and their places of residence, and publish the same once a week, for *636four successive weeks, in a newspaper published in the county, if there be one, and if there be none in such county, then in a newspaper published in an adjoining county. (Civ. Code, §§ 2466, 2467.) By a subsequent section—2468—it is provided that “persons doing business as partners contrary to the provisions of this article shall not maintain any action upon or on account of any contracts made or transactions had in their partnership name, in any court of this State, until they have first filed the certificate and made the publication herein required.” This is statute law, is very plain and must be given effect.
The complaint in the present case shows that the plaintiffs are partners under a designation not showing the names of the persons interested as partners, and counts upon a contract made in their partnership name. The statute in terms declares that persons thus doing business shall not maintain an action upon such a contract unless they shall have filed the certificate required by the section cited. Manifestly, therefore, with the averments in respect to the partnership and the contract, the complaint would have been demurrable had it failed to have alleged compliance with the condition imposed by the statute as a prerequisite to the maintenance of the action. And being, under such circumstances, a necessary averment, it was, of course, necessary for the plaintiffs to prove a substantial compliance with the condition, the allegation in that regard being denied in the answer. (Fabian v. Callahan, 56 Cal. 161.) Of course where the complaint fails to disclose that the plaintiffs fall within the provisions of section 2466 of the Civil Code, to avail the defendant the failure to file the required certificate must be set up in the answer as a defense to the action. In either case the action would only abate, and would not be a bar to another action brought after compliance with the provisions of the statute. (Byers v. Bourret, 64 Cal. 73.)
It results from what has been said that as there was a failure on the part of the plaintiffs to show a compliance with the statute in regard to the certificate of partnership, the court below should have granted the defendant’s motion for.judgment of nonsuit. ■
*637Judgment and order reversed and cause remanded for a new trial.
Morrison, C. J., McKinstry, J., Thornton, J., Myrick, J., and McKee, J., concurred.