SEVERSON, Justice.
[¶ 1.] Terry and Cindy Leonhardt allege that they entered into an oral lease with Terry's father, Delbert Leonhardt, which was to extend for the lives of Delbert and his wife, Ellen Leonhardt. They claimed the oral lease contained a right of first refusal that Terry could exercise after the death of both Delbert and Ellen. Delbert later entered into a written lease with his grandson, Matthew Oswald. This written lease encompassed some of the farmland Terry and Cindy allege was part of their oral lease with Delbert. Terry and his wife, Cindy, initiated a declaratory judgment action against Delbert, seeking a declaration that the oral lease and right of first refusal were valid. Terry and Cindy also sought specific performance of the oral lease and right of first refusal. Matthew intervened in the lawsuit. Delbert then filed for summary judgment on the ground that the oral lease and right of first refusal were invalid under SDCL 43-32-2, limiting leases for agricultural land to no more than twenty years. Matthew joined the motion. The circuit court granted the motion for summary judgment on the ground that the lease was invalid under the statute of frauds. Terry and Cindy appeal. We reverse and remand for further proceedings.
[¶ 2.] Delbert and Ellen Leonhardt owned approximately one thousand acres of farmland in South Dakota. In 1988, Terry Leonhardt, who is Delbert and Ellen's son, agreed to assist his parents in farming the land. Terry and his wife, Cindy, allege that they entered into a crop sharing arrangement with Delbert in 1989, under the terms of which Terry was responsible for half of the expenses associated with the farming operation. In return, Terry received one-third of the profit from the crop each year.
[¶ 3.] In 1992, Terry and Cindy allege that they reached a new arrangement with Delbert. Under this new arrangement, Terry was responsible for all of the expenses associated with the farming operation. In exchange, Terry received two-thirds of the profit from the crop each year. Terry and Cindy also contend that Delbert agreed to grant them a right of first refusal in 1996 or 1997.
[¶ 4.] In 2001, Terry and Cindy contend that the parties entered into an oral lease, which superseded the previous crop sharing arrangement. Under this new agreement, Terry and Cindy maintain that they leased Delbert's land "on a cash rent basis."
[¶ 5.] Delbert and Ellen divorced in 2010. As part of the divorce, Delbert was awarded approximately half of the farmland. Later that year, Delbert entered into a written lease with his grandson, Matthew. This written lease was to extend for three years and encompassed farmland that Terry and Cindy assert was part of their oral lease with Delbert.
[¶ 6.] Terry and Cindy brought a declaratory judgment action against Delbert, seeking a judgment that the oral lease and right of first refusal were valid. Terry and Cindy also sought specific performance of the oral lease and right of first refusal. Matthew intervened as a defendant in the declaratory judgment action.
[¶ 7.] Delbert moved for summary judgment. He argued that the oral lease was invalid under SDCL 43-32-2, which provides in relevant part: "No lease or grant of agricultural land for a longer period than twenty years, in which shall be reserved any rent or service of any kind, shall be valid." Matthew joined Delbert's motion for summary judgment.
[¶ 8.] During the hearing on Delbert and Matthew's motion for summary judgment, the circuit court inquired as to the applicability of the statute of frauds. Terry and Cindy noted that Delbert and Matthew had not raised the statute of frauds as an issue in their summary judgment motion. Nonetheless, Terry and Cindy argued that the doctrines of promissory estoppel and partial performance precluded Delbert and Matthew from invoking the statute of frauds. The circuit court rejected this argument and granted summary judgment in favor of Delbert and Matthew on the ground that the oral lease was invalid under the statute of frauds. Terry and Cindy appeal.
[¶ 9.] In their brief accompanying the motion for summary judgment, Delbert and Matthew argued that summary judgment was warranted because Terry and Cindy's lease was void ab initio under SDCL 43-32-2. However, Delbert and Matthew did not argue that Terry and Cindy's lease was void under the statute of frauds. Nor did Delbert and Matthew advance this argument before the circuit court during the summary judgment hearing. The circuit court, nonetheless, inquired as to the applicability of the statute of frauds during the summary judgment hearing. Terry and Cindy argued that
[¶ 10.] Terry and Cindy argue that the circuit court erred in failing to provide them with notice that it would consider granting summary judgment on a legal theory different from the legal theory advanced by Delbert and Matthew in their summary judgment pleadings and brief. Had the circuit court provided them with adequate notice and an opportunity to present relevant evidence, Terry and Cindy allege that they "could have provided the trial court with details" regarding the money and time they expended in reliance on the oral lease and right of first refusal.
[¶ 11.] In response, Delbert and Matthew note that the statute of frauds was raised as an affirmative defense in both Delbert and Matthew's answers to the amended complaint. In his motion for summary judgment, Delbert asserted, "The pleadings establish that there are no genuine issues as to any material facts relating to Plaintiffs' Amended Complaint and that this Defendant is entitled to summary judgment in his favor as a matter of law." Delbert and Matthew argue that this provided Terry and Cindy with adequate notice that the statute of frauds would be at issue during the summary judgment hearing.
[¶ 12.] SDCL 15-6-56(c) provides that summary judgment "shall be rendered forthwith if the pleadings, depositions, answers to interrogatories, and admissions on file, together with the affidavits, if any, show that there is no genuine issue as to any material fact and that the moving party is entitled to a judgment as a matter of law." "In determining whether summary judgment is appropriate, [a] court is not confined to the particular propositions of law advanced by the parties on a motion for summary judgment." Jaste v. Gailfus, 679 N.W.2d 257, 261 (citing 10A Charles A. Wright et al., Federal Practice and Procedure § 2725 (3d ed.1998)). However, "[t]here is a greater possibility for error when the party opposing the summary judgment motion may be able to show that a genuine issue exists but has not done so because the facts relating to the particular legal principles were not in issue." Id. (citation omitted). In light of this risk, it is generally recognized that "[a] court should notify the parties when it intends to rely on a legal doctrine or precedents other than those briefed and argued by the litigants." Id. (citation omitted); see Heisler v. Metro. Council, 339 F.3d 622, 631 (8th Cir.2003) ("It is fundamentally unfair to the nonmoving party to require her to address issues not addressed by the moving party in anticipation that the district court might rely on some unidentified issue to grant the motion."). Providing the parties with adequate notice of the issues ensures that the parties have a meaningful opportunity to develop the record and present all relevant evidence to the court.
[¶ 14.] In general, even if the parties did not receive adequate notice of the issue the court relied upon in granting summary judgment, the court's ruling may be affirmed if "the facts before the ... court were fully developed so that the moving party suffered no procedural prejudice." Bridgeway Corp. v. Citibank, 201 F.3d 134, 139 (2d Cir.2000) (internal quotation marks omitted). In other words, "[t]he failure of the court to provide notice can be excused if the error was harmless under the circumstances." Jaste, 679 N.W.2d at 261 (citation omitted). "Absent some indication that the moving party might otherwise bring forward evidence that would affect the court's summary judgment determination, failure to provide an opportunity to respond is not reversible error." Coach Leatherware Co., Inc. v. AnnTaylor, Inc., 933 F.2d 162, 167 (2d Cir.1991); see Weiss v. Reebok Int'l, Ltd., Inc., 91 Fed.Appx. 683, 689 (Fed.Cir.2004) ("Summary judgment may be granted on legal grounds other than those advanced by the parties if the record is sufficiently developed.").
[¶ 15.] In this case, Terry and Cindy allege that if they had received notice that the statute of frauds was at issue, they would have had a meaningful opportunity to produce the following evidence to the circuit court:
[¶ 16.] Terry and Cindy have demonstrated that they may possess evidence they did not have a meaningful opportunity to present to the circuit court.
[¶ 17.] Terry and Cindy have shown that they were prejudiced by the circuit court's failure to provide them with notice that it would consider the statute of frauds during the summary judgment hearing. We reverse and remand for further proceedings.
[¶ 18.] GILBERTSON, Chief Justice, and KONENKAMP, ZINTER, and WILBUR, Justices, concur.