Skip to content

GENCONSET

GENCONSET sets out generic constraint sets that are invoked and revoked, and may contain many generic constraints (GENCONDATA).

GENCONSET is public data, and is available to all participants.

Source

GENCONSET updates as sets are updated by AEMO.

Column Schema

EFFECTIVEDATE

Date this record becomes effective

SQL Type: DATE Polars Type: pl.Date()

This column is mandatory, and a primary key.

Example: 2026/09/01 00:00:00

Note that AEMO represents dates as datetimes with a midnight time component.

GENCONID

Generic Contraint ID

SQL Type: VARCHAR2(20) Polars Type: str

This column is mandatory, and a primary key.

Examples:

  • #DRYCGT1_D_E
  • #DRYCGT2_D_E
  • #R036713_001_RAMP_F
  • #R036713_001_RAMP_V
  • #R036714_001_RAMP_F
  • #R036714_001_RAMP_V
  • #R036715_001_RAMP_F
  • #R036715_001_RAMP_V
  • #R036715_002_RAMP_F
  • #R036715_002_RAMP_V

GENCONSETID

Unique ID for the Constraint Set

SQL Type: VARCHAR2(20) Polars Type: str

This column is mandatory, and a primary key.

Examples:

  • #DRYCGT1_DE
  • #DRYCGT2_DE
  • #R036713_RAMP
  • #R036714_RAMP
  • #R036715_RAMP
  • #R036716_RAMP
  • #R036717_RAMP
  • #R036718_RAMP
  • #R036719_RAMP
  • #R036720_RAMP

VERSIONNO

Version no of the record for the given effective date

SQL Type: NUMBER(3,0) Polars Type: pl.UInt16

This column is mandatory, and a primary key.

Example: 1

GENCONEFFDATE

Since market start in 1998 these fields have not been used and any data that has been populated in the fields should be ignored

SQL Type: DATE Polars Type: pl.Date()

This column is not mandatory.

Example: 2026/09/01 00:00:00

Note that AEMO represents dates as datetimes with a midnight time component.

GENCONVERSIONNO

Since market start in 1998 these fields have not been used and any data that has been populated in the fields should be ignored

SQL Type: NUMBER(3,0) Polars Type: pl.Int16

This column is not mandatory.

Example: 1

LASTCHANGED

Last date and time record changed

For more information, see the dedicated documentation page.

SQL Type: DATE Polars Type: pl.Datetime()

This column is not mandatory.

Example: 2026/09/01 02:06:54

New Data Timing

When updated by AEMO

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"

# Dates are represented as datetimes at midnight

d_fmt = "%Y/%m/%d 00:00:00"

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),
        pl.col("EFFECTIVEDATE", "GENCONEFFDATE").str.strptime(pl.Date, d_fmt),
    )
    .cast(
        {
            "EFFECTIVEDATE": pl.Date(),
            "GENCONID": str,
            "GENCONSETID": str,
            "VERSIONNO": int,  # or pl.UInt16
            "GENCONEFFDATE": pl.Date(),
            "GENCONVERSIONNO": int,  # or pl.Int16
        }
    )
    # Deduplicate
    # We want one row per ['EFFECTIVEDATE', 'GENCONID', 'GENCONSETID', 'VERSIONNO']
    # Tie-breaker: greatest value of ['LASTCHANGED']
    .sort(["LASTCHANGED"], descending=False)
    .unique(
        subset=["EFFECTIVEDATE", "GENCONID", "GENCONSETID", "VERSIONNO"], keep="last"
    )
)

Nemosis

This table is not yet available in Nemosis.

Example File

From PUBLIC_ARCHIVE_GENCONSET_FILE01_202609010000.zip

