Allen and Debra Sue Wald appealed from a final judgment which, in part, dismissed *926their first amended counterclaim against Security National Bank and denied their motion to file a second amended counterclaim. We affirm in part, reverse in part, and remand for further proceedings.
In 1990 and 1991 the Walds and Security National executed four promissory notes in which Security National loaned the Walds about $350,000, and the Walds gave Security National a security interest in certain personal property, including their farm equipment and 1990 crop. By May 1991, the Walds had defaulted on the promissory notes, and Security National sued them, seeking a judgment of $151,960.94 and foreclosure of its security interest in the personal property.
The Walds initially filed a pro se answer, generally denying Security National’s allegations. Later, the district court allowed the Walds, through counsel, to file an amended answer and counterclaim, which alleged, in substance, that the parties’ security agreement covered a combine and proceeds from the combine; that during the 1991 harvest, the combine was destroyed by fire and a check for insurance proceeds was issued jointly to Security National and the Walds; and that Security National “intentionally, maliciously and in bad faith” attempted to prevent the Walds from finishing their 1991 harvest by refusing to release the insurance proceeds so the Walds could obtain a replacement combine. The Walds characterized their counterclaim as a tort action for bad faith and for intentional infliction of emotional distress.
After further discovery, the Walds moved to file a second amended answer and counterclaim, which alleged, in substance, that Security National had breached a written agreement to subordinate its security interest so the Walds could obtain a loan from the Bank of North Dakota. The district court denied the Walds’ motion to file a second amended counterclaim, granted Security National’s motion for summary judgment on the underlying debt, and allowed the parties additional time to submit supplemental materials on the Walds’ first amended counterclaim. Instead of filing supplemental materials, the Walds moved to dismiss without prejudice their first amended counterclaim, and they filed a separate action against Security National, asserting the claims presented in their first and second amended counterclaims.1 Meanwhile, in this action, the court granted Security National summary judgment on the Walds’ first amended counterclaim. Final judgment was entered granting Security National recovery from the Walds on the underlying debt, dismissing with prejudice the Walds’ first amended counterclaim, and denying the Walds’ motion to file a second amended counterclaim.
The Walds contend that the district court erred in granting summary judgment on their first amended counterclaim. They argue that genuine issues of material fact exist on their claims for the tort of bad faith and for intentional infliction of emotional distress. Security National responds that the Walds’ first amended counterclaim raised no genuine issues of material fact, because the bank had no duty to the Walds to release the insurance proceeds from the combine.
Summary judgment under N.D.R.Civ.P. 56 is appropriate if, after viewing the evidence in the light most favorable to the opposing party, there are no genuine issues of material fact or conflicting inferences which reasonably can be drawn from undisputed facts, or if the only issues to be resolved are questions of law. E.g., Hummel v. Mid Dakota Clinic, P.C., 526 N.W.2d 704 (N.D.1995). A party seeking summary judgment must initially show the absence of a genuine issue of material fact. Union State Bank v. Woell, 434 N.W.2d 712 (N.D.1989). Once the movant has met that initial burden, the party opposing the motion may not rest on mere allegations or denials in pleadings, but must present competent admissible evidence by affidavit or other comparable means to show the existence of a genuine issue of material fact. Weiss, Wright, Paul*927son & Merrick v. Stedman, 507 N.W.2d 901, 903 (N.D.1993).
In Woell, we considered the viability of a tort action for the breach of an obligation of good faith in a commercial context. We held that, assuming the tort existed, summary judgment was proper in that ease, because the party asserting the tort had failed to establish the existence of a contract or duty under the Uniform Commercial Code, to which a good-faith obligation could attach. See also Jerry Harmon Motors, Inc. v. First Nat’l Bank & Trust Co., 472 N.W.2d 748 (N.D.1991); Production Credit Ass’n v. Ista, 451 N.W.2d 118 (N.D.1990).
Similarly, in this case we need not decide whether that tort exists in a commercial context, because, assuming it does, the Walds have presented no evidence by affidavit or otherwise to establish the existence of a contract or duty under the Uniform Commercial Code, to which the good-faith obligation could attach. Security National’s reliance on its legal rights and remedies does not constitute bad faith. We conclude the trial court properly granted summary judgment on the Walds’ bad-faith claim.
Under Section 46, Restatement 2d Torts (1965), the elements of an action for intentional infliction of emotional distress are extreme and outrageous conduct that is intentional or reckless and causes severe emotional distress. Hummel; Swenson v. Northern Crop Insurance, Inc., 498 N.W.2d 174 (N.D.1993); Muchow v. Lindblad, 435 N.W.2d 918 (N.D.1989). The threshold element of extreme and outrageous conduct is narrowly limited to outrageous conduct that exceeds “‘all possible bounds of decency.’” Muchow, 435 N.W.2d at 924 [quoting Restatement 2d Torts § 46, comment d]. In Muchow, 435 N.W.2d at 924, we quoted from comment d:
“‘The cases thus far decided have found liability only where the defendant’s conduct has been extreme and outrageous. It has not been enough that the defendant has acted with an intent which is tortious or even criminal, or that he has intended to inflict emotional distress, or even that his conduct has been characterized by “malice,” or a degree of aggravation which would entitle the plaintiff to punitive damages for another tort. Liability has been found only where the conduct has been so outrageous in character, and so extreme in degree, as to go beyond all possible bounds of decency, and to be regarded as atrocious, and utterly intolerable in a civilized community. Generally, the case is one in which the recitation of the facts to an average member of the community would arouse his resentment against the actor, and lead him to exclaim, “Outrageous!” ’ ”
In determining whether an actor’s conduct is extreme and outrageous, an actor is “never liable ... where he has done no more than to insist upon his legal rights in a permissible way, even though he is well aware that such insistence is certain to cause emotional distress.” Restatement 2d Torts § 46, comment g. See McCormick v. AT & T Technologies, Inc., 934 F.2d 531 (4th Cir.1991), cert. denied, 502 U.S. 1048, 112 S.Ct. 912, 116 L.Ed.2d 813 (1992); Hayes v. Bakery Confectionery & Tobacco Workers, 753 F.Supp. 209 (W.D.Ky.1989), affirmed, 914 F.2d 256 (6th Cir.1990); Therrien v. United Air Lines, Inc., 670 F.Supp. 1517 (D.Colo.1987); Neff v. St. Paul Fire & Marine Ins. Co., 304 Ark. 18, 799 S.W.2d 795 (1990); State Farm Automobile Ins. Co. v. Morris, 612 So.2d 440 (Ala.1993).
The court initially determines if a defendant’s conduct may reasonably be regarded as extreme and outrageous. Swenson; Muchow. If reasonable people could differ, a plaintiff is entitled to have the trier-of-fact determine whether the conduct is sufficiently extreme and outrageous to result in liability. Swenson; Muchow.
In Muchow we concluded that, given a police officer’s prior experience with the decedent, his investigation of the circumstances of her death and statements to the decedent’s family, while inconsiderate and unkind, did not rise to the level of extreme and *928outrageous conduct. We held that reasonable persons could not disagree that the police officer’s conduct was not extreme and outrageous, and we sustained summary judgment dismissal of the action against the police officer.
In Swenson, a majority of this court concluded that allegations that an employer and its agent were guilty of employment discrimination reasonably could be regarded as extreme and outrageous conduct. In that ease there were allegations that a supervisor had engaged in gender discrimination against a subordinate employee who the supervisor knew was suffering from a deteriorating emotional condition. The majority held that, under those circumstances, reasonable persons could disagree about whether the defendants’ conduct was extreme and outrageous and reversed a summary judgment dismissal.
In this case, the allegations against Security National do not rise to the level of extreme and outrageous conduct. Security National was under no obligation to release to the Walds the insurance proceeds from the combine, and its conduct reasonably cannot be regarded as “so extreme in degree” as to be “beyond all possible bounds of decency” or to be “utterly intolerable in a civilized” society. We hold that the court properly granted summary judgment on the Walds’ claim of intentional infliction of emotional distress.
The Walds also contend that the court abused its discretion in denying their motion to file a second amended counterclaim, which, in substance, alleged that Security National had breached a written agreement to subordinate its security interest so the Walds could obtain a loan from the Bank of North Dakota. They argue that the second amended counterclaim was based upon information discovered during the course of this action. Security National responds that the court did not abuse its discretion in refusing to allow the Walds to file a second amended counterclaim, because their request was not timely.
In denying the Walds’ motion, the court said, in part:
“Well, I’m going to deny the motion to amend. In denying the motion to amend, I’m not making any statement one way or the other as to the validity of the claims, but it seems to me that if there are some valid claims, that could be handled in some separate action.”
A decision on a motion to amend a pleading under N.D.R.Civ.P. 15(a) is addressed to the sound discretion of the trial court and will not be overturned on appeal absent an abuse of discretion. First Interstate Bank of Fargo, N.A. v. Rebarchek, 511 N.W.2d 235 (N.D.1994). A court abuses its discretion if it acts in an arbitrary, unreasonable, or unconscionable manner, or if it misinterprets or misapplies the law. Knudson v. Director, North Dakota Dep’t of Transportation, 530 N.W.2d 313 (N.D.1995).
In this case, part of the court’s rationale for denying the Walds’ motion to file a second amended counterclaim was that those claims “could be handled in some separate action.” However, under N.D.R.Civ.P. 13(a), if a claim arises out of the same “transaction or occurrence that is the subject matter of the opposing party’s claim,” it is a compulsory counterclaim and must be pleaded in response to the opposing party’s pleading. Klem v. Greenwood, 450 N.W.2d 738 (N.D.1990); Dangerud v. Dobesh, 353 N.W.2d 328 (N.D.1984). The failure to plead a compulsory counterclaim in response to the opposing party’s pleading precludes that counterclaim from being raised in a subsequent action. Klem; Dangerud. We have construed “transaction or occurrence” broadly to avoid a multiplicity of suits and to mean a claim that is “logically related” to the opposing party’s claim. Leo Lumber Co. v. Williams, 191 N.W.2d 573, 576 (N.D.1971).
Here, the Walds’ second amended counterclaim alleges that Security National breached a written agreement to subordinate its security interest so the Walds could obtain a loan from another lender. That counterclaim is “logically related” to Security National’s pleading. Their counter*929claim is compulsory and must be raised in response to Security National’s pleading or they are precluded from raising it in a subsequent action. In denying the Walds’ motion, the trial court did not consider whether their second amended counterclaim was a compulsory counterclaim. To the extent the court’s rationale was that those claims “could be handled in some separate action,” the court misapplied the law on compulsory counterclaims. Although the court also said the Walds’ motion was not timely, we decline to speculate on the effect of its misapplication of the compulsory-counterclaim law on its ultimate denial of the Walds’ motion to amend their counterclaim. We conclude the court abused its discretion in misapplying the law on compulsory counterclaims, and we remand for reconsideration of the Walds’ motion to file a second amended counterclaim.
We affirm the summary judgment dismissal of the Walds’ first amended counterclaim. We reverse the order denying their motion to file a second amended counterclaim and remand for further proceedings consistent with this opinion.
MESCHKE, LEVINE and NEUMANN, JJ., concur.. That action is pending before a different judge in the district.