Skip to documentation
On this page

Checks and verdicts

Two sets of rules: the row checks that run on your file, and the verdict REC Verify gives each producer afterwards.

Who can open it
Signed in with an Enterprise account
In the product
/pro/rec-verify/import/pro/rec-verify/producers/[producerId]
Last checked against the code
2026-11-07

Row error codes#

A row error rejects the whole producer: it is saved as Not scored and none of its readings from this file are saved. Each problem names the file line (the header is line 1), the column when one is at fault, and a code.

Row error codes
CodeColumnWhat triggers itWhat the app says
required
Missing value
anyA required cell is empty: producer_id, name, lat, lng, declared_wp, date or wh.A required value is missing.
invalid_number
Number
In the error sample
lat, lng, declared_wp, whA number cell has commas, units, letters or an exponent. Use plain digits with an optional dot.This is not a plain number. Remove commas, units and letters.
out_of_range
Range
In the error sample
producer_id, name, lat, lng, declared_wp, whlat is outside 5.5 to 20.5, lng is outside 97.3 to 105.7, declared_wp is below 1 W or above 1,000,000,000 W, wh is below 0, or producer_id or name is too long.This value is outside the allowed range.
invalid_date
Date
In the error sample
dateThe date is not YYYY-MM-DD or YYYY-MM, or it is not a real date such as 2026-02-30.The date must be YYYY-MM-DD for a day or YYYY-MM for a month.
future_period
Future date
In the error sample
dateThe day or month is after today in Bangkok time.The date is in the future.
open_period
Period not over
In the error sample
dateThe day or month is today or the current month, so it is not over.This day or month is still in progress, so its sun data is incomplete. Use a complete past day or month.
invalid_source
Source
In the error sample
sourcesource is not inverter, utility or manual.Source must be inverter, utility or manual.
inconsistent_producer
Mismatch
In the error sample
name, lat, lng, declared_wpname, lat, lng or declared_wp differs from the first row of the same producer.This producer has different values on different rows. Name, location and declared power must match on every row.
duplicate_period
Duplicate
In the error sample
dateThe producer already has a reading for this date in the file.This producer already has a reading for this date.
mixed_periods
Mixed periods
In the error sample
dateThe producer has both day rows and month rows.This producer mixes days and months. Use one kind per producer.
unit_error
Unit
In the error sample
whwh is above declared_wp times 24 hours for a day, or times 24 hours times the days of the month for a month.More energy than the declared power can make in this period. Check the unit: energy must be in Wh.
column_count
Columns
The whole rowThe row has a different number of values than the header.This row has a different number of values than the header.
period_kind_conflict
Kind change
dateThe producer was imported before with the other kind, days or months.This producer already has readings of the other kind (days or months).

Scroll sideways to see all columns

The error sample below shows 10 of the 13 codes. It does not show required, column_count or period_kind_conflict.

Errors that refuse the whole file#

File level errors
CodeStatusMeaning
file_required400The upload has no field named file.
file_unreadable400The file could not be read.
invalid_header422The header does not hold exactly the eight columns. The answer lists missing and unexpected.
malformed_csv422The file is not valid CSV. The answer has the line and the reason.
empty_file422The file has no data rows.
not_utf8422The file is not UTF-8.
file_too_large413The file is over 10 MiB.
too_many_rows413The file has more than 100,000 rows.
organization_required400Your account is not linked to an organisation.
batch_expired410The checked file waited more than an hour. Upload it again.
period_kind_conflict409A producer in the file already has readings of the other kind.

Scroll sideways to see all columns

How a verdict is decided#

For each period, REC Verify works out the range the sun allows: the sun at the location, times the declared power, times a performance ratio band. The band is currently 0.65 to 0.80. It is a server setting, and the answers carry the values in use in the performanceRatio field.

Results of a period
ValueIn the appMeaning
above_rangeAbove rangeThe reported energy is above the high end of the range.
inside_rangeInside rangeThe reported energy is inside the range.
below_rangeBelow rangeThe reported energy is below the low end of the range.
not_scoredNot scoredThe sun data of the period is incomplete, so there is no range.

Which period the verdict is about#

  • A producer with monthly readings is judged on its latest month that has a range.
  • A producer with daily readings is judged on its reported days that have a range, inside its latest 30 days.
  • The producer verdict is the verdict of that period.
  • If 3 or more months are above range, the verdict is above range, even when the latest period is not.

When a producer is Not scored#

  • It has rows to fix (rows_to_fix).
  • It has no readings (no_readings).
  • The sun data of the period is missing (sun_data_missing).

Reasons and notes#

Reason codes in a score
CodeMeaning
reported_above_highThe reported energy is above the most the sun allows.
reported_below_lowThe reported energy is below the least the sun should give. This adds no REC risk.
above_range_in_monthsAbove range in months of ofMonths months.
rows_to_fixSome rows in the file need fixing.
no_readingsThere are no usable readings yet.
sun_data_missingSun data for this place and period is missing.

Scroll sideways to see all columns

Notes in a score. A note never changes the verdict.
CodeMeaning
declared_over_roof_capacityThe declared power is more than 115 percent of what the roof can hold, from a roof check.
flat_monthsMonthly values stay within 2 percent of each other over 3 or more months.
periods_without_sun_dataSome readings were left out because they have no sun data.

Scroll sideways to see all columns

Note. A flag asks for a meter check. It is not a finding of fraud, and the meter stays the basis for REC issuance.

Sample files#

The producers sample is built to land across the results below. Treat the second column as a design target.

What each producer of the producers sample is built to show
ProducersBuilt to landHow
EEC-001 to EEC-004Inside rangeMonthly, 12 months, performance ratio about 0.70.
EEC-005Inside rangeShort history: 6 months only.
EEC-006Inside rangeDaily: 30 daily rows.
EEC-007Above rangePerformance ratio 0.99, utility source.
EEC-008Above rangePerformance ratio 1.08, manual source.
EEC-009Above rangeDaily: 30 daily rows, ratio 0.97.
EEC-010 and EEC-011Below rangePerformance ratio 0.42 and 0.50.
EEC-012Flat months noteThe same Wh every month for 12 months.

Scroll sideways to see all columns

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-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
rec-verify-mock-with-errors.csvSynthetic data
1.7 KB14 data rows

A file made to fail: 14 rows, 11 problems listed, covering 10 of the 13 row error codes. Only the first producer is clean.

Use it to see the Rows to fix screen. Importing it saves the clean producer and marks the other 10 as Not scored. It was built for 2026-11-06, so the rows that test an unfinished month and a future month stop failing as time passes.

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

Download rec-verify-mock-with-errors.csv
csv
First lines of rec-verify-mock-with-errors.csv
producer_id,name,lat,lng,declared_wp,date,wh,source
ERR-001,ตัวอย่าง ปกติ,13.7,100.6,100000,2026-10,11000000,inverter
ERR-002,ตัวอย่าง หน่วยผิด kWh,13.7,100.6,100000,2026-10,99000000000,inverter