Opinion by Justice FITZGERALD.
Relator, City of Dallas, filed this petition for writ of mandamus requesting that the
Real parties in interest, Buckley Oil and Rosebud Holding, L.L.C., own three contiguous lots near downtown Dallas where they operate a petrochemical business that stores flammable and combustible liquids in above-ground tanks. They have operated their business on this land since 1957. In 2011, the City's building official revoked the certificate of occupancy for the facility for one of the lots, denied certificates of occupancy for the other two lots, and required the land owners to cease operating immediately. The land owners appealed the decision to the City's board of adjustment, which upheld the building official's decision.
In June 2012, the land owners filed suit against the City, the City's acting building official, and the City's assistant fire marshal. The land owners alleged in their petition that in reviewing and approving any building permits for the property, chapter 245 of the Texas Local Government Code required the city to apply only ordinances in effect at the time the land owners first submitted a permit request. They argued that because the City was attempting to enforce ordinances enacted after the first permit for the project on the property was issued in 1957, the ordinances the City was attempting to enforce could not be applied to the land owners' business. They sought, among other things, to enjoin the enforcement of later enacted ordinances and sought a declaration that the City's fire code, building codes and other ordinances adopted after the initial permits for the project were granted could not be applied to the property. The City answered, asserting the affirmative defense that "Section 245.004 provides certain exemptions to the application of Chapter 245, including, but not limited to, uniform building and fire codes, municipal zoning regulations, and regulations to prevent the imminent destruction of property or injury to persons." The land owners subsequently amended their pleadings to seek a writ of certiorari finding that the action of the board of adjustment was improper and not authorized by the law or facts.
The trial court signed an agreed amended level 2 scheduling order on April 22, 2013, setting the trial date for September 22, 2013. The agreed amended scheduling provided: "The parties may, by signed written agreement, alter the Pretrial deadlines." Under this provision of the scheduling order, the parties agreed to amend the scheduling order to close discovery on August 9, 2013, to extend the deadline for amending pleadings to August 12, 2013, and to extend the deadline for filing dispositive motions to August 12, 2013.
Pursuant to the agreed scheduling order, the parties conducted extensive deposition discovery during the spring and summer of 2013, including deposing fifteen fact and expert witnesses regarding compliance with the current fire code. The trial court noted and the mandamus record shows that during the course of discovery, the land owners were consistently careful to determine whether witnesses for the City — whether fact or expert witnesses — asserted violations of any prior version of the fire code or whether the experts had developed opinions regarding any prior versions of the fire code. In addition, the land owners sent interrogatories to the City to clarify which versions of the fire code the City contended applied to the case. The City answered, "The Dallas
Following the completion of discovery, both the City and the landowners filed amended pleadings on August 12, 2013 — which was the last day to file amended pleadings under the agreed scheduling order. In its third amended answer and counterclaim filed that day, the City increased the number of violations of the 2006 fire code it asserted from 38 violations to 128 violations, but the City did not at that point assert any violations of any prior version of the fire code. The land owners also filed a motion for partial summary judgment on that date, requesting that the trial court grant summary judgment on the City's counterclaim in whole or in part, grant judgment as a matter of law on the land owners' claim for declaratory judgment, and order that the City could not introduce evidence at trial or complain that the property did not comply with ordinances, regulations, or statutes enacted after 1957. In response to the land owners' motion for summary judgment, the City argued that the property violated "several provisions" of the 1948 fire code, which was the version of the fire code in effect on the date the land owners first submitted a permit request. In support of its argument that the property violated several provisions of the 1948 fire code, the City cited two provisions of that code, but once again the City did not at that time seek leave to amend its counterclaim to assert any such violations.
Although the scheduling order had initially designated September 22, 2013 as the trial date for the entire case, the trial court determined that it would bifurcate the case, beginning the trial of the case on September 23, 2013 with a determination of the issues involved in the portion of the land owners' petition seeking a writ of certiorari compelling the building official to grant or reinstate the relevant certificates of occupancy. The trial court's proceedings in connection with the writ of certiorari lasted four days. The corporate representative and an expert witness for the land owners testified that the land owners had appropriate permits issued by the City for the tanks installed on the property at the time the tanks were installed. At various points during the four days the trial court devoted to this initial portion of the trial, the trial judge made clear that she was still considering which fire code applied to the property, requested that the parties provide her with information regarding the text of the fire codes at various points in the past, and suggested that the City might wish to consider adding allegations or causes of actions to its pleadings regarding violations of prior versions of the fire code. The City continued to assert that only the current version of the fire code applied, did not at that time attempt to amend its pleadings or seek a trial amendment to assert violations of the 1948 fire code, and adduced no testimony regarding whether or not the facility complied with the 1948 fire code.
On October 18, 2013, roughly three weeks following completion of the portion of the trial that involved the writ of certiorari, but while the trial court's decision on the issues raised by the certiorari trial was still pending, the land owners amended their motion for partial summary judgment
On November 8, 2013, seven days prior to the hearing on the motion for partial summary judgment, without seeking leave from the trial court, the City attempted to file its fourth amended answer and counterclaim in which, for the first time, it asserted thirty-seven violations of the 1948 fire code. The land owners moved to strike the fourth amended answer and counterclaim as untimely on November 13, 2014. The next day, despite having responded to the amended motion for partial summary judgment without objecting on the basis of timeliness, the City moved to strike as untimely the land owners' amended motion for partial summary judgment.
By written order dated November 15, 2013, following a hearing, the trial court granted the land owners' motion to strike the City's amended answer and counterclaim.
On November 21, 2013, following rendition of the trial court's judgment on the portion of the land owners' pleadings seeking a writ of certiorari, the City filed a motion for leave to file its fourth amended answer and counterclaim. The trial court heard the land owners' motion for partial summary judgment and the City's motion for leave to file its fourth amended answer and counterclaim on December 5, 2013. After entertaining minimal argument on the motion for leave to file the City's fourth amended counterclaim, the trial court orally denied the City's motion as untimely.
We begin by noting that the City's complaint regarding denial of leave to amend arises not in an ordinary appeal, but rather by writ of mandamus. Unlike appeal, which is a matter of right, mandamus is an extraordinary remedy, intended to be available in only limited circumstances, not issued as a matter of right, but rather at the discretion of the court.
As set forth by the supreme court, these factors are conjunctive and while a complete absence of one factor may not necessarily warrant denial of mandamus relief, the presence of each of the factors unquestionably gives greater weight to a petition for writ of mandamus. Although in any case in which a trial court has committed error that might result in reversal on appeal, it could be argued that the parties and the public should be spared the time and expense of awaiting correction of the error on appeal, to conclude that mandamus review is available in any situation where a trial court may have committed reversible error would be to fundamentally alter our system of trial and appeal. As the supreme court has noted, "[a]ppellate courts cannot afford to grant interlocutory review of every claim that a trial court has made a pre-trial mistake."
Thus, the supreme court has counseled that a party is not entitled to mandamus relief upon a simple showing that it will be subject to delay, inconvenience or expense if it is required to await correction of the trial court's error on appeal.
In cases such as this one, where discovery is complete, the trial court has conducted a significant portion of the trial, disposing of a substantial portion of case as a result, and only few substantive issues remain pending, mandamus review of interlocutory trial court rulings may actually defeat the goal of judicial economy and efficient resolution of disputes.
This conclusion, that mandamus relief is not always available from denials of leave to amend, is in harmony with the general standards governing the determination of motions for leave to amend. A party generally has a right to amend its pleadings freely.
The standards for determining whether a pleading amendment must be allowed reflect this deference to a trial court's right to manage its docket. A trial court must allow a party to amend its pleadings unless the opposing party presents evidence of surprise or prejudice or the trial court finds the amendment is prejudicial on its face and would unnecessarily delay the trial.
In contrast, an amendment that is of a "formal, procedural nature" typically will not result in surprise or prejudice, and thus a need to allow additional time for trial preparation, and should be allowed in most circumstances.
The City argues that both its original claims under the current fire code and its new claims of violations of the older fire code are based on the same set of facts and events that are the basis of the original pleading, and that both sets of claims arise under chapter 54 of the local government code; it is only the editions of the underlying fire codes that have changed. The City contends that all of the violations it sought to assert violate similar or identical provisions in the 1948 fire code and the current fire code. The land owners demonstrated in the trial court, however, that the definitions and terminology of the new and old fire codes vary significantly, such that the evidence required to prove a violation of the 1948 fire code and the evidence required to prove a violation of the current fire code would be substantially different. Specifically, the landowners noted that there are differences in the 1948 and current fire codes with respect to, among other things, the types of tanks that need permits, the spacing requirements and which sorts of tanks those requirements apply to, the diking requirements, the types of supports required for tanks, whether riveted tanks are permitted, the manner in which combustible liquids are addressed, how tanks are to be vented, and whether leak testing is required.
Prior to the attempted amendment of the City's counterclaim, the nature of the City's pleadings simply required the landowners to demonstrate that the City was attempting to apply an inapplicable set of regulations to their property. With the amendment, the landowners would be required to prove that their facility did, in fact, comply with the 1948 fire code. The evidentiary burdens for these two defensive strategies are significantly different. At an earlier point in the case, requiring the landowners to develop such a defense would not have been prejudicial.
The City further argues that the real parties could have anticipated the amended pleading because it was real parties who first asserted the application of the 1957 fire code and because the trial judge consistently expressed doubt whether the current fire code could be applied in the case. Throughout the litigation, the City took the position that only the current, more restrictive fire code is applicable in this case. The parties took fifteen fact and expert witness depositions and conducted all discovery on this basis. During discovery and the writ of certiorari proceedings, the land owners were careful to determine whether the City's witnesses were testifying with regard to anything other than compliance with the current fire code. As the trial court noted, "the irony is that the plaintiff has consistently checked to be sure the City wasn't changing their position about the fire code they wanted to apply." The land owner's discovery of the City's position in the case has been restricted to the City's claims with regard to the current fire code.
Finally, the City argues that the trial court's order could not be premised on the likelihood that trial would be delayed as a result of the necessity for additional discovery because at the time the City filed its motion for leave to amend, there was no pending trial setting. This Court has previously rejected such arguments. The mere fact that a trial setting has come and gone does not prevent a trial court from enforcing other deadlines in its scheduling orders that are not calculated based on the trial setting.
The City also argues that the trial court has not treated the parties consistently and that in failing to do so, the trial court has abused its discretion. "Bias by an adjudicator is not lightly established" and "judicial rulings almost never constitute a valid basis for a bias or partiality challenge."
The City points to two instances that it contends show that the trial judge was not even-handed in its treatment of the parties. First, it argues that the trial judge refused to strike the plaintiff's amended motion for summary judgment even though the amendment was made after the deadline for filing dispositive motions, but refused to allow the City's late-filed amendment of its counterclaim. The amendments to the motion for summary judgment and the proposed amendments to the City's counterclaim were not of similar magnitude to the case. As initially filed, the motion for summary judgment had argued that prior versions of the fire code applied under chapter 245 of the Texas Local Government Code and that there was no distinct hazard to life or property or threat of imminent destruction of property or injury to persons as defined by chapter 245. The amended motion for summary judgment argued that in addition to the bases cited in the timely filed motion for summary judgment, the City's ordinances also prevented application of the current fire code The amended motion for summary judgment also added evidence on attorney's fees. It is not clear from the record whether the trial court considered the amendments to the motion for summary judgment in making its ruling, or whether it ultimately declined to consider the amendments to the motion for summary judgment on the ground that they
The City also argues that the trial court's order allowing the plaintiffs to conduct late discovery to determine whether the City orchestrated increased regulatory attention to the facility shows that the trial court has not behaved in an unbiased fashion. After the trial court ruling on the motion for partial summary judgment, it became clear that the City must demonstrate that the facility was a distinct hazard to life or property or threatened imminent destruction of property or injury to persons to allow the application of the current fire code. Shortly thereafter, the facility became the subject of an extensive inspection by the Occupational Safety and Health Administration that extended roughly two weeks and required the production of 3,000 documents. The land owners asserted to the trial court that they had never before been subjected to such an extensive investigation and requested discovery to determine whether the City had instigated this attention in an attempt to "gin up" evidence that the facility was a distinct hazard to life or property or threatened imminent destruction of property or injury to persons.
At the time of the hearing, the information available to the plaintiffs showed that one of the attorneys representing the City in the case had in fact been in contact with OSHA. When asked by the trial court whether it had instigated those regulatory contacts, the City stated, "We are not going to respond," and argued that the attorney's contact with OSHA was work product because she was "getting ready for trial." The trial court disagreed, stating that "this has nothing to do with getting ready for this case," and ordered the deposition of the attorney, allowing her to assert privilege as necessary. The trial court's allowance of this discovery on this subject outside of the period provided by the scheduling order was not improper because the conduct giving rise to the need for discovery had not occurred until after the discovery deadline had passed. The trial court did not abuse its discretion in allowing that deposition given the circumstances.
Mandamus is an extraordinary remedy that is available only in limited circumstances.
The trial court further noted: