coding

Well coding in Western Canada petroleum regulation refers to the standardized classification system used by provincial energy regulators to categorize each wellbore by its intended purpose, production type, and operational status, with unique alphanumeric codes assigned at the time of well licensing that govern which reporting requirements, royalty regimes, measurement standards, and abandonment obligations apply to the well throughout its productive life; in Alberta, the Alberta Energy Regulator assigns well codes under the Petrinex well classification system that identifies each well as an oil well, gas well, water source well, disposal well, observation well, or injection well (among other categories), with sub-codes specifying whether the well is a conventional oil producer, a thermal recovery producer (SAGD or CSS), a CBM producer, or an oil sands producer, because the regulatory framework, production measurement obligations, and royalty calculation method differ fundamentally between these categories under the Alberta Royalty Framework and AER Directive 007 (Volumetric and Infrastructure Requirements for Oil and Gas Wells). In Saskatchewan, well coding under the Ministry of Energy and Resources (MER) Integrated Resource Information System (IRIS) uses a parallel classification that distinguishes oil wells, gas wells, water source wells, and disposal wells, with additional coded attributes for enhanced recovery injection wells (waterflood, polymer flood, miscible flood, steam) and coalbed methane wells, each code combination triggering a specific set of monthly production reporting fields, measurement facility requirements, and conservation commitments under Saskatchewan's Oil and Gas Conservation Act. The practical importance of accurate well coding in WCSB operations extends to royalty calculation: an Alberta well incorrectly coded as a gas well when it produces predominantly oil will have its production reported through gas measurement and royalty calculation pathways that apply gas royalty rates and measurement standards (meter factors, Boyle's Law correction for gas volume) rather than oil royalty rates and oil measurement standards (run ticket volumes, BS&W correction), creating systematic royalty discrepancies that AER enforcement actions under Directive 007 and Directive 017 address through mandatory well recode applications and retroactive royalty adjustments; WCSB operators discover coding errors most commonly during AER compliance reviews, corporate acquisitions due diligence, and Petrinex production submission audits.

  • AER Petrinex well type codes and their regulatory implications for WCSB Alberta oil and gas operations: The Petrinex system used by AER assigns each Alberta wellbore a Well Type code (W-type) and a Facility Type code (F-type) that together determine which monthly production submission form, measurement standard, and royalty calculation routine applies to the well's production. The primary W-types relevant to WCSB conventional drilling include W-type 1 (oil well, subject to Alberta Royalty Framework oil royalty rates and AER Directive 007 oil measurement requirements including calibrated lease automatic custody transfer meters or run tickets), W-type 2 (gas well, subject to gas royalty rates and AER Directive 017 gas measurement requirements including orifice or ultrasonic meters with daily volume reporting), and W-type 4 (injection well, subject to injection volume reporting under Directive 056 but exempt from royalty on injected volumes). Oil sands wells use W-type 11 (oil sands mining) or W-type 12 (in situ oil sands, including SAGD and CSS), which trigger the Oil Sands Royalty Regulation framework rather than the conventional Alberta Royalty Framework, applying different royalty rate structures and payout calculations. Misclassification between W-type 1 and W-type 12 in a Cold Lake or Peace River in-situ oil sands program can result in the operator paying the lower conventional royalty rate rather than the higher post-payout oil sands royalty, representing a material financial liability if discovered during an AER royalty audit.
  • Well status codes and their effect on WCSB regulatory obligations and liability management: In addition to well type coding, AER and MER assign operational status codes to each wellbore that determine what ongoing monitoring, reporting, and maintenance obligations the licensee must fulfill. Alberta status codes include Active (producing or injection well with current regulatory approval, subject to all production and injection reporting requirements), Suspended (temporarily shut-in with AER approval, exempt from monthly production reporting but subject to annual well status update and wellbore integrity monitoring under AER Directive 013), Abandoned (wellbore permanently plugged and surface reclaimed, released from ongoing reporting upon AER approval of the abandonment and reclamation certificate), and Orphan (wells whose licensees are insolvent, transferred to the Orphan Well Association for abandonment funded by industry levy). Incorrect status coding of a suspended WCSB well as active results in phantom production entries in Petrinex, inflating reported provincial production volumes and potentially triggering AER compliance inquiries when the physical well shows no meter readings at a facility inspection. Failure to update a well from suspended to abandoned status after completing abandonment operations delays release of the licensee's security deposit held by AER under the Licensee Liability Rating (LLR) program, a practical financial incentive for timely and accurate status coding in WCSB well abandonment programs.
  • Coding requirements for enhanced recovery injection wells in WCSB waterflood and EOR programs: Injection wells in WCSB waterflood, polymer flood, miscible flood, and thermal recovery programs require specific injection well codes that identify the injected substance and the recovery scheme, because AER and MER track injected volumes by substance type (water, gas, CO2, polymer solution, steam, solvent) for conservation monitoring, aquifer protection compliance, and enhanced recovery royalty modification calculations. In Alberta, water injection wells for WCSB Cardium and Viking waterflood programs are coded as W-type 4 (injection well), Substance Code W (water), and linked to the approved waterflood scheme license under AER Directive 065 (Resources Applications for Conventional Oil and Gas Reservoirs); steam injection wells in Cold Lake CSS or Athabasca SAGD programs are coded as W-type 4, Substance Code S (steam), and linked to the approved thermal recovery scheme, triggering additional reporting requirements for steam-oil ratio (SOR) monthly monitoring and scheme-level injection-production balance reporting. The Alberta Enhanced Oil Recovery royalty modification program requires that EOR injection wells be correctly coded and linked to an approved EOR scheme before the royalty modification (reduced royalty rate during the incremental production period) can be applied to production from linked producers, making accurate injection well coding a direct financial obligation for WCSB EOR operators.
  • Well recode applications and retroactive royalty correction for WCSB coding errors discovered during audits: When AER or MER identifies a well coding error during a compliance review, facility inspection, or royalty audit, the operator is required to submit a well recode application through Petrinex (Alberta) or IRIS (Saskatchewan) documenting the correct well type, status, and substance codes, and to recalculate and resubmit all affected monthly production and royalty reports from the date the error began. Retroactive royalty corrections resulting from WCSB well coding errors range from minor adjustments (a few thousand dollars for a short-duration miscoding of a small-volume producer) to material liabilities (hundreds of thousands of dollars for a multi-year miscoding of a high-volume oil sands or EOR well that received incorrect royalty rate treatment). AER's compliance monitoring system cross-references Petrinex production submissions against facility license configurations, pipeline connection records, and measurement facility registrations to detect anomalies that may indicate coding errors; automated Petrinex edit checks flag submissions where the coded well type does not match the measurement facility type connected to the well (for example, a W-type 1 oil well connected to a gas measurement facility), prompting operator investigation and recode if the flagged inconsistency is confirmed.
  • Unique well identifier coding and the WCSB Petroleum Registry for cross-provincial well tracking: Every WCSB wellbore drilled in Alberta, British Columbia, and Saskatchewan is assigned a Unique Well Identifier (UWI) under a standardized coding scheme that encodes the well's surface location (Dominion Land Survey township, range, section, legal subdivision, and well sequence number within the LSD), the province (01=AB, 02=SK, 03=BC), and a check digit for error detection; in Alberta, the 16-character UWI format is 100/aa-bb-ccc-ddW5/00 (legal subdivision-section-township-range, meridian W5 for most WCSB Alberta wells). The UWI coding system is administered by the Petroleum Registry of Alberta (PRA) in Alberta and the BC Oil and Gas Commission in British Columbia, with UWIs linked to all AER and BC OGC regulatory records (well licenses, completion reports, production records, abandonment certificates) so that the full regulatory history of any WCSB well can be retrieved by UWI from the provincial well information system. Cross-provincial tracking of WCSB wells straddling the Alberta-Saskatchewan border requires coordination between PRA and MER IRIS, with each province issuing its own UWI under the Lloydminster Operating Agreement between AER and MER.

