[¶ 1] Dulcie Trottier appeals from the trial court’s dismissal with prejudice of her claim against Richard Bird. Because the trial court decided it did not have subject matter jurisdiction over Trottier’s claim, it *159 should have dismissed the claim in accordance with N.D.R.Civ.P. 12(h)(3). We reverse and remand with directions to vacate the judgment and to dismiss the case for lack of subject matter jurisdiction.
I
[¶ 2] On March 26, 1996, Bird allegedly struck the rear of a vehicle driven by Trottier on the Standing Rock Sioux Indian Reservation. Bird is an enrolled member of the Standing Rock Sioux Tribe. Trottier is not a member of the Standing Rock Sioux Tribe; she is a member of the Turtle Mountain Chippewa Tribe. Trottier brought a negligence cause of action against Bird in Sioux County District Court. Bird’s answer alleged lack of both personal and subject matter jurisdiction.
[¶ 3] Following completion of initial discovery, Bird brought a motion for summary judgment pursuant to Rule 56 of the North Dakota Rules of Civil Procedure. This motion was based on the trial court not possessing subject matter jurisdiction over the claim. In conjunction with the summary judgment motion, Bird also brought a motion to dismiss the claim with prejudice. Trottier responded by requesting the trial court to dismiss her claim without prejudice. She did not assert the court had subject matter jurisdiction. The trial court determined it lacked subject matter jurisdiction because the Standing Rock Sioux Tribe had not granted the state jurisdiction pursuant to Chapter 27-19 of the North Dakota Century Code. The trial court granted summary judgment and ordered the action dismissed with prejudice.
[¶ 4] After the trial court dismissed the case with prejudice, Trottier brought a Rule 59(j) motion to amend the dismissal to be without prejudice. N.D.R.Civ.P. 59(j). The trial court denied this motion. Trottier appeals “from the judgment entered in this matter and from all adverse decisions in connection therewith.”
II
[¶ 5] As a prerequisite to issuing a valid order or judgment, a court must have both subject matter and personal jurisdiction.
Albrecht v. Metro Area Ambulance,
[¶ 6] “Subject-matter jurisdiction is the court’s power to hear and determine the general subject involved in the action.... ”
Albrecht,
*160
[¶ 7] In this case, the trial court decided it did not possess subject matter jurisdiction over Trottier’s cause of action. This determination was neither challenged at the trial court nor appealed. Trottier has waived this issue, and we do not address it.
See Klose v. Klose,
[¶ 8] After rendering its judgment, the trial court entertained a Rule 59(j) motion brought by Trottier to amend the dismissal with prejudice to one without prejudice. N.D.R.Civ.P. 59(j). This motion was denied. “The decision on a motion to amend a judgment under Rule 59(j) rests in the trial court’s sound discretion and will not be reversed on appeal unless there is a manifest abuse of discretion.”
Woodworth v. Chillemi,
Ill
[¶ 9] We reverse and remand with directions to vacate the judgment and to dismiss the case for lack of subject matter jurisdiction.
Notes
. The North Dakota Rules of Civil Procedure are clear that a dismissal for lack of subject matter jurisdiction under Rule 12(h)(3) is not an adjudication on the merits of the cause of *160 action but only a determination of a court’s jurisdiction to hear and decide the dispute. See N.D.R.Civ.P. 41(b).
. Trottier informed the trial court she intended to litigate her negligence cause of action in federal district court.
