# Exports

> The CSV, BCF zip and report exports of a project, their columns, limits and who may download them.

Exports are on the project's *Dashboard* (*Yleiskatsaus*), under *Export* (*Vie*). They are available to project owners and administrators, and to administrators of the account that owns the project. Where that account has the PDF report, a project inspector may export the two reports too, also as a guest from another organisation; the other exports stay with administrators.

| Export | Menu item | Path | Content |
|:-------|:----------|:-----|:--------|
| Findings CSV | *CSV Exports › Findings* | `/export/csv?type=topics` | Every topic of the project, including `Inspection` and `InspectionStep` topics |
| Elements CSV | *CSV Exports › Assets* | `/export/csv?type=assets` | Every element of the project |
| Inspections CSV | *CSV Exports › Inspections* | `/export/csv?type=inspections` | See the limits below |
| BCF zip | *BCF Export (.bcf)* | `/export/bcf` | BCF 3.0 archive |
| Report | *Inspection Report* | `/export/report?lang=fi` or `en` | Markdown summary |
| PDF report | *Inspection Report (PDF)* | `/export/report.pdf?lang=fi` or `en` | Progress by storey and by element type, and every failed step with its first photo; only where the account has the PDF report |

Paths are under `/api/projects/{projectId}`. They belong to the app's internal API and may change without notice; they are listed so that you can recognise the files.

## CSV columns

| File | Columns |
|:-----|:--------|
| `topics.csv` | `guid`, `title`, `status`, `type`, `priority`, `assigned_to`, `labels`, `creation_date`, `modified_date`, `due_date`, `description`, `is_finding` (`true` for a topic the reports count as a finding) |
| `assets.csv` | `global_id`, `name`, `ifc_type`, `predefined_type`, `storey`, `building`, `type_name` |
| `inspections.csv` | `asset_global_id`, `asset_name`, `ifc_type`, `storey`, `workflow_status`, `template`, `completed_steps`, `na_steps`, `total_steps`, `skipped_optional_steps`, `failed_steps`, `last_inspected_at`, `inspectors` |

All files are UTF-8 with CRLF line ends and follow RFC 4180. Several `labels` are joined with `; `. A cell whose value starts with `=`, `+`, `-` or `@`, after any leading whitespace, gets a leading apostrophe inside quotes, so that a spreadsheet does not run it as a formula.

## The inspections CSV can be cut

:::caution[Export limits]
`inspections.csv` stops at whichever comes first: **10 000 rows**, a body of **4 MiB** counted with JSON escaping, or **15 seconds** of reading. A project that reaches a limit gets an incomplete file.
:::

The file holds two kinds of row, in this order:

| Row | `workflow_status` | `template` |
|:----|:------------------|:-----------|
| An inspection that exists | The inspection's status | The template name, or empty if you cannot see the template |
| An element with a QR code but no inspection | `not_started` | The template of an active plan that covers it (empty if you cannot see that template), otherwise `–` |

Within each kind, rows follow an internal id, not a date. A cut file therefore does not hold the newest or the oldest rows in particular.

When the export stops at a limit, the response carries `X-Truncated: true`, and `X-Row-Limit` holds the number of data rows in the file, without the header. A complete file has neither header. The app shows a notice after the download: *The downloaded file contains the first N rows and stopped at an export limit.* The file itself holds no marker and ends on a complete row, so do not assume a file is complete without that check.

`topics.csv` and `assets.csv` have no row limit, but the size limit below applies to them.

## Long text is shortened

Text in `inspections.csv` and in the report is cut at a fixed length, without a notice. `X-Truncated` and the app's notice only tell that rows are missing, not that a cell was shortened.

| Text | Characters kept |
|:-----|:----------------|
| Template, element name, IFC type and storey | 120 |
| In the report: step names and the names of inspectors and of those who reopened a step | 120 |
| In the report: failure and reopening reasons | 255 |

`topics.csv` and `assets.csv` keep the full text.

## Size of a download

Each export is returned as one response. The hosting platform (AWS Lambda) limits a response to 6 MiB, counted after encoding and including its headers. An export above that fails with a server error instead of downloading.

| Export | Largest file that fits |
|:-------|:-----------------------|
| BCF zip, report | Below about 4.5 MiB. They are sent base64-encoded, which adds about a third |
| `topics.csv`, `assets.csv` | Somewhat below 6 MiB. They are sent as text, but line ends and quotes take extra room |
| `inspections.csv` | Stops at its own 4 MiB limit above, so it is cut instead of failing |

A BCF zip with many images is the most likely to reach it, because images are packed into the archive. Try the export on your largest project before you rely on it.

## BCF zip

The archive follows BCF 3.0: `bcf.version`, `extensions.xml`, `project.bcfp`, and a folder per topic with `markup.bcf`, its viewpoints (`.bcfv`) and their images. `extensions.xml` also lists any status, type or other value a topic uses, even if the project's own list does not hold it.

A project can be exported 20 times per hour. Above that, the API answers `429`.

BCF import reads BCF 2.1 and 3.0, for the same roles as export, on `POST /api/projects/{projectId}/import/bcf`, 5 times per project per hour. The app has no button for it. An archive may hold at most 5 000 files and 2 000 topics, 40 MB when unpacked, and 5 MB per XML file.

## Report

The report is Markdown. Without `lang`, it uses the user's language, then the account's, then Finnish. Its summary numbers cover the whole project. Its tables have limits, and the report says so when one is reached:

| Part | Limit |
|:-----|:------|
| Details table | At most 2 000 rows: 1 000 inspections and 1 000 elements with a QR code but no inspection |
| Step results | At most 1 000 rows across the whole report, cut between inspections where possible |
| Replaced results of reopened steps | At most 1 000 rows across the whole report, newest kept |

An inspection whose template you cannot see stays in the details table and in the summary numbers, with an empty template name.

## See also

- [Data model](/en/integrations/data-model/)
- [BCF 3.0 API and OpenCDE discovery](/en/integrations/bcf-api/)
