The court sustained the defendants’ demurrer upon the ground that the plaintiff’s cause of action was barred by the statute of limitations. In our opinion the court should have overruled the demurrer upon this ground, and sustained it upon a different ground. The petition, to our minds, shows very clearly that the plaintiff never had a cause of action against these defendants. The demurrer raised this question. If the court had sustained it upon this ground, the plaintiff might possibly (though not probably) have elected to amend. The plaintiff comes here now upon the theory that he had a cause of action, and asks us to hold that it is not barred. . To determine whether an action is barred or not, we must determine when the cause accrued. If it appears from the petition that it never accrued at all, we cannot say that it is barred. The plaintiff is seeking to compel the different boards of directors of the defendant districts to levy a tax to pay a judgment. It claims that it is entitled to a writ of mandamus for this purpose. The remedy sought is given to a judgment creditor of a public corporation, who *190has either elected not to issue execution, or, having issued execution, has been unable to find property upon which to levy. Code, § 3049. Boynton v. District Township of Newton, 34 Iowa, 510. In the view which we take of the case, the plaintiif is not a judgment creditor of the defendant districts, and has in no proper sense elected not to issue execution against them, or been unable to find property upon which to levy an execution issued.
The plaintiff claims to be the owner of a judgment against the district township of Sumner. This action is brought to compel the defendants to provide for the payment of the judgment, but in our opinion it has not even such judgment, to say nothing of the question as to whether the defendants would be liable to pay it if it had.
The district township of Sumner comprised at one time two congressional townships in Webster county. Afterward, one of the congressional townships was organized as a district township, under the name of the District Township of Clay, and the sub-districts in- the other congressional township were organized as independent districts, being eight in number, and the district township of Sumner was dissolved. After it was dissolved, the district township of Clay, the present plaintiff, claiming that it was entitled to a portion of the assets left in the possession of the district township of Sumner, brought an action in which the district township of Sumner was named defendant. Upon what person or persons, if any one, original notice was served, does not appear. Seven of the eight independent districts, however, employed counsel to defend against the action, but the defense was unsuccessful, and judgment was rendered against the district township of Sumner. Afterward, the plaintiff brought an action against the independent districts, being the same made defendants in this action, for the purpose of recovering against them for the same indebtedness for which the judgment had been rendered against the district township of Sumner. The defendants appieared and pleaded the judgment in bar, and introduced evidence *191showing that they employed counsel, and subpoenaed witnesses, and defended in the action in which the judgment was rendered; and thereupon plaintiff withdrew its action, and judgment was rendered against it for costs.
The plaintiff then brought this action against the independent districts, for the purpose of obtaining a writ of mandamus, as above set forth. The foregoing, we believe, constitute the essential facts.
If the district township of Sumner had remained after the organization of the district township of Clay, it would seem to be clear that the respective boards of the two district townships should have met and made an equitable division of the assets and liabilities. Code, § 1715. This, doubtless, they would have done. But, at the same time that the district township of Clay came into existence as a complete organization, the district township of Sumner went out of existence. It was impossible, therefore, for the respective boards of these two district townships to meet. Whether the plaintiff’s board and those of the independent districts should have met and made the equitable division, under section 1715, above cited, we need not determine. If they could not make the division, the plaintiff, it would seem, would have been entitled to maintain an action against the independent districts. Ind. Dist. of Georgia v. Ind. Dist. of Victory, 41 Iowa, 321. For some reason, the plaintiff brought an action in which the district township of Sumner was named as the sole defendant. But the district township of Sumner, having previously gone out of existence, could not be made defendant. In the very nature of things, the court could not have jurisdiction either of the subject-matter or person, in an action in which the party named as defendant had no existence. The plaintiff, probably, would not deny that the judgment is necessarily void, so far as the party named defendant is concerned, but it insists that the judgment is valid so far as the independent districts are concerned; and this theory is based upon the fact that the independent districts employed coun*192sel and defended. But in our opinion the plaintiff’s theory cannot be sustained.
It is true that, where an action is brought against a person upon a liability for which, if discharged by the defendant, a third person is liable to respond to him, and the third person defends in the action, and judgment is rendered for plaintiff, the third person cannot, in an action against him by the person who was defendant in a former action, be heard to dispute the correctness of the judgment. A similar rule applies in actions of a somewhat different character. .But in all it will be found that there was an actual defendant, and a judgment of record against somebody who was a party to the record.
One position taken by the plaintiff remains to be considered. The plaintiff brought an action against these defendants, and was induced to withdraw it by reason of their answer and evidence offered. It avers that the defendants are now estopped to deny the validity of the judgment.
The plaintiff’s position, as we understand it, is that, as the defendants claimed in that action that the judgment against the district township of Sumner was valid, they should not now be heard to say that it is not.
Whatever position the defendants took in that action respecting the validity of the judgment, it seems to us, was a mere legal position, of the soundness of which the plaintiff could judge as well as the defendants. We see no ground upon which an estoppel can be based.
The question which we have determined was raised by the first, second and fourth grounds of the defendants’ demurrer. The court overruled the demurrer upon these grounds. We think that it should have been sustained.
. While we think that the petition shows no cause of action, and that the demurrer should have been sustained upon such ground, we cannot say that the plaintiff was not prejudiced, by reason of the ground upon which it was sustained.
Reversed.