GENCONSETIDEFFECTIVEDATEVERSIONNOGENCONIDGENCONEFFDATEGENCONVERSIONNOLASTCHANGED
#R036713_RAMP2026/09/01 00:00:001#R036713_001_RAMP_F2026/09/01 00:00:0012026/09/01 02:06:54
#R036713_RAMP2026/09/01 00:00:001#R036713_001_RAMP_V2026/09/01 00:00:0012026/09/01 02:06:54
#R036714_RAMP2026/09/01 00:00:001#R036714_001_RAMP_F2026/09/01 03:10:34
#R036714_RAMP2026/09/01 00:00:001#R036714_001_RAMP_V2026/09/01 03:10:34
#R036715_RAMP2026/09/01 00:00:001#R036715_001_RAMP_F2026/09/01 03:10:57
#R036715_RAMP2026/09/01 00:00:001#R036715_001_RAMP_V2026/09/01 03:10:57
#R036715_RAMP2026/09/01 00:00:001#R036715_002_RAMP_V2026/09/01 03:10:57
#R036715_RAMP2026/09/01 00:00:001#R036715_002_RAMP_F2026/09/01 03:10:58
#R036715_RAMP2026/09/01 00:00:001#R036715_003_RAMP_F2026/09/01 03:10:58
#R036715_RAMP2026/09/01 00:00:001#R036715_003_RAMP_V2026/09/01 03:10:58
#R036716_RAMP2026/09/01 00:00:001#R036716_001_RAMP_V2026/09/01 07:14:03
...

CSETP.WORLDDVD_GENCONSETAEMOPUBLIC2026/10/0915:36:38001791524198090MONTHLY_ARCHIVE001791524198090
IGENCONSETNULL1GENCONSETIDEFFECTIVEDATEVERSIONNOGENCONIDGENCONEFFDATEGENCONVERSIONNOLASTCHANGED
DGENCONSETNULL1#R036713_RAMP2026/09/01 00:00:001#R036713_001_RAMP_F2026/09/01 00:00:0012026/09/01 02:06:54
DGENCONSETNULL1#R036713_RAMP2026/09/01 00:00:001#R036713_001_RAMP_V2026/09/01 00:00:0012026/09/01 02:06:54
DGENCONSETNULL1#R036714_RAMP2026/09/01 00:00:001#R036714_001_RAMP_F2026/09/01 03:10:34
DGENCONSETNULL1#R036714_RAMP2026/09/01 00:00:001#R036714_001_RAMP_V2026/09/01 03:10:34
DGENCONSETNULL1#R036715_RAMP2026/09/01 00:00:001#R036715_001_RAMP_F2026/09/01 03:10:57
DGENCONSETNULL1#R036715_RAMP2026/09/01 00:00:001#R036715_001_RAMP_V2026/09/01 03:10:57
DGENCONSETNULL1#R036715_RAMP2026/09/01 00:00:001#R036715_002_RAMP_V2026/09/01 03:10:57
DGENCONSETNULL1#R036715_RAMP2026/09/01 00:00:001#R036715_002_RAMP_F2026/09/01 03:10:58
DGENCONSETNULL1#R036715_RAMP2026/09/01 00:00:001#R036715_003_RAMP_F2026/09/01 03:10:58
DGENCONSETNULL1#R036715_RAMP2026/09/01 00:00:001#R036715_003_RAMP_V2026/09/01 03:10:58
DGENCONSETNULL1#R036716_RAMP2026/09/01 00:00:001#R036716_001_RAMP_V2026/09/01 07:14:03
...
CEND OF REPORT1003

