If a necessary party is not joined in a case, the biggest consequence is that the court may either dismiss the suit as not properly constituted or pass a decree that is incomplete, unenforceable, or later challenged for having been made “behind the back” of an affected person, causing fresh litigation, appeals, or remands. To deal with it once discovered, the practical approach is to immediately acknowledge the defect, move an application to implead the missing party (under the relevant procedural rule in your jurisdiction), amend the memo of parties and relief/prayer clause, and ensure the newly added party is properly served and given a fair chance to file their reply so the decree ultimately binds everyone. To avoid procedural delays, good lawyers prepare a stakeholder map right at the drafting stage—identifying all contracting parties, co-owners, legal heirs, government authorities, or other persons whose rights will be directly affected—then double-check non-joinder and mis-joinder objections while settling pleadings, raise or cure any issue at the earliest hearing, and ask the court to address maintainability and party-impleadment clearly at the time of framing issues, so the case moves forward on merits rather than getting stuck on technical defects later.