Skip to documentation
On this page

Connect data: import readings

Upload a CSV file of readings. REC Verify checks every row before anything is saved, shows you the problems, and only then lets you import.

Who can open it
Signed in with an Enterprise account
Last checked against the code
2026-11-07

What you see#

  1. A drop zone and a template download. Choose or drop a CSV file.
  2. A progress card while the file is read and checked.
  3. A preview: rows, producers ready, producers that will be saved as Not scored, and the rows to fix with their error codes.
  4. An Import button. After it, a progress card follows the scoring. You can leave the page while it runs.

What you can do#

Import a file#

What it does
Checks the file and keeps the result for one hour, then saves it when you confirm.
Inputs
A CSV file with the eight columns listed below.
Result
Step one answers with a batchId, counts of rows and producers, the first 1,000 problems and the limits. Step two answers with how many producers were created, updated and left Not scored, and how many readings were written.
Limits
Nothing is saved before the confirm step. A checked file expires after one hour (expiresAt).
API call
POST/secure/pro/rec-verify/imports/validateChecked in code
POST/secure/pro/rec-verify/imports/{batchId}/confirmChecked in code

Download the rows to fix#

What it does
Saves the problems of your file as a small CSV, so you can fix the source file.
Inputs
None.
Result
A file with the row, the producer id, the column and a sentence for each problem.
Limits
It lists the same problems as the screen, up to the first 1,000.

The columns#

The file is UTF-8 CSV, with a byte order mark allowed. It has one row per reading. The header must hold exactly these eight columns, in any order, in any letter case, with spaces around the names allowed. A missing, extra or repeated column refuses the whole file with invalid_header. Blank rows are skipped.

Note. Use W and Wh, never kW or kWh. Save Excel files as CSV (UTF-8).

Columns of the import file
ColumnWhat it holdsRules
producer_idYour own id for the producer.Required, up to 100 characters. The same id groups the rows of one producer.
nameThe producer name.Required, up to 200 characters. The same on every row of a producer.
latLatitude of the site.A number from 5.5 to 20.5. The same on every row of a producer.
lngLongitude of the site.A number from 97.3 to 105.7. The same on every row of a producer.
declared_wpDeclared power in W.A plain number of at least 1, up to 1,000,000,000. The same on every row of a producer.
dateThe day or month of the reading.YYYY-MM-DD for a day or YYYY-MM for a month. One kind per producer. Not in the future, and the day or month must be over.
whEnergy produced in that period, in Wh.A plain number of 0 or more. No commas, units or exponent.
sourceWhere the reading came from.inverter, utility or manual, in any letter case.

Scroll sideways to see all columns

Limits#

Up to 10 MB and 100,000 rows per file.

  • Row numbers are file lines. The header is line 1.
  • The first 1,000 problems are listed. errorsTotal holds the full count.
  • A file over the limits is refused whole: file_too_large or too_many_rows, both with status 413.

Sample files#

Warning. Use a test organisation for the sample files. Their names are invented, but the rows are saved in your own organisation and stay there.

Warning. REC Verify has no delete for producers or imports, in the app or in the API. Importing a file creates real rows in the organisation you are signed in to.

rec-verify-template.csvSynthetic data
751 B7 data rows

The header and 2 example producers: one with daily readings and one with monthly readings. It is the same file the Connect data screen offers as the template.

The values are illustrative. They are not real producers. The names carry ตัวอย่าง, which means example.

Importing creates real rows in your organisation and there is no delete. Use a test organisation.

Download rec-verify-template.csv
csv
First lines of rec-verify-template.csv
producer_id,name,lat,lng,declared_wp,date,wh,source
P001,โรงงานตัวอย่าง A,13.648,100.612,420000,2026-10-01,1620500,inverter
P001,โรงงานตัวอย่าง A,13.648,100.612,420000,2026-10-02,1585000,inverter
rec-verify-mock-producers.csvSynthetic data
25.8 KB174 data rows

12 producers with 174 readings, all in the EEC area (Chonburi, Rayong and Chachoengsao). They are built to land across inside range, above range and below range, with a short history, daily rows and flat months.

Built to land is a design target, not a promise. The verdict comes from the real sun data of each place, so a producer near the edge of a band can land one band away. All names carry ตัวอย่าง. The coordinates are real map points of industrial estates, so a roof check describes whatever building is there. The readings run from 2025-11 to 2026-10 and were built for 2026-11-06. The file still imports later, but the data ages.

Importing creates real rows in your organisation and there is no delete. Use a test organisation.

Download rec-verify-mock-producers.csv
csv
First lines of rec-verify-mock-producers.csv
producer_id,name,lat,lng,declared_wp,date,wh,source
EEC-001,บริษัท ตัวอย่างโลหะ อมตะซิตี้ จำกัด,13.418,101.15,850000,2025-11,91034252,inverter
EEC-001,บริษัท ตัวอย่างโลหะ อมตะซิตี้ จำกัด,13.418,101.15,850000,2025-12,88066564,inverter

What happens to a producer#

  • A producer with any bad row is saved as Not scored. Its readings from this file are not saved. If it already exists, it keeps the readings it had and is marked Not scored until the rows are fixed.
  • A producer that is already in REC Verify gets its name, location and declared power updated, and the readings in the file are written. A reading for a period that is already stored is overwritten. Periods that are not in the file stay.
  • A producer cannot switch between days and months after its first import (period_kind_conflict).
  • Confirming the same checked file twice returns the same result. Nothing is imported twice.
  • After the confirm step, REC Verify scores the producers on its own. The summary field awaitingScore shows how many are still waiting.

What we check#

  1. The header matches the template.
  2. Latitude and longitude are inside Thailand.
  3. Each producer has one name, one location and one declared power.
  4. A producer has each date only once.
  5. Energy is a number of 0 or more.
  6. Energy is not more than the declared power can make in that period, which catches a wrong unit.
  7. Source is inverter, utility or manual.
  8. A producer uses days or months, not both.

The full list of row error codes is on Checks and verdicts.

API behind it#

The import uses two calls. See REC Verify API for the curl examples.