Checks and verdicts
Two sets of rules: the row checks that run on your file, and the verdict REC Verify gives each producer afterwards.
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.
| Code | Column | What triggers it | What the app says |
|---|---|---|---|
requiredMissing value | any | A required cell is empty: producer_id, name, lat, lng, declared_wp, date or wh. | A required value is missing. |
invalid_numberNumber In the error sample | lat, lng, declared_wp, wh | A 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_rangeRange In the error sample | producer_id, name, lat, lng, declared_wp, wh | lat 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_dateDate In the error sample | date | The 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_periodFuture date In the error sample | date | The day or month is after today in Bangkok time. | The date is in the future. |
open_periodPeriod not over In the error sample | date | The 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_sourceSource In the error sample | source | source is not inverter, utility or manual. | Source must be inverter, utility or manual. |
inconsistent_producerMismatch In the error sample | name, lat, lng, declared_wp | name, 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_periodDuplicate In the error sample | date | The producer already has a reading for this date in the file. | This producer already has a reading for this date. |
mixed_periodsMixed periods In the error sample | date | The producer has both day rows and month rows. | This producer mixes days and months. Use one kind per producer. |
unit_errorUnit In the error sample | wh | wh 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_countColumns | The whole row | The row has a different number of values than the header. | This row has a different number of values than the header. |
period_kind_conflictKind change | date | The 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#
| Code | Status | Meaning |
|---|---|---|
file_required | 400 | The upload has no field named file. |
file_unreadable | 400 | The file could not be read. |
invalid_header | 422 | The header does not hold exactly the eight columns. The answer lists missing and unexpected. |
malformed_csv | 422 | The file is not valid CSV. The answer has the line and the reason. |
empty_file | 422 | The file has no data rows. |
not_utf8 | 422 | The file is not UTF-8. |
file_too_large | 413 | The file is over 10 MiB. |
too_many_rows | 413 | The file has more than 100,000 rows. |
organization_required | 400 | Your account is not linked to an organisation. |
batch_expired | 410 | The checked file waited more than an hour. Upload it again. |
period_kind_conflict | 409 | A 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.
| Value | In the app | Meaning |
|---|---|---|
above_range | Above range | The reported energy is above the high end of the range. |
inside_range | Inside range | The reported energy is inside the range. |
below_range | Below range | The reported energy is below the low end of the range. |
not_scored | Not scored | The 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#
| Code | Meaning |
|---|---|
reported_above_high | The reported energy is above the most the sun allows. |
reported_below_low | The reported energy is below the least the sun should give. This adds no REC risk. |
above_range_in_months | Above range in months of ofMonths months. |
rows_to_fix | Some rows in the file need fixing. |
no_readings | There are no usable readings yet. |
sun_data_missing | Sun data for this place and period is missing. |
Scroll sideways to see all columns
| Code | Meaning |
|---|---|
declared_over_roof_capacity | The declared power is more than 115 percent of what the roof can hold, from a roof check. |
flat_months | Monthly values stay within 2 percent of each other over 3 or more months. |
periods_without_sun_data | Some 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.
| Producers | Built to land | How |
|---|---|---|
| EEC-001 to EEC-004 | Inside range | Monthly, 12 months, performance ratio about 0.70. |
| EEC-005 | Inside range | Short history: 6 months only. |
| EEC-006 | Inside range | Daily: 30 daily rows. |
| EEC-007 | Above range | Performance ratio 0.99, utility source. |
| EEC-008 | Above range | Performance ratio 1.08, manual source. |
| EEC-009 | Above range | Daily: 30 daily rows, ratio 0.97. |
| EEC-010 and EEC-011 | Below range | Performance ratio 0.42 and 0.50. |
| EEC-012 | Flat months note | The 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.
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.csvproducer_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
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.csvproducer_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