Skip to main content

Sites: Historical Data Tab

How to view, import, and export a site's historical groundwater, landfill gas, surface emissions and soil data, including ESdat imports and the rules for re-importing

T
Written by Trin Murphy

Objective

This article covers the Historical Data tab on the Edit Site page in EnviroAutomate. This tab provides access to all historical environmental monitoring data for the site, organised by sampling matrix.

What This Tab Shows

The Historical Data tab is split into three areas, top to bottom:

  1. A Data Dashboard card with a button that opens the Historical Data Visualiser

  2. A Historical Data - Import & Export section: an All Historical Data bar with Export All (ZIP) and Import All (ZIP), then a Sampling Matrices accordion

  3. An ESdat Historical Data Import card for loading historical analytical results from ESdat exports

Data Types Available

Each data type row shows its current record count (for example "10 records"), with Export and Import buttons, and a collapsible Recent imports (N) list of the imports run for that data type. Click View details on an import to see its result. A data type with no imports shows "No imports recorded yet."

Fresh Water, under the Groundwater Monitoring Event heading:

  • Gauging Data - Water level measurements from monitoring wells

  • Water Quality Parameters - Field water quality parameters (pH, conductivity, temperature, etc.)

  • Analytical Results - Laboratory analytical results for sampled analytes

  • QA/QC - Quality assurance and quality control data

  • RPD - Relative Percentage Differences (duplicate sample comparison)

Air:

  • Landfill Gas Bore Monitoring - Events, Weather Observations and Bore Measurements

  • Infrastructure Methane Monitoring - Events and Measurements

  • All LFG Data - Export All (ZIP) and Import All (ZIP) for the landfill gas bore and infrastructure methane data

  • Surface Emissions Monitoring - Events, Weather (Start/End), Transects, Point-Source Exceedances, Penetration Readings, Remediation Events and Remediated Point Sources, plus All SEM Data export and import as a ZIP. Administrators also see a Replace button on each SEM row (see Replacing SEM Data below)

Soil, under Soil Classification: Analytical Results, QA/QC and RPD, plus All Soil Data export and import as a ZIP.

Vapour, Sediments, Biota and Saline Water show "Import and export coming soon".

Key Actions

Opening the Data Dashboard

  • Click Open Data Dashboard at the top of the tab to launch the Historical Data Visualiser, which provides interactive charts, filtering and panel-based exploration of the site's historical data. See the Historical Data Visualiser article for details.

Exporting Data

  • Click Export next to any individual data type to download that dataset as an Excel file

  • Click Export All (ZIP) in the All Historical Data bar to download the site's historical data as a single ZIP

Importing Data

  • Click Import next to any individual data type to upload new data for that type

  • Click Import All (ZIP) to upload a ZIP file containing multiple data types at once

  • Select the file in the file picker dialog that appears

  • Open Recent imports under the data type to check the result

Replacing SEM Data (administrators only)

As the Surface Emissions Monitoring heading says: Import adds new events and refuses a file that repeats an event date already held; Replace overwrites the historical rows for those dates. Events recorded by a fieldwork task are never changed. The Replace buttons are shown to administrators only. Users can still run an additive Import.

Importing ESdat Files

The ESdat Historical Data Import card below the accordion lets you bulk-import historical analytical results from an ESdat export:

  • Choose the ESdat export: a single .xlsx, or a .zip containing one or both ESdat workbooks (maximum 100 MB), then click Import ESdat data

  • The system parses each row, infers the laboratory, and writes rows into Analytical Results

  • Every location code in the file must already be on the site (see below). If any code is missing, the whole ESdat import fails and nothing is written, not even new laboratories or analytes

  • Replace existing data for matching samples is off by default, and the import is blocked if any row would duplicate existing data. When it is on, existing rows for the same Location, Sample Date, Analyte and Matrix are deleted and re-imported. This cannot be undone. Only administrators can run a Replace import. If a user ticks it, the import is refused with a message asking them to untick Replace and run an additive import, or ask an administrator to run it

  • The card's own Recent imports list shows the result of each run; click into a run to see auto-created analytes, unmatched analytes, and skipped rows

  • Failed rows do not abort the import. They are recorded against the run with a reason, and you can download a CSV error report for review

Location Codes Must Already Exist on the Site

Historical imports and ESdat imports never create assessment locations. Before importing a site's history, add all of its locations, either on the Assessment Locations tab or with Import Assessment Locations on the Sites list.

If a file names a location code that is not on the site, the import is rejected before anything is written, with this message:

