Carvers’ declaratory judgment action was dismissed on grounds of res judicata, and they appeal.
Facts
In 1971, Heikkilas leased their oil and gas rights on a portion of their ranch to Inland Oil & Gas Corporation (Inland). In 1977, the portion of the ranch whose oil and gas rights were leased to Inland became part of the West Short Pine Hills Shannon Gas Field (common field).
In 1979, Heikkilas sold the entire ranch by contract for deed, including the common field portion, to Carvers. The contract for deed reserved to Heikkilas an undivided ninety percent mineral interest in the ranch, but gave Carvers the right to receive payment from Heikkilas for any “physical damage ... caused by Sellers’ ... operations.” The contract also provided an arbitration procedure in case of a disagreement over the presence or amount of damages.
These transactions have been the subject of much arbitration and litigation
1
between Heikkilas and Carvers over the past five years. For purposes of this appeal, the relevant case is
Heikkila v. Carver,
Heikkilas are not liable for damages that occur due to [Inland’s] development outside the ranch, regardless of whether those activities benefit the Heikkilas’ mineral interest. There is no provision in the contract that such off-ranch activities will be considered “seller operations.” “Seller operations” include only those activities conducted by [Inland] on some part of the ranch itself, and such activities are compensable by Heikkilas. [Inland] may be liable for off-ranch activities that cause damages, but liability depends upon the application of general tort law principles or statute.
Id. at 597-598.
At an arbitration meeting held November 1, 1989 following our decision, Heikkilas *185 and Carvers disagreed about what the decision meant. Specifically, they disputed the effect of the decision on two or three gas wells located on Carvers’ property but operated under leases with mineral right owners claimed to be other than Heikkilas. Heikkilas contend that they are not contractually obligated to pay Carvers for damages to their ranch caused by this oil and gas development, because even though it takes place within the boundaries of the ranch property, it is clearly not part of “seller operations.” Carvers claim that since that particular point was not decided by this court, and since agreement was not reached in the contractual arbitration process, the question must be decided in this declaratory judgment action.
Carvers commenced this declaratory judgment action on November 14, 1989. On December 4, 1989, Heikkilas filed a motion to dismiss. Following a hearing, the court granted Heikkilas’ motion to dismiss on January 29, 1990, on the basis that Carvers’ action is barred by res judicata and fails to state a claim upon which relief can be granted. SDCL 15-6-12(b)(5). Carvers filed their notice of appeal on March 26, 1990.
Is Declaratory Judgment Relief Proper?
SDCL 21-24-1 provides that “[cjourts of record within their respective jurisdictions shall have power to declare rights, status, and other legal relations whether or not further relief is or could be claimed.... [Sjuch declaration shall have the force and effect of a final judgment or decree.”
SDCL 21-24-3 further provides: Any person interested under a deed, will, written contract, or other writing constituting a contract, or whose rights, status, or other legal relations are affected by a statute, municipal ordinance, contract, or franchise, may have determined any question of construction or validity arising under the instrument, statute, ordinance, contract, or franchise and obtain a declaration of rights, status, or other legal relations thereunder.
In general, all that is required for a declaratory judgment action is the existence of a justiciable and ripe controversy between adversely interested parties.
State Highway Comm’n v. Sweetman Constr. Co.,
The correct construction of a prior judgment or order is normally an appropriate subject for a declaratory judgment action. While a declaratory judgment obviously cannot alter the terms of a final judgment, it “may clarify the terms of the order if they are ambiguous. The court may thus inquire into the intent [of] the order.”
Nelson v. Quade,
There is some authority to the contrary.
Anderson v. Wyoming Development Co.,
*186
The declaratory judgment in
Heikkila v. Carver,
Nevertheless, Heikkilas suggest that even if there is a genuine controversy which our prior judgment did not settle, Carvers are still precluded from litigating that issue by the doctrine of res judicata because they could have raised it in the previous action. “The doctrine of res judi-cata serves as a
claim
preclusion to prevent relitigation of an
issue actually litigated or which could have been properly raised and determined
in a prior action.”
Black Hills Jewelry Mfg. v. Felco Jewel Ind.,
However, it is critically important to the resolution of this question that not only is this appeal a declaratory judgment action, but the prior judgment was also a declaratory judgment action. Like any other judgment, a declaratory judgment which is valid and final “is conclusive, with respect to the matters declared ...” Restatement (Second) of Judgments § 33 (1982), Comment b (emphasis added). However:
When a plaintiff seeks solely declaratory relief, the weight of authority does not view him as seeking to enforce a claim against the defendant. Instead, he is seen as merely requesting a judicial declaration as to the existence and nature of a relation between himself and the defendant. The effect of such a declaration ... is not to merge a claim in the judgment or to bar it. Accordingly, regardless of outcome, the plaintiff or defendant may pursue further declaratory or coercive relief in a subsequent action.
A plaintiff who wins a declaratory judgment may go on to seek further relief, even in an action on the same claim which prompted the action for a declaratory judgment.... [I]t is irrelevant that the further relief could have been requested initially [.]
A plaintiff who has lost a declaratory judgment action may also bring a subsequent action for other relief.... The theory is the same: a declaratory action determines only what 'it actually decides and does not have a claim preclu-sive effect on other contentions that might have been advanced.
Id., Comment c (emphasis added).
It is obvious that the operations now in question are either:
(1) seller operations (including those of Heikkilas’ lessees or their assigns);
(2) Carvers’ operations; or
(3) the operations of a stranger without approval or authority from (1) or (2).
Incredible as it may seem, the record fails to show factually whether it is (1), (2) or (3). The only excuse for the parties’ failure is that they may have been prevented from doing so by the trial court’s ruling.
Since Carvers and Heikkilas disagree about whether the wells in question are part of “seller operations,” and since the issue is not precluded nor a cause of action barred by res judicata, it was proper for either Heikkila or Carver to seek a declaratory judgment to settle the question. Therefore, it was error for the court to dismiss Carvers’ declaratory judgment action.
Reversed and remanded.
MORGAN, Retired Justice, participating.
Notes
.
Heikkila v. Carver,