Well Recode Correcting Oil Sands Miscoding in WCSB Cold Lake CSS Program

During a corporate acquisition due diligence review of a Cold Lake Clearwater Formation CSS thermal recovery operation, the purchasing company's land department identified that 14 producers in a CSS scheme had been coded as W-type 1 (conventional oil wells) rather than W-type 12 (in-situ oil sands) since initial licensing in 2017. The conventional coding had caused these wells' production to be assessed under Alberta Royalty Framework oil rates rather than the Oil Sands Royalty Regulation, resulting in an underpayment of approximately $340,000 in cumulative royalties over 7 production years. The vendor submitted recode applications through Petrinex within 30 days of the due diligence finding, correcting all 14 wells to W-type 12 and resubmitting monthly royalty reports from 2017 onward. AER's royalty audit branch confirmed the retroactive liability at $338,500 including late interest at 3 percent per year on the underpayment. The liability was factored into the acquisition purchase price adjustment, and the corrected well coding was verified through Petrinex edit check confirmation before deal close.

Fast Facts: Well Coding
  • System: AER Petrinex (Alberta) and MER IRIS (Saskatchewan); assigns well type, status, and substance codes governing royalty and reporting
  • Key types: W-type 1 (oil), W-type 2 (gas), W-type 4 (injection), W-type 12 (in-situ oil sands/thermal) under Alberta Royalty Framework
  • Status codes: Active, Suspended, Abandoned; incorrect status triggers phantom production entries or delays LLR security deposit release
  • EOR link: Injection well codes must be linked to approved scheme before royalty modification applies to EOR production in WCSB programs
  • UWI: 16-character Unique Well Identifier encodes DLS location, province, and sequence number; links all regulatory records for any WCSB well
  • Recode: Coding errors require Petrinex recode application + retroactive royalty resubmission; material liability risk in acquisitions due diligence

Petrinex is the Alberta production reporting and royalty submission system where WCSB well codes are assigned and maintained; well type, status, and substance codes determine which royalty calculation routine and measurement reporting requirements apply to each Alberta wellbore. Unique well identifier (UWI) is the standardized 16-character location code assigned to every WCSB wellbore in Alberta, British Columbia, and Saskatchewan; UWIs link all regulatory records including well licenses, production reports, and abandonment certificates in provincial well information systems. Alberta Royalty Framework applies different royalty rate structures based on coded well type; conventional oil (W-type 1), gas (W-type 2), and in-situ oil sands (W-type 12) wells follow distinct royalty calculation methods, making accurate well coding a direct financial obligation for WCSB operators. Licensee Liability Rating (LLR) is the AER security deposit system linked to well status coding; suspended wells accumulate LLR liability released only when correctly coded as abandoned following AER approval of the abandonment and reclamation certificate. Enhanced recovery injection well coding under AER Directive 065 is the prerequisite for royalty modification in WCSB waterflood, polymer flood, and thermal recovery programs; injection wells must be correctly coded and linked to an approved scheme before the reduced royalty rate applies.