400 and RPT-0235. The detail gives the path of the first problem, such as files[0].columns[2].name, and the number of problems.
Files and columns
A contract is a JSON object with
layout, files, and optional controls. An unknown field anywhere in the contract refuses it.
Day path tokens
dayPath and each file name accept three tokens: {yyyy}, {MM}, and {dd}. They expand from the reference date of the day, not the delivery date. {yyyy} is the four-digit year. {MM} and {dd} are two digits, padded with zero. The day 2026-03-05 gives ledger/2026/03/05. No other text between braces is accepted.
The day path and the file name together must carry all three tokens. A path refuses backslashes, control characters, empty segments, ., and ... Each name is one path segment inside the day folder.
Files
Two files cannot expand to the same name on any day. A contract needs a manifest or at least one required file. See limits for the number of files.
Columns
A table name and a column name match^[a-z][a-z0-9_]{0,62}$. A file needs at least one column, at least one required column, and unique column names.
The meaning of
source depends on the format:
- CSV with a header: the header text.
- CSV without a header: the 1-based position of the field.
- XLSX with a header: the header text.
- XLSX without a header: the 1-based position of the column.
- JSON: the key.
source is the name of the child element, or @ and the attribute name.
The reference_date column
Every table also has the columnreference_date. It holds the day that the row came from, as yyyy-MM-dd. Reporter adds it for you. No column of your contract can take that name.
Keys and the reference date column
key lists required columns. A repeated key refuses the day under unique-key.
referenceDateColumn names a required date column. Every value in it must equal the day. Another value refuses the day under reference-date.
How values read
A null in a required column refuses the day under
column-value.
A format uses the tokens yyyy, MM, dd, HH, mm, ss, and XXX. It uses the separators -, /, ., :, space, and T. A date format holds yyyy, MM, and dd once each. A datetime format adds HH and mm once each, and at most one ss and one XXX.
Defaults
An omitted field takes its zero value, and nothing checks that you wrote it. Leaving outrequired makes a file optional or a column nullable.
Formats
A file has the block of its own format and no other. The
csv, xml, and xlsx formats require their block. The json format does not. For the xlsx block, see XLSX.
CSV
Header text matches a
source after a trim, and the match is case-sensitive. A missing required header refuses the file. A missing optional header reads as null. A header text that appears twice in the header line refuses the file when a column reads it.
With a header, every line must have as many fields as the header line. Without a header, every line must have as many fields as the highest position the contract declares. Any other count refuses the day.
JSON
Use
rowsPath or lines, never both.
XML
An XML file takes its encoding from its own declaration. Reporter reads UTF-8 and Windows-1252, under any label that the web encoding standard maps to them. It reads a file with the label
utf-16 as UTF-8. Any other label refuses the day. A Windows-1252 label on a file with a UTF-8 byte-order mark also refuses the day.
XLSX
The
xlsx block holds five options.
A sheet name has at most 31 characters. It cannot hold any of
/ \ ? * : [ ]. Reporter refuses such a contract when you save it. A sheet that the workbook does not have, a chart sheet, or a file that is not a readable workbook refuses the day under file-format.
A cell reads by its stored type
A spreadsheet cell stores a type: number, text, boolean, or error. Reporter reads the type that the file stores. It never reads the way the cell looks on screen. A cell that shows2026-03-15 can store the number 46096 with a date style. A cell that shows 100,50 can store text or a number. Reporter reads the two cases with different rules. The display style has no effect. Fix the stored type in the file, or change the column type in the contract.
Number cells
A date serial must be a whole number above zero. Reporter refuses a fraction, a zero, a negative serial, and serial 60 of the 1900 system. Serial 60 is the date 1900-02-29, which does not exist.
An account number that the sender stored as a number does not read in a
string column. Store it as text. The text of one number cell has at most 64 bytes.
Text cells
The separators apply only to numbers that the file stores as text. They have no effect on a number cell.
With a thousands separator, the first group has one to three digits. Each later group has exactly three digits. A separator in the fraction refuses the value.
Other cells
- An empty cell is null.
- A boolean cell is accepted only in a
booleancolumn. - A formula cell reads as the result that the file stored for it, with the type of that result. A formula with no stored result is empty.
- An error cell, such as
#N/A, in a column that the contract reads refuses the day. The finding says the cell βholds a spreadsheet errorβ.
Rows
Withheader: true, the row right after the skipped rows is the header. A sheet with no such row refuses the day. An empty sheet is one case.
With header: false, source is the 1-based column position. A cell beyond the last stored cell of the row reads as null.
A row with no cell value is skipped. Every other row is a data row, a total row included. A total row reads like any other row. Reporter does not read merged ranges. A cell of the range that stores no value reads as null.
Example
This contract reads one sheet of an XLSX workbook. The workbook has two title rows, then a header row. Numbers are stored as text in the Brazilian form, such as1.234,50. The source is an S3 source, because the contract has no manifest.
Manifest
The manifest is a file that the sender delivers with each day. It lists every file of the day with its SHA-256. An SFTP or FTP source needs a contract with a manifest. Reporter refuses a dataset, a switch to such a source, or a contract version without one with
RPT-0237.
An S3 source can work without a manifest. Then one listing of the day folder decides what the day holds, and Reporter reads only the files that the contract names. A fetch that runs while you replace the files of a day can then accept a mix of old and new files. With a manifest, Reporter checks each file against its SHA-256.
Where the manifest sits
The path of the manifest is the expandeddayPath joined with the expanded name. The name is one path segment and can take the day tokens. The day path and the name together must carry all three tokens. The name cannot expand to the name of a file of the contract. If the manifest is missing, the day stays waiting.
Manifest fields
A key of an entry has no dot. A dot is refused when you save the contract. An entry that is not an object, or has no text name, is skipped. An entry names a file by its expanded name, or by a path whose last segment is that name. An entry that no file of the contract matches is ignored.
Once you declare
rowsField or bytesField, every listed entry must hold an integer there. Otherwise the day is refused under manifest.
Every declared total, revisionField, and referenceDateField must be in every manifest. A manifest without one refuses the day. A total in the manifest is a JSON number, or a string with a dot as the decimal separator. A comma refuses the day.
A manifest that lists no file of the contract is not a delivery. The same holds for a manifest that is empty or cut short while the sender writes it. The day stays incomplete, with a warning.
Example
This contract reads two CSV files of one day. It has a manifest and four controls. The semicolon is the delimiter and the comma is the decimal separator. Controls explains the control fields.ledger/2026/03/15. The first is entries.csv. The line endings are LF, and the last line ends with a line feed.
balances.csv, with the same line endings.
manifest.json. The hashes are the SHA-256 of the two files above.
Controls
A control compares values across the files of a day. It has a
name, a kind, and a severity. Its name cannot be the name of a built-in check. A field that belongs to another kind refuses the contract.
The severity sets what a failed control does:
refuse: the day is refused.warn: the day is accepted. Reporter keeps the finding as a warning on the accepted revision.
total
Atotal has a left side and a right side. Both are required. A side is one of two shapes:
- A table side:
table,aggregate, and optionalcolumn,where, andgroupBy. - A manifest side: only
manifestTotal, the name of a total of the manifest.
Only one side can be a manifest total. A grouped side cannot face a manifest total. Two grouped sides group by the same number of columns. A grouped total compares group by group. A group that only one side holds compares against 0.
reference
Areference has from and to. Each holds a table and a list of columns, and both lists have the same length. Every key of from must exist in to. Reporter does not check a key with a null part.
rowBalance
ArowBalance has a table and at least two terms. Each term holds a column of type integer or decimal, and a sign of + or -. The signed terms of every row must sum to zero. A null term counts as zero.
Take a table movements with the number columns opening, movement, and balance. This member of controls requires opening plus movement minus balance to be zero in every row.
Built-in checks
Reporter applies these checks to every day. Your contract does not declare them.
A finding names its check and its table. The four row checks,
column-value, unique-key, reference-date, and rowBalance, give a count and up to ten row numbers, and never a cell value. A finding of a total control shows the totals that it compared. A grouped total lists up to ten groups that differ, each with a line number and its two sums, and never the group key. A row with several bad cells is reported once, under its first bad column. A finding can read like this:
warn control does not refuse the day. See days for what the operator sees on a refused day.
Versions
Each contract has versions. The first is version 1. Numbers run without gaps, Reporter keeps every version forever, and the list shows the oldest first. A new version is the body that you send, stored byte for byte. It enters use at once. It does not fetch the accepted days again. It applies to new deliveries and to a fetch that an operator requests. A report reads each day with the contract version that accepted that day. After a delivery is accepted, a new version can only add. Reporter refuses a version with
RPT-0236 when it does one of these:
- It removes a table.
- It removes a column.
- It changes the type of a column.
- It makes a
datetimecolumn gain or lose its offset (XXX). Adatetimecolumn with noformatreads RFC 3339, which has an offset.
RPT-0244 when the version adds a required table or column, or makes an existing one required. For a table or a column, they fail only when the report reads it. The error names the day and the table or column.
A no-delivery declaration locks the schedule. It does not make versions additive only. See days and datasets and schedule.
The SHA-256 of a version
The SHA-256 of a version is the hash of the bytes that you sent. In the Console, it equals the SHA-256 of your file when you pick the file and do not edit the text. The Console shows the JSON reformatted, so the text can differ from your file. See managing file datasets in the Console.Limits
A limit with a setting name is a Reporter setting, and the default is the value in the table. A limit with no setting is fixed. For the settings, see settings.
A day folder with more entries than the listing limit fails the attempt with
read failed. A workbook that reaches a limit is refused under file-format. The workbook limits are the same when Reporter fetches a day and when a report reads it.
Next steps
File datasets
File sources, schedules, and the days of a dataset.
Manage file datasets in the Console
Import a contract and follow each day.
XLSX template
Write a workbook as the output of a report.

