This appeal turns on whether Canal Capital Corporation (Canal) is barred by a prior state court action from now seeking to recover unpaid livestock fees from Valley Pride Pack, Inc. (Valley Pride) (formerly known as Pine Valley Meats, Inc. and also known as Pine Valley II, Inc.). The district court dismissed Canal’s federal complaint, and Canal appeals. We reverse.
I.
Canal’s claim for livestock or yardage fees is based on a 1936 agreement between St. Paul Union Stockyards Company, Canal’s' predecessor, and Moms Rifkin, Valley Pride’s predecessor. Morris Rifkin operated a meat packing plant adjacent to the Union Stockyards. In the agreement Rifkin promised to pay livestock fees, to abide by the stockyard rules, to maintain its property, and not to sue Union Stockyards under certain circumstances. Union Stockyards in turn promised to allow Rifkin water and sewer access and to provide and maintain a cattle walkway from the stockyards to Rifkin’s plant.
Canal claims that the agreement requires fees for three types of cattle delivery to the packing plant: for animals purchased at the stockyards and then delivered to the plant; for animals purchased elsewhere but first delivered to the stockyards and then moved to the plant; and for animals that never pass through the stockyards, such as cattle trucked directly to the plant. Canal’s federal claim seeks fees for the third type of delivery; it describes them as “direct” fees. Morris Rifkin’s son, who later became the owner of the plant, testified that Rifkin paid such fees when animals were delivered directly to the packing plant. Valley Pride maintains that the 1936 agreement does not require it to pay such fees because of the way it purchases livestock.
Valley Pride purchased Rifkin’s plant in 1986 at a time when the plant was not operating. It resumed operations in 1987, and in 1988 Canal asked Valley Pride to pay direct fees owing for the period from the reopening. Valley Pride did not respond to the request, and Canal took no further action. Canal sold the stockyards in 1989 to United Market Services Company (UMS), but retained ownership of some real estate surrounding the stockyards, including property upon which the cattle walkway was located. As part of the sale, Canal assigned to UMS its rights in outstanding contracts related to the stockyards.
In March 1995, Canal removed the cattle walkway from the property it retained adjacent to the stockyards, and two months later *510 Valley Pride sued in state court to regain use of the walkway and to obtain damages for the period during which its plant was closed because of the removal. 1 Canal counterclaimed in three counts — for interference with prospective business relations, for “an accounting and determination of the fees owed to it” under the 1936 agreement, and for a determination that it had properly revoked Valley Pride’s license to use the walkway. Valley Pride successfully moved to dismiss Canal’s counterclaims. The trial court dismissed the first count as being without merit and ruled that the third count was properly an affirmative defense. Although Canal argued that it had not intended the 1989 assignments to UMS to include its rights to livestock fees under the 1936 agreement, the trial court accepted Valley Pride’s argument that Canal had assigned its rights to the fees to UMS and dismissed without prejudice the claim for an accounting of fees because of lack of standing.
Valley Pride claimed in the state case that the 1936 agreement had created a contractual obligation to maintain the cattle walkway and that Canal’s action in removing it had breached the contract. Valley Pride also sued on a number of other theories, including promissory estoppel, interference with prospective business relations, and trespass. One of Canal’s defenses to the breach of contract claim was that the 1936 agreement had merely given the packing plant a license to use the walkway, rather than imposing a continuing contractual obligation upon the owner of the stockyards to maintain it. 2 Canal raised twelve affirmative defenses to Valley Pride’s complaint. One of these defenses was alleged in this way: “Canal has not received payments as required by [the 1936 agreement].” Among the other eleven affirmative defenses were claims that the statute of frauds was a bar, that Valley Pride’ had not obtained from Rifldn the walkway rights it asserted, that under the 1936 agreement trucking livestock the short distance from the stockyards to the plant was a reasonable alternative to the walkway, that an agreement with the HRA gave Canal a legal privilege to close the walkway, and that the walkway license was unenforceable because HRA’s master plan had effectively condemned the walkway.
The state case proceeded to trial in May 1996. Although Canal’s counterclaim for an accounting of the amount of livestock fees it’ was owed had been dismissed, Canal introduced evidence about livestock fees in defending against the breach of contract claim. At the close of Valley Pride’s case, Canal moved for a directed verdict on all of Valley Pride’s claims. The trial court denied the motion. In reference to the contract claim, it said that lack of consideration had been “raised as an issue of ongoing performance” but there was evidence that one of Valley Pride’s suppliers had paid some livestock fees. 3 That evidence about the supplier related to fees for cattle delivery via the stockyards. There was no evidence of any payment of “direct” fees, and the court never addressed the issue of whether Valley Pride owed direct fees.
Instructions were given to the jury on Valley Pride’s claims for breach of contract, promissory estoppel, interference with prospective business relations, and trespass. The court instructed that a breach could be justified (“failure without legal justification to perform all or any substantial part of what is promised in a contract is a breach of that contract”) and that a breach could be waived (“[a] party’s continued recognition of a contract as binding after the other party’s alleged breach may act as a waiver of that breach”). The only reference to affirmative defenses was that “[a]n affirmative defense must be proved in the same way that a claim *511 must be proved.” No affirmative defenses were identified, and no instruction was given regarding any particular affirmative defense, including the one related to livestock fees, or on any need to consider such defenses in connection with Valley Pride’s breach of contract claim. The damage instructions addressed only damage to Valley Pride; no potential offsets for livestock fees were mentioned.
The state ease was submitted to the jury with special verdict forms. The forms contained two questions relating to Valley Pride’s breach of contract claim; six questions relating to the promissory estoppel, interference with prospective business relations, and trespass claims; one question relating to compensatory damages; and two questions relating to punitive damages. The questions relating to breach of contract were as follows:
Question 1: Has [Valley Pride] proved that a contract remained in effect between it and Canal Capital Corporation on March 22,1995?
Question 2: If your answer to question number 1 was “Yes” then answer this question: Did Canal Capital Corporation breach the contract with [Valley Pride] by removing the Cattle Walkway?
The jury answered <rYes” to both of these questions. It also answered all six questions relating to the promissory estoppel, interference with prospective business relations, and trespass claims in favor of Valley Pride. It awarded Valley Pride $850,000 in compensatory damages and $50,000 in punitive damages. There were no special verdict questions about any type of livestock fees or any other affirmative defense.
Canal filed a post trial motion for judgment notwithstanding the verdict or for a new trial. It raised many arguments in its thirty-three page supporting brief. Those relating to the breach of contract claim were that the 1936 agreement had only created a license, that Canal had given timely notice of its intent to remove the walkway, that there had been a “basic and fundamental change in the terms and surrounding conditions of the 1936 Agreement,” and that “the ongoing consideration required in the 1936 Agreement was simply not being made.” Canal also presented arguments regarding the claims for promissory estoppel, trespass, and interference with prospective business; damages; and alleged trial errors. Only one paragraph of Canal’s thirty-three page brief argued-its affirmative defense regarding unpaid consideration.
In denying the post trial motion, the trial court’s written order addressed a number of Canal’s arguments for a new trial, but made only a general statement explaining its position on the request for judgment notwithstanding the verdict on Valley Pride’s liability claims:
Competent evidence was presented by Plaintiff which could reasonably support the verdict in Plaintiffs favor. Defendants fail to recite any specific material fact dispute where the jury’s findings were overwhelmingly against the weight of the evidence. Thus, Defendants are not entitled to JNOV, and that motion is denied.
The court did not discuss, any of Canal’s specific arguments about its entitlement to judgment on Valley Pride’s claims or mention anything about the affirmative defense in respect to fees. The order was entered in September 1996 and contained a permanent injunction requiring Canal to maintain the cattle walkway.
Canal appealed the judgment and the dismissal of its counterclaim for livestock fees. The Minnesota Court of Appeals affirmed most of the findings on liability and most of the relief granted, as well as the dismissal of Canal’s counterclaim for lack of standing, but reversed the punitive damages.
Pine Valley Meats, Inc. v. Canal Capital Corp.,
Meanwhile, Canal had reacquired the right to livestock fees under the 1936 agreement by entering into an assignment contract with UMS in July 1996. In order to protect itself from the running of the limitations period, *512 Canal had sued in federal court in October 1996 to recover what it estimated to be in excess of one million dollars in livestock fees owed by Valley Pride. Since the state appeal was still pending, the parties stipulated to a dismissal without prejudice of the federal case and the tolling of the statute. Canal recommenced its suit in federal court in September 1997 after the appeal had been decided. Valley Pride moved to dismiss or for summary judgment on the basis of the Rook-er-Feldman doctrine and issue preclusion. The district court ruled from the bench to grant summary judgment to Valley Pride, and Canal’s appeal is now before us.
II.
A.
The
Rooker-Feldman
doctrine is named after two Supreme Court cases—
Rooker v. Fidelity Trust Co.,
Valley Pride argues that because Canal used unpaid livestock fees as an affirmative defense in state court and evidence was presented about them, Canal’s claim in federal court is inextricably intertwined with the state court judgment and is barred under the Rooker-Feldman doctrine. Canal argues that the doctrine does not apply because the state court action did not decide what amount of direct fees, if any, was owed to it by Valley Pride. Although Canal attempted to have that question decided in the state case by its counterclaim for an accounting, the state court dismissed the counterclaim for lack of standing on Valley Pride’s motion. Canal therefore did not have an opportunity in the state action to seek the livestock fees to which it claims it is entitled.
The question before us is whether Canal’s federal claim to recover unpaid livestock fees was “inextricably intertwined” with the state court judgment.
Feldman,
We have carefully reviewed the state court proceedings and the manner in which the state ease was submitted and decided. Canal’s counterclaim for an accounting of fees was dismissed at the outset for lack of standing, over its objection and on motion of Valley Pride. The state court did not give any instructions about livestock fees or ask the jury any questions about them. The damage instructions were entirely focused on the compensation sought by Valley Pride and contained no mention, of any potential offset. In ruling on Canal’s extensive post trial motion, the court merely stated that judgment notwithstanding the verdict was denied because “the jury’s verdict and award of damages are reasonably supported by the evidence.” It made no comment on the fee argument advanced by Canal. The record does not show that either the court or jury ever made findings of any type about livestock fees and neither had occasion to calculate any fees that might have been owing.
The jury returned a verdict in favor of Valley Pride on its contract claim, but we do not know what subsidiary findings it made. *513 Given the way the case was submitted, it cannot be known what the jury may or may not have decided about livestock fees, but it is known that Canal’s counterclaim was eliminated for lack of standing.
The issue of nonpayment of fees as a breach defense is not identical to the issue of whether Valley Pride owed any type of livestock fees and in what amount. The latter question was the subject of the dismissed counterclaim, and it was not submitted to the jury or decided in the state action. Once Valley Pride moved to dismiss the counterclaim for lack of standing and the court granted the motion, Canal’s attempt to obtain compensation from Valley Pride for unpaid fees was not in the case. If the court had ruled differently, or the parties had taken action to obtain reassignment of the rights or to join UMS, all the issues could have been determined in the state case. As it was, the state court did not have occasion to determine whether Canal could recover fees if it once again obtained standing, and neither the jury in its verdict nor the trial court in its rulings ever announced any finding that Valley Pride was not liable for direct livestock fees.
This situation is different from cases in which the
Rooker-Feldman
doctrine has barred federal jurisdiction. When the goal of the federal action is to nullify a state judgment, it is barred.
See, e.g., Rooker,
Here the state judgment is not under attack or in danger of nullification. Valley Pride’s judgment contained an injunction to keep the cattle walkway open and damages for its prior closure. That state judgment will not be affected by the federal action, which would result at most in a determination that some amount of unpaid livestock fees must be paid by Valley Pride. Any determination in federal court that Valley Pride owes direct livestock fees would not mean the state court’s decision was “wrong,” nor would it “void its ruling.” It would not undermine the state injunction or the damages Valley Pride was previously awarded from Canal for the period when the plant could not operate. Canal’s federal livestock fee claim is thus not inextricably intertwined with the state court decision, and the Rooker-Feldman doctrine does not prevent the district court from assuming jurisdiction over Canal’s claim.
B.
In a diversity case, a federal court is required by 28 U.S.C. § 1738 to apply state law to questions of issue preclusion.
See Bechtold,
*514 “(1) the issue was identical to one in a prior adjudication; (2) there was a final judgment on the merits; (3) the estopped party was a party or in privity with a party to the prior adjudication; and (4) the es-topped party was given a full and fair opportunity to be heard on the adjudicated issue.”
Id.
at 1066-67 (quoting
Willems v. Commissioner of Pub. Safety,
In the prior action the issue to be precluded must have been “necessary and essential to the resulting judgment.”
Hauser v. Medley,
C.
In summary, we conclude that neither the Rooker-Feldman doctrine nor issue preclusion bar the claim presented by Canal in this case. We therefore reverse and remand for further proceedings not inconsistent with this opinion.
Notes
.A portion of the walkway was on property owned by the South St. Paul Housing and Redevelopment Authority (HRA), and Valley Pride joined the HRA in the state action as a necessary party. The plant was shut down for over three months before the cattle walkway could be rebuilt and the plant could reopen as a result of a preliminary injunction.
. The court ruled before trial that the 1936 agreement had created a license, but that a question remained as to whether it had also created a contractual obligation not to terminate the license before the purpose of the agreement was fulfilled.
. The court also mentioned there was a possible waiver issue.
. The cases cited by Valley Pride on issue preclusion are factually and procedurally different from this case. For example, in
Wanamaker v. Albrecht,
No. 95-8061,
