---
title: Best Practices for Handling CSV Exports
url: https://docs.maxio.com/insights/data-export/best-practices-for-handling-csv-exports
applies_to: "Advanced Billing, Maxio Core"
updated: 2026-11-25
---

# Best Practices for Handling CSV Exports

Maxio exports structured CSV files that can be used for reporting, analysis, or integration with external tools. Follow these practices when parsing exported files, and understand how Maxio sanitizes sensitive string values to protect against spreadsheet-based execution risks.

## How Maxio sanitizes exported data

To protect your data when opened in spreadsheet tools, Advanced Billing exports modify any string value that *begins* with one of the following characters. Maxio Core report exports work differently, as described in [Report exports in Maxio Core](https://docs.maxio.com/insights/data-export/best-practices-for-handling-csv-exports#report-exports-in-maxio-core).

- `+` (plus sign)
- `-` (minus sign)
- `=` (equals sign)
- `@` (at sign)

This is a precaution to prevent formula injection or malicious code execution. The change applies only to the exported CSV file, your underlying data in Maxio remains untouched.

In the Invoices, Transactions Report, Finance Report, Coupons and Components exports, among others, the changed value begins with a single quote (`'`). These exports also add the quote when text starts with a tab, a carriage return or a line break. For example, a customer reference of `=HYPERLINK("https://example.com")` appears as `'=HYPERLINK("https://example.com")`. A value that is only a signed number, such as `-5.00` or `+3`, doesn't get the quote, so it still opens as a number.

If you load one of these files into another system, the leading `'` is part of the exported value. Keep it in any copy that someone might open in a spreadsheet.

### Report exports in Maxio Core

When you export a report in Maxio Core, Maxio writes any text that a spreadsheet could read as a formula as plain text. How that looks in the file depends on the export format you choose:

- **CSV** and **Unified CSV**: text that starts with `=`, `+`, `-`, `@`, a tab, a carriage return or a line break, or with the full-width `＝`, `＋`, `－` or `＠`, begins with a single quote (`'`) in the file. For example, a Customer named `=HYPERLINK("https://example.com")` appears as `'=HYPERLINK("https://example.com")`. Signed numbers, such as `-1,500.00`, `-15.50%` or `+3`, don't get the quote, so they still open as numbers.
- **Excel** and **OneDrive**, when those options are available to you: text is written as a text cell, so it opens exactly as entered and never as a formula or a link. Numbers and dates keep their types.
- **Google Sheets**: text is stored as plain text.

If you load a CSV or Unified CSV report export into another system, keep the leading `'` so the value can't run as a formula if someone opens or re-exports it in a spreadsheet. If your system needs the original text, remove the quote only in a data layer that never feeds a spreadsheet or CSV file, and apply the same protection again before any spreadsheet or CSV output.

## Parsing exported CSV files

We recommend identifying fields by their column headers (e.g., `customer_email`) rather than by position (for example, "column E"). Column order may vary depending on your export settings or if new fields are introduced.

Some exports, especially for Subscriptions, include optional fields such as:

- Custom fields
- Component data
- Estimated renewal amounts
- Last invoice totals

## Customizing export fields

You can control which optional fields are included in Subscription exports under **Config** > **Settings** > [**CSV Exports**](https://docs.maxio.com/configuration/advanced-billing/settings/csv-exports). This applies to data such as component data and estimated renewals. On sites using the newer Products catalog terminology, this same setting is labeled **Products** instead of **Components**.

Custom fields are controlled separately: each custom field has its own **Display Field Data on CSV Export** option, set on that field's own edit page under Setup > Custom Fields, rather than in the CSV Exports settings above.

To review every available field across export types, see [Billing Export Fields Reference](https://docs.maxio.com/insights/data-export/field-references/billing-export-fields-reference), [Product and Tax Export Fields Reference](https://docs.maxio.com/insights/data-export/field-references/product-and-tax-export-fields-reference), [Component Export Fields Reference](https://docs.maxio.com/insights/data-export/field-references/component-export-fields-reference), and [Cross-Site Export Fields Reference](https://docs.maxio.com/insights/data-export/field-references/cross-site-export-fields-reference).