"These location codes are not on this site: MW-404, MW-405. Upload the site's locations file first (Sites > Import Assessment Locations), then import this file again."

  • Every missing code is listed once, sorted.

  • Import All (ZIP) checks every file in the ZIP first. If any file names a missing code, nothing in the ZIP is imported, and the message ends "import this ZIP again. Nothing in the ZIP was imported."

  • For Excel historical files, codes must match exactly apart from spaces at the start or end (upper and lower case must match). A deleted location counts as missing.

  • For ESdat files, codes match in any case, and a sample code with a suffix resolves to its location (for example MW01_B to MW01, or soil sample BH01_0.5 to bore BH01).

Re-importing Existing Results

When you re-import groundwater or soil analytical results that already exist:

  • A blank Original Result cell keeps the stored Original Result, including its less-than flag and qualifier. The Result itself still updates from the file.

  • A blank Notes cell keeps the stored notes.

  • A filled-in cell overwrites the stored value, as before.

  • If the row's unit of measure changes, the file is taken as written.

Inactive Reason:

  • The groundwater and soil analytical results exports include an Inactive Reason column after Sample Date, so a stored reason such as "Dry" survives an export, edit and re-import.

  • A blank Inactive Reason cell clears the stored reason. A sheet with no Inactive Reason column leaves stored reasons as they are.

  • Re-importing an unchanged reason does not change the location's status. Only a new or different reason (for example a destroyed well) sets the location to Inactive or Destroyed, so a location you reactivated stays active.

Rows recorded by fieldwork tasks:

  • A file row that lands on a reading or result recorded by a fieldwork task is skipped, with a message naming the task: "A historical import never overwrites or deletes a fieldwork task's readings; edit them on the fieldwork task instead." This now also applies to groundwater and soil QA/QC and RPD rows.

  • Rows that belonged to a deleted fieldwork task are hidden from the export and ignored by the import, so a spreadsheet row at the same location and date is saved as a new historical row.

Two Samples on One Date (Different Lab Work Orders)

Groundwater analytical results are matched by location, date and Laboratory Report Number:

  • Two work orders at the same location on the same date load as two separate samples, each with its own report number and results.

  • Re-sending the same work order updates it in place. Letter case and spacing in the report number do not matter, and an amended report with a revision suffix (for example EM2412345R1 or EM2412345-R2) counts as the same work order.

  • A row with a blank report number matches on location and date only, as before.

  • The same analyte can appear once per work order on a date. Twice in one work order is still rejected.

  • If a new work order's results are identical to a sample already stored at that location and date, it still loads as its own sample, and the import shows a warning naming both report numbers.

  • QA/QC and RPD rows link to the primary sample with the same Laboratory Report Number when two primaries share a date.

  • For ESdat imports, duplicate checks and Replace existing data for matching samples also compare the lab report number, so re-sending one work order no longer removes another work order's sample at the same location and date.

  • Export All (ZIP) re-imports two work orders on one date as two samples.

In groundwater and landfill monitoring event reports, a location with two samples on one date is labelled with its work order, for example MW01 (EM2412345).

LFG Bore Oxygen Columns

LFG bore historical files carry two oxygen columns, Peak Oxygen (% v/v) and Stabilised Oxygen (% v/v). Oxygen values already stored show as Stabilised Oxygen. An older file with a single Oxygen (% v/v) column is refused with a message. Export the current template, or rename that column to Stabilised Oxygen (% v/v) and add Peak Oxygen (% v/v), then import again.

Other Actions

  • Expand All / Collapse All - Expand or collapse all matrix accordion sections at once

  • How to export from ESdat - Steps at the bottom of the ESdat card for producing the export in ESdat

Cautionary Notes

  • Imported data must be in the correct format. Export the matching data type first to see the expected template.

  • Vapour, Sediments, Biota and Saline Water show "Import and export coming soon".

  • Add the site's assessment locations before importing historical data. Imports reject any location code that is not on the site.

  • Large imports may take some time to process. Leave the tab open while an import is running.

  • The ESdat card accepts a single .xlsx or a .zip of the ESdat workbooks (no subfolders).

  • Replace (ESdat and SEM) deletes existing historical rows and cannot be undone, which is why only administrators can run it.

Tips for Efficiency

  • Export existing data first to use as a template for preparing import files

  • Use Export All (ZIP) to back up all historical data for a site at once

  • Use Import All (ZIP) when you have multiple data types to upload simultaneously

  • Check the record counts next to each data type to quickly see what data is already loaded

  • Use Open Data Dashboard to visualise trends and patterns before or after importing

Did this answer your question?