BILLING_NMAS_TST_RECVRY_RBF
BILLING_NMAS_TEST_RECVRY_RBF sets out the NSCAS/SRAS Testing Payment recovery data for the posted billing week.
Column Schema
BILLRUNNO
The current Billing RunNo for the week
SQL Type: NUMBER(3,0)
Polars Type: pl.UInt16
This column is mandatory, and a primary key.
Examples:
13, 16
CONTRACTID
The NMAS Contract Id
SQL Type: VARCHAR(10)
Polars Type: pl.Categorical
This column is mandatory, and a primary key.
Examples:
7MYU0SMLKAFFKU29Q@CQMYNR1T7DZT8GAXWGFH4QC1TWRSYM$HM01PU3TBB7W5YWDYQ5WN82Y#931LJ8C
CONTRACTYEAR
AEMO Contract Year number starting in week containing 1 January
SQL Type: NUMBER(4,0)
Polars Type: pl.UInt16
This column is mandatory, and a primary key.
Example: 2026
REGIONID
The region from where the amount is recovered
For more information, see the dedicated documentation page.
The SQL type is VARCHAR(10).
This is actually a factor/enum, with values:
-
QLD1 -
VIC1 -
TAS1 -
NSW1 -
SA1 -
SNOWY1
This column is mandatory, and a primary key.
SERVICE
The type of NSCAS service. Current value values are: - REACTIVE - LOADSHED
SQL Type: VARCHAR(10)
Polars Type: str
This column is mandatory, and a primary key.
Examples:
REACTIVERESTART
WEEKNO
Week no within the contract year. Week no 1 is the week containing 1 January
Warning
There may be 53 weeks in a year, depending on how weeks align to the year start/end.
SQL Type: NUMBER(3,0)
Polars Type: pl.UInt16
This column is mandatory, and a primary key.
Examples:
6, 20
LASTCHANGED
The Last Updated date and time
For more information, see the dedicated documentation page.
SQL Type: DATE
Polars Type: pl.Datetime()
This column is not mandatory.
Example: 2026/08/24 09:31:10
PAYMENT_AMOUNT
The total Testing Payment Amount to recover from all benefitting regions
SQL Type: NUMBER(18,8)
Polars Type: pl.Float64
This column is not mandatory.
Examples:
117762.01, 46497, 358460.11, 178740
RBF
The Benefitting Factor for the RegionId
SQL Type: NUMBER(18,8)
Polars Type: pl.Float64
This column is not mandatory.
Examples:
0, 1
RECOVERY_AMOUNT
The Testing Payment amount to recover from RegionId
SQL Type: NUMBER(18,8)
Polars Type: pl.Float64
This column is not mandatory.
Examples:
-117762.01, 0, -46497, -178740
New Data Timing
Posting of a billing run
Code Examples
Polars
Casting is enums, categoricals etc is not essential, but may speed up parsing.
Swapping int for pl.UInt16, pl.Int32 would also speed up parsing. However some of the datatypes are inferred, so they may be wrong.
This code deduplicates for you. Deduplication is normally only required across multiple months.
This code assumes that all columns are present, which may not be true for older files.
import polars as pl
import polars.selectors as cs
# e.g. "2029/03/15 00:05:00"
dt_s_fmt = "%Y/%m/%d %H:%M:%S"
csv_paths = ["SOMEFILE.CSV", "OTHERFILE.CSV"]
lf = (
pl.concat(
[
pl.scan_csv(
csv_path, # must be unzipped beforehand
skip_rows=1, # skip the header
infer_schema=False, # much faster
)
.filter(cs.by_index(0) == "D") # drop the footer
.select(~cs.by_index(range(4))) # drop metadata columns
for csv_path in csv_paths
],
how="diagonal_relaxed",
)
.with_columns(
pl.col("LASTCHANGED").str.strptime(pl.Datetime, dt_s_fmt),
)
.cast(
{
"BILLRUNNO": int, # or pl.UInt16
"CONTRACTID": pl.Categorical,
"CONTRACTYEAR": int, # or pl.UInt16
"REGIONID": pl.Enum(["QLD1", "VIC1", "TAS1", "NSW1", "SA1", "SNOWY1"]),
"SERVICE": str,
"WEEKNO": int, # or pl.UInt16
"PAYMENT_AMOUNT": pl.Float64,
"RBF": pl.Float64,
"RECOVERY_AMOUNT": pl.Float64,
}
)
# Deduplicate
# We want one row per ['BILLRUNNO', 'CONTRACTID', 'CONTRACTYEAR', 'REGIONID', 'SERVICE', 'WEEKNO']
# Tie-breaker: greatest value of ['LASTCHANGED']
.sort(["LASTCHANGED"], descending=False)
.unique(
subset=[
"BILLRUNNO",
"CONTRACTID",
"CONTRACTYEAR",
"REGIONID",
"SERVICE",
"WEEKNO",
],
keep="last",
)
)
Nemosis
This table is not yet available in Nemosis.
Example File
From PUBLIC_ARCHIVE_BILLING_NMAS_TST_RECVRY_RBF_FILE01_202609010000.zip
| CONTRACTYEAR | WEEKNO | BILLRUNNO | SERVICE | CONTRACTID | REGIONID | RBF | PAYMENT_AMOUNT | RECOVERY_AMOUNT | LASTCHANGED |
| 2026 | 20 | 13 | REACTIVE | FH4QC1TWR | NSW1 | 0 | 59580 | 0 | 2026/09/24 10:01:39 |
| 2026 | 20 | 13 | REACTIVE | FH4QC1TWR | QLD1 | 0 | 59580 | 0 | 2026/09/24 10:01:39 |
| 2026 | 20 | 13 | REACTIVE | FH4QC1TWR | SA1 | 1 | 59580 | -59580 | 2026/09/24 10:01:39 |
| 2026 | 20 | 13 | REACTIVE | FH4QC1TWR | TAS1 | 0 | 59580 | 0 | 2026/09/24 10:01:39 |
| 2026 | 20 | 13 | REACTIVE | FH4QC1TWR | VIC1 | 0 | 59580 | 0 | 2026/09/24 10:01:39 |
| 2026 | 20 | 13 | RESTART | DZT8GAXWG | NSW1 | 0 | 117762.01 | 0 | 2026/09/24 10:01:39 |
| 2026 | 20 | 13 | RESTART | DZT8GAXWG | QLD1 | 0 | 117762.01 | 0 | 2026/09/24 10:01:39 |
| 2026 | 20 | 13 | RESTART | DZT8GAXWG | SA1 | 1 | 117762.01 | -117762.01 | 2026/09/24 10:01:39 |
| 2026 | 20 | 13 | RESTART | DZT8GAXWG | TAS1 | 0 | 117762.01 | 0 | 2026/09/24 10:01:39 |
| 2026 | 20 | 13 | RESTART | DZT8GAXWG | VIC1 | 0 | 117762.01 | 0 | 2026/09/24 10:01:39 |
| 2026 | 6 | 15 | REACTIVE | AFFKU29Q@ | NSW1 | 0 | 46497 | 0 | 2026/08/24 09:31:10 |
| ... |
| C | SETP.WORLD | DVD_BILLING_NMAS_TST_RECVRY_RBF | AEMO | PUBLIC | 2026/10/09 | 15:24:47 | 001791523487562 | MONTHLY_ARCHIVE | 001791523487562 | ||||
| I | BILLING | NMAS_TST_RECVRY_RBF | 1 | CONTRACTYEAR | WEEKNO | BILLRUNNO | SERVICE | CONTRACTID | REGIONID | RBF | PAYMENT_AMOUNT | RECOVERY_AMOUNT | LASTCHANGED |
| D | BILLING | NMAS_TST_RECVRY_RBF | 1 | 2026 | 20 | 13 | REACTIVE | FH4QC1TWR | NSW1 | 0 | 59580 | 0 | 2026/09/24 10:01:39 |
| D | BILLING | NMAS_TST_RECVRY_RBF | 1 | 2026 | 20 | 13 | REACTIVE | FH4QC1TWR | QLD1 | 0 | 59580 | 0 | 2026/09/24 10:01:39 |
| D | BILLING | NMAS_TST_RECVRY_RBF | 1 | 2026 | 20 | 13 | REACTIVE | FH4QC1TWR | SA1 | 1 | 59580 | -59580 | 2026/09/24 10:01:39 |
| D | BILLING | NMAS_TST_RECVRY_RBF | 1 | 2026 | 20 | 13 | REACTIVE | FH4QC1TWR | TAS1 | 0 | 59580 | 0 | 2026/09/24 10:01:39 |
| D | BILLING | NMAS_TST_RECVRY_RBF | 1 | 2026 | 20 | 13 | REACTIVE | FH4QC1TWR | VIC1 | 0 | 59580 | 0 | 2026/09/24 10:01:39 |
| D | BILLING | NMAS_TST_RECVRY_RBF | 1 | 2026 | 20 | 13 | RESTART | DZT8GAXWG | NSW1 | 0 | 117762.01 | 0 | 2026/09/24 10:01:39 |
| D | BILLING | NMAS_TST_RECVRY_RBF | 1 | 2026 | 20 | 13 | RESTART | DZT8GAXWG | QLD1 | 0 | 117762.01 | 0 | 2026/09/24 10:01:39 |
| D | BILLING | NMAS_TST_RECVRY_RBF | 1 | 2026 | 20 | 13 | RESTART | DZT8GAXWG | SA1 | 1 | 117762.01 | -117762.01 | 2026/09/24 10:01:39 |
| D | BILLING | NMAS_TST_RECVRY_RBF | 1 | 2026 | 20 | 13 | RESTART | DZT8GAXWG | TAS1 | 0 | 117762.01 | 0 | 2026/09/24 10:01:39 |
| D | BILLING | NMAS_TST_RECVRY_RBF | 1 | 2026 | 20 | 13 | RESTART | DZT8GAXWG | VIC1 | 0 | 117762.01 | 0 | 2026/09/24 10:01:39 |
| D | BILLING | NMAS_TST_RECVRY_RBF | 1 | 2026 | 6 | 15 | REACTIVE | AFFKU29Q@ | NSW1 | 0 | 46497 | 0 | 2026/08/24 09:31:10 |
| ... | |||||||||||||
| C | END OF REPORT | 58 |
CONTRACTYEAR,WEEKNO,BILLRUNNO,SERVICE,CONTRACTID,REGIONID,RBF,PAYMENT_AMOUNT,RECOVERY_AMOUNT,LASTCHANGED
2026,20,13,REACTIVE,FH4QC1TWR,NSW1,0,59580,0,"2026/09/24 10:01:39"
2026,20,13,REACTIVE,FH4QC1TWR,QLD1,0,59580,0,"2026/09/24 10:01:39"
2026,20,13,REACTIVE,FH4QC1TWR,SA1,1,59580,-59580,"2026/09/24 10:01:39"
2026,20,13,REACTIVE,FH4QC1TWR,TAS1,0,59580,0,"2026/09/24 10:01:39"
2026,20,13,REACTIVE,FH4QC1TWR,VIC1,0,59580,0,"2026/09/24 10:01:39"
2026,20,13,RESTART,DZT8GAXWG,NSW1,0,117762.01,0,"2026/09/24 10:01:39"
2026,20,13,RESTART,DZT8GAXWG,QLD1,0,117762.01,0,"2026/09/24 10:01:39"
2026,20,13,RESTART,DZT8GAXWG,SA1,1,117762.01,-117762.01,"2026/09/24 10:01:39"
2026,20,13,RESTART,DZT8GAXWG,TAS1,0,117762.01,0,"2026/09/24 10:01:39"
2026,20,13,RESTART,DZT8GAXWG,VIC1,0,117762.01,0,"2026/09/24 10:01:39"
2026,6,15,REACTIVE,AFFKU29Q@,NSW1,0,46497,0,"2026/08/24 09:31:10"
...
C,SETP.WORLD,DVD_BILLING_NMAS_TST_RECVRY_RBF,AEMO,PUBLIC,2026/10/09,15:24:47,001791523487562,MONTHLY_ARCHIVE,001791523487562
I,BILLING,NMAS_TST_RECVRY_RBF,1,CONTRACTYEAR,WEEKNO,BILLRUNNO,SERVICE,CONTRACTID,REGIONID,RBF,PAYMENT_AMOUNT,RECOVERY_AMOUNT,LASTCHANGED
D,BILLING,NMAS_TST_RECVRY_RBF,1,2026,20,13,REACTIVE,FH4QC1TWR,NSW1,0,59580,0,"2026/09/24 10:01:39"
D,BILLING,NMAS_TST_RECVRY_RBF,1,2026,20,13,REACTIVE,FH4QC1TWR,QLD1,0,59580,0,"2026/09/24 10:01:39"
D,BILLING,NMAS_TST_RECVRY_RBF,1,2026,20,13,REACTIVE,FH4QC1TWR,SA1,1,59580,-59580,"2026/09/24 10:01:39"
D,BILLING,NMAS_TST_RECVRY_RBF,1,2026,20,13,REACTIVE,FH4QC1TWR,TAS1,0,59580,0,"2026/09/24 10:01:39"
D,BILLING,NMAS_TST_RECVRY_RBF,1,2026,20,13,REACTIVE,FH4QC1TWR,VIC1,0,59580,0,"2026/09/24 10:01:39"
D,BILLING,NMAS_TST_RECVRY_RBF,1,2026,20,13,RESTART,DZT8GAXWG,NSW1,0,117762.01,0,"2026/09/24 10:01:39"
D,BILLING,NMAS_TST_RECVRY_RBF,1,2026,20,13,RESTART,DZT8GAXWG,QLD1,0,117762.01,0,"2026/09/24 10:01:39"
D,BILLING,NMAS_TST_RECVRY_RBF,1,2026,20,13,RESTART,DZT8GAXWG,SA1,1,117762.01,-117762.01,"2026/09/24 10:01:39"
D,BILLING,NMAS_TST_RECVRY_RBF,1,2026,20,13,RESTART,DZT8GAXWG,TAS1,0,117762.01,0,"2026/09/24 10:01:39"
D,BILLING,NMAS_TST_RECVRY_RBF,1,2026,20,13,RESTART,DZT8GAXWG,VIC1,0,117762.01,0,"2026/09/24 10:01:39"
D,BILLING,NMAS_TST_RECVRY_RBF,1,2026,6,15,REACTIVE,AFFKU29Q@,NSW1,0,46497,0,"2026/08/24 09:31:10"
...
C,"END OF REPORT",58
Availability
Visibility: Public
This table is in the public monthly MMSDM archive.
I have collated the list of all those files into one place, in this CSV metadata file. (Columns year, month, url, compressed_size in bytes).
The earliest available data is month 10 of 2024. The most recent available data is month 9 of 2026.
Warning
There are some months with no files.
Data Size
Each year of data is approximately 11 KB when zipped, 114 KB as unzipped CSV.
Deduplication and PDR Loader Configuration
The primary keys are:
The transaction type is "insert", which means that you will usually not see duplicate data. If you do, you can deduplicate based on the primary keys, without sorting first. Rows from different files with the same primary keys should have the same values.
| Report Name | Report Subtype | Version |
|---|---|---|
| BILLING | NMAS_TST_RECVRY_RBF | 1 |
This means that the CSV files start with metadata columns:
Indexes
Links
This page as JSON (schema documented here, but may change)
Download a JSON Schema specification for this table.
Official AEMO schema documentation
Other Information
Package: BILLING_RUN