GENCONSETID,EFFECTIVEDATE,VERSIONNO,GENCONID,GENCONEFFDATE,GENCONVERSIONNO,LASTCHANGED
#R036713_RAMP,"2026/09/01 00:00:00",1,#R036713_001_RAMP_F,"2026/09/01 00:00:00",1,"2026/09/01 02:06:54"
#R036713_RAMP,"2026/09/01 00:00:00",1,#R036713_001_RAMP_V,"2026/09/01 00:00:00",1,"2026/09/01 02:06:54"
#R036714_RAMP,"2026/09/01 00:00:00",1,#R036714_001_RAMP_F,,,"2026/09/01 03:10:34"
#R036714_RAMP,"2026/09/01 00:00:00",1,#R036714_001_RAMP_V,,,"2026/09/01 03:10:34"
#R036715_RAMP,"2026/09/01 00:00:00",1,#R036715_001_RAMP_F,,,"2026/09/01 03:10:57"
#R036715_RAMP,"2026/09/01 00:00:00",1,#R036715_001_RAMP_V,,,"2026/09/01 03:10:57"
#R036715_RAMP,"2026/09/01 00:00:00",1,#R036715_002_RAMP_V,,,"2026/09/01 03:10:57"
#R036715_RAMP,"2026/09/01 00:00:00",1,#R036715_002_RAMP_F,,,"2026/09/01 03:10:58"
#R036715_RAMP,"2026/09/01 00:00:00",1,#R036715_003_RAMP_F,,,"2026/09/01 03:10:58"
#R036715_RAMP,"2026/09/01 00:00:00",1,#R036715_003_RAMP_V,,,"2026/09/01 03:10:58"
#R036716_RAMP,"2026/09/01 00:00:00",1,#R036716_001_RAMP_V,,,"2026/09/01 07:14:03"
...
C,SETP.WORLD,DVD_GENCONSET,AEMO,PUBLIC,2026/10/09,15:36:38,001791524198090,MONTHLY_ARCHIVE,001791524198090
I,GENCONSET,NULL,1,GENCONSETID,EFFECTIVEDATE,VERSIONNO,GENCONID,GENCONEFFDATE,GENCONVERSIONNO,LASTCHANGED
D,GENCONSET,NULL,1,#R036713_RAMP,"2026/09/01 00:00:00",1,#R036713_001_RAMP_F,"2026/09/01 00:00:00",1,"2026/09/01 02:06:54"
D,GENCONSET,NULL,1,#R036713_RAMP,"2026/09/01 00:00:00",1,#R036713_001_RAMP_V,"2026/09/01 00:00:00",1,"2026/09/01 02:06:54"
D,GENCONSET,NULL,1,#R036714_RAMP,"2026/09/01 00:00:00",1,#R036714_001_RAMP_F,,,"2026/09/01 03:10:34"
D,GENCONSET,NULL,1,#R036714_RAMP,"2026/09/01 00:00:00",1,#R036714_001_RAMP_V,,,"2026/09/01 03:10:34"
D,GENCONSET,NULL,1,#R036715_RAMP,"2026/09/01 00:00:00",1,#R036715_001_RAMP_F,,,"2026/09/01 03:10:57"
D,GENCONSET,NULL,1,#R036715_RAMP,"2026/09/01 00:00:00",1,#R036715_001_RAMP_V,,,"2026/09/01 03:10:57"
D,GENCONSET,NULL,1,#R036715_RAMP,"2026/09/01 00:00:00",1,#R036715_002_RAMP_V,,,"2026/09/01 03:10:57"
D,GENCONSET,NULL,1,#R036715_RAMP,"2026/09/01 00:00:00",1,#R036715_002_RAMP_F,,,"2026/09/01 03:10:58"
D,GENCONSET,NULL,1,#R036715_RAMP,"2026/09/01 00:00:00",1,#R036715_003_RAMP_F,,,"2026/09/01 03:10:58"
D,GENCONSET,NULL,1,#R036715_RAMP,"2026/09/01 00:00:00",1,#R036715_003_RAMP_V,,,"2026/09/01 03:10:58"
D,GENCONSET,NULL,1,#R036716_RAMP,"2026/09/01 00:00:00",1,#R036716_001_RAMP_V,,,"2026/09/01 07:14:03"
...
C,"END OF REPORT",1003

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 1 of 2015. The most recent available data is month 9 of 2026.

Every month in between has a file. (No gaps.)

Data Size

Each year of data is approximately 758 KB when zipped, 8 MB 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.

PDR Loader configuration is:

Report Name Report Subtype Version
GENCONSET NULL 1

This means that the CSV files start with metadata columns:

I,GENCONSET,NULL,1,...
D,GENCONSET,NULL,1,...

Indexes

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: GENERIC_CONSTRAINT