Edward Shelton appeals the trial court’s denial of his petition for declaratory judgment. He says the effect of the denial was to erroneously award his former spouse, Brenda Shelton, a portion of his disability annuity, when the dissolution decree only awarded her a portion of his retirement benefits. We dismiss the appeal for lack of jurisdiction.
Statement of Facts
The fourteen-year marriage of Edward Shelton and Brenda Shelton was dissolved by default judgment in December 1986. Mr. Shelton (“Edward”) was not represented by counsel and did not appear at the final hearing. Pursuant to the dissolution decree, Ms. Shelton (“Brenda”) was awarded a marital share of Edward’s retirement/pension plan from his employer, Union Pacific Railroad Company.
Edward, who has not yet reached retirement age, has become disabled since the dissolution. At some point after the dissolution, Brenda submitted a copy of the dissolution decree to the Railroad Retirement Board, the body that administers the Railroad Retirement Plan. After Edward became disabled, the Board began making deductions from Edward’s disability payments and paying Brenda.
Edward contacted the Board about the deductions. The Board responded that it would not discontinue the division of the payments without a new court order.
In February 2005, Edward filed a petition for declaratory judgment and motion for contempt naming Brenda as party defendant. Edward sought a declaration from the court that Brenda is not eligible to receive any portion of his disability an- *579 nutty from his employer and that she is only eligible to receive a portion of his retirement benefits “as contemplated by the original Decree.” Brenda’s answer contended the petition should be dismissed.
On October 31, 2005, the court denied Edward’s petition for declaratory judgment and denied his motion for contempt. The court’s judgment stated that it ruled for Brenda and against Edward on Edward’s petition for declaratory judgment. Because Brenda’s pleadings sought only dismissal of the petition, the court’s ruling was not a ruling on the merits.
Edward appeals.
Edward’s Primary Argument
In his first point, Edward contests the trial court’s denial of his petition for declaratory judgment, which he fears had the effect of awarding Brenda a portion of his disability benefit. This was error, he says, because under Missouri law, a disability annuity is not marital property subject to division in a dissolution decree.
See Cranor v. Cranor,
Dismissal for Lack of Jurisdiction
It is well settled that before we can proceed with the review of an appeal on the merits, we first must determine,
sua sponte,
our jurisdiction to do so.
Derks v. Surface, 189
S.W.3d 692, 694 (Mo.App.2006). If we lack jurisdiction, then the appeal must be dismissed.
Id.
This court’s appellate jurisdiction is derivative.
In re Moreau,
For the reasons stated below, we conclude that the trial court lacked jurisdiction to consider Edward’s declaratory judgment action, and we, therefore, are constrained to dismiss this appeal for lack of jurisdiction.
Failure to State a Claim for Declaratory Judgment
Although not raised by the parties, the issue of whether a petition states a claim upon which relief can be granted is “inherent in every appeal and may be raised
sua sponte
by the reviewing court.”
Preferred Physicians Mut. Mgmt. Group, Inc. v. Preferred Physicians Mut. Risk Retention Group,
Under the Declaratory Judgment Act, trial courts have the power “to declare rights, status, and other legal relations.” § 527.010.
1
There are four require
*580
ments for a declaratory judgment petition.
Grewell v. State Farm Mut. Auto. Ins. Co.,
Here, Edward could have — and should have — petitioned the court to invoke its continuing jurisdiction to establish a qualified domestic relations order (QDRO). In such a proceeding, the parties could litigate the merits of Edward’s contentions. We conclude, therefore, that Edward’s petition for declaratory judgment failed to state a claim upon which relief can be granted. The failure to state a claim is related to subject matter jurisdiction.
Id.
at 694. Subject matter jurisdiction cannot be waived or conferred by agreement of the parties.
Id. (citing Noakes v. Noakes,
Other Adequate Remedy: QDRO
Edward argues in his second point that the trial court denial was “tantamount to a modification” of the order dividing the parties’ property under the dissolution decree. Such an order is not modifiable, he says.
See
§ 452.330.5. It is true that once a decree or judgment for dissolution of marriage becomes final, the property provisions of the decree generally are not modifiable under Missouri law.
Ochoa v. Ochoa,
The court’s order as it affects distribution of marital property shall be a final order not subject to modification; provided, however, that orders intended to be qualified domestic relations orders [QDROs] affecting pension, profit sharing and stock bonus plans pursuant to the U.S. Internal Revenue Code shall be modifiable only for the purpose of establishing or maintaining the order as a qualified domestic relations order or to revise or conform its terms so as to effectuate the expressed intent of the order.
This statute has been interpreted to mean that the court retains continuing jurisdiction to establish, to maintain, or to revise a QDRO to ensure that it is “qualified.”
May v. May,
Following the creation of QDROs by the Retirement Equity Act of 1984, the General Assembly amended section 452.330.5 in 1988 to include the above proviso for QDROs.
Ochoa,
In this case, the dissolution was granted prior to the 1988 amendment to section 452.830.5. The terms of the dissolution decree provide that “[Brenda] shall receive a portion of [Edward’s] Retirement/Pension Plan from [his] employer, Union Pacific Railroad Company (Railroad Retirement Fund),” pursuant to a formula that factors in the length of the marriage, Edward’s years of service with the Railroad, and the dollar amount of the benefit being paid. 3 The decree further states that
Petitioner [Brenda]’s share of the sums payable shall be due to her immediately if, as and when same are paid from the same plan to Respondent [Edward], or survivor or other designee, and without regard to the binding effect of this agreement upon Petitioner’s (sic) employer, the said plan administrator,] other person or entity other than [Edward].
The decree requires Edward to “sign any and all documents on behalf of [Brenda] with the ... Railroad ... to insure that [Brenda] shall receive the benefits as ordered herein.” Edward and Brenda disagree about the intent and effect of the decree.
The circuit court’s order in this case was a domestic relations order. Thus, the circuit court retained jurisdiction to establish the domestic relations order as a QDRO. This would have clarified the intent of the decree and provided proper instruction as to what benefits were intended to be awarded to Brenda. Therefore, Edward had an adequate remedy at law in which to seek redress of his complaints about the Retirement Board’s division of his disability benefits. Where the petition for a declaratory judgment fails to state a claim upon which relief can be granted, the trial court lacks jurisdiction to enter judgment thereon.
Lane v. Lensmeyer,
Conclusion
For the foregoing reasons, the appeal is dismissed. The cause is remanded with directions to vacate the judgment and to dismiss for lack of jurisdiction.
SMITH and HARDWICK, JJ„ concur.
Notes
. All statutory references are to the Revised Statutes of Missouri, 2000, unless otherwise noted.
. The Employee Retirement Income Security Program (ERISA), 29 U.S.C. § 1056(d)(3) sets out the requirements that a domestic relations order must meet in order to be considered a QDRO.
Baird
v.
Baird,
. Neither party discusses whether all of Edward's railroad retirement benefits are divisible under federal law.
See
45 U.S.C. § 231m;
Hisquierdo v. Hisquierdo,
