> ## Documentation Index
> Fetch the complete documentation index at: https://www.integrate.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# ETL: File Storage Options

> Common source and destination configuration options for file and object storage components in Integrate.io ETL.

This page is a reference for the configuration options that are shared across all file and object storage source and destination components: Amazon S3, Google Cloud Storage, Azure Blob Storage, SFTP, FTPS, and HDFS.

Provider-specific details (connection setup, which bucket or container label appears, which source actions are available for that provider) are documented on each provider's own page. The Google Drive source is documented on the [Google Drive](https://www.integrate.io/docs/etl/allowing-integrateio-etl-access-to-my-data-on-google-drive.md#google-drive-source-configuration) page because its options differ significantly from the other providers.

***

## Source Options

### Source Location

**Bucket / Container** (S3, GCS, Azure Blob only)

The name of the cloud storage bucket or container that holds the source files. The label varies by provider:

| Provider | Label |
| :- | :- |
| Amazon S3 | Bucket |
| Google Cloud Storage | Bucket |
| Azure Blob Storage | Container |
| SFTP, FTPS, HDFS | Not shown |

**Source path**

The path to the input folder, file, or pattern within the bucket or container (for object stores) or the server (for SFTP, FTPS, HDFS).

| Example | Description |
| :- | :- |
| `sales/2015/01/` | All files in a folder (not supported for GCS; use a pattern instead) |
| `sales/2015/01/log.csv` | A single file |
| `sales/2015/{01,02}/` | A glob pattern matching multiple folders |

You can use wildcard characters for [pattern globbing](https://www.integrate.io/docs/etl/using-pattern-matching-in-source-component-paths.md). File and directory names that begin with an underscore (`_`) or a dot (`.`) are ignored.

> [!NOTE]
>
> For SFTP and FTPS, the path must begin with `/`. Integrate.io prepends it automatically if omitted.

**Case insensitive file matching** (zip files only)

When the source path contains `.zip`, a **Case insensitive file matching** checkbox appears in **Advanced settings**. Enable it to match the zip file path without regard to letter case.

***

### Source File Format

**Record type**: the format of each record. Select the record type first:

| Type | Description |
| :- | :- |
| Delimited values | Fields separated by a delimiter (comma, tab, semicolon, pipe, or custom). See [Delimited values parameters](#delimited-values-parameters). |
| Excel | An `.xlsx` workbook. See [Excel parameters](#excel-parameters). |
| JSON object | Each record is a JSON object enclosed in `{}`. See [JSON parameters](#json-parameters). |
| Raw | The entire record is read as a single string or binary field. |
| Parquet | Reads `.parquet` files. Columns with `DATETIME`/`INT96` data type are not supported. |
| Fixed width | Positional text files with no separators: each line is one record and each field sits at fixed columns. See [Fixed width parameters](#fixed-width-parameters). |

> [!NOTE]
>
> Avro file format is not supported.

**Record delimiter**: what breaks the data into records. The editor asks for it only when the record type is **JSON object** or **Raw**. Delimited values, Excel, Parquet, and Fixed width files are always read one record per line.

* **New line** (`\n`, `\n\r`, `\r`): each line in the file is one record.
* **End of file**: each file is treated as a single record.

Source data can be compressed (zip, gzip, or bzip2) or uncompressed. Zip files can be password-protected; enter the password in the **Zip Password** field. Source data must be UTF-8 encoded. For other encodings, see [processing a different encoding](https://www.integrate.io/docs/etl/how-do-i-process-a-different-encoding.md).

**Advanced settings**: less common options sit in a collapsed **Advanced settings** section at the end of the source format step. These include the PGP key, the Excel workbook password, case-insensitive file matching, large Excel file streaming, and Excel column matching. The section header lists every option that is switched on, so you can see them without expanding it.

> [!NOTE]
>
> To read ASC X12 EDI files such as 834 benefit enrollment files, use the dedicated [EDI (X12) source](https://www.integrate.io/docs/etl/using-components-edi-x12-source.md) instead.

***

### Delimited Values Parameters

Applies when record type is **Delimited values**.

**Step 1**

**Field delimiter**: select comma, tab, semicolon, pipe, space, or `\u0001` from the dropdown, or select **Custom** and type a single character or escape sequence:

| Escape | Character |
| :- | :- |
| `\b` | Backspace |
| `\f` | Form feed |
| `\n` | Newline |
| `\r` | Carriage return |
| `\t` | Tab |
| `\'` | Single quote |
| `\"` | Double quote |
| `\` | Backslash |

**Step 2**

**String qualifier**: if fields are enclosed in quotes, select `'` or `"`. Any quote qualifier keeps line breaks inside quoted fields at runtime, so a quoted value that spans several lines is read as one field instead of being split into separate records. Select **None** when the files have no quote character; newlines then always end a record.

The **" (newline inside)** and **' (newline inside)** options behave the same as plain `"` and `'` at runtime. They are hidden from the dropdown unless the component already has one of them saved, so existing packages keep working.

> [!WARNING]
>
> If a file uses `"` or `'` as the qualifier but contains stray, unmatched quote characters in unquoted fields, several physical lines can merge into one record. Clean the source data or select **None** as the qualifier.
>
> If the stray quotes are inside quoted values instead (a value that starts with the qualifier, such as `"the right to park "six vehicles"`), don't select **None**: every quoted value that contains the delimiter would then be split. Turn on **Allow stray quotes in quoted fields** instead.

**Step 3**

**Escape character**: available when a string qualifier is set. Specifies the character used to escape qualifier characters within field data.

**Step 4**

**Allow stray quotes in quoted fields**: available when a string qualifier is set. Off by default. Turn it on for files where a qualifier inside a quoted value is not doubled or escaped, such as `"the right to park "six vehicles"`. Without it, such a quote ends the value early and every row after it can be lost while the job still completes. With it on, a qualifier ends a quoted value only when the field delimiter or the end of the line follows it; any other qualifier is kept as text, and `""` still means one qualifier, except directly before the delimiter or the end of the line, where it's a stray quote followed by the closing quote (`"park "six cars""` reads as `park "six cars"`).

> [!WARNING]
>
> A stray quote directly before the delimiter or at the end of a line still ends the value: it looks exactly like a closing quote. Leave the setting off for files with spaces between a closing quote and the delimiter, such as `"abc" ;"def"`, and for files that double every quote: with it on, a doubled quote directly before the delimiter inside a value (`"say ""hi"";bye"`) ends the value.

**Step 5**

**Header**: select where the header row is. See [Header options](#header-options).

***

### Header Options

Applies when record type is **Delimited values** or **Excel**. Select one **Header** option:

| Option | Description |
| :- | :- |
| **No header** | Every row is data. |
| **First row** | Row 1 is the header and is skipped. |
| **Detect** | Locates the header row by matching your schema column names. Use this when the header is not always on row 1 (for example, files with a leading title or blank rows before the header). For delimited files, the full schema header must still appear in column order. For Excel files, columns can be in any order. See [Header Name Matching](#header-name-matching). |
| **Custom rows** | Set **Header row** and **Data starts at row** yourself. **Data starts at row** must be greater than **Header row**. |

Parquet files carry their own schema, so the **Header** option is not shown for them.

***

### Excel Parameters

Applies when record type is **Excel**.

| Field | Description |
| :- | :- |
| **Select sheet by** | **Name**: target a sheet by its tab name. **Position**: target by position in the workbook (1 = first visible sheet, hidden sheets not counted). Leave both unset to combine all sheets (all sheets must share the same schema). |
| **Sheet Name** | Shown in Name mode. Enter the exact tab name. |
| **Sheet Number** | Shown in Position mode. Use position mode when the sheet name changes between files but its position stays the same. |
| **Ingest large Excel file** | In **Advanced settings**. Enables streaming mode for large files. Target a single sheet by name or position, or leave both unset to combine all sheets. |
| **Header** | Where the header row is. See [Header options](#header-options). |
| **Match columns by name** | In **Advanced settings**. Maps workbook columns to your schema by header name instead of position. Use when column order varies between files. Combined with the **Detect** header option, both the row and column order can vary. Glob patterns (e.g. `2025_*.xlsx`) are supported when matching by name. See [Header Name Matching](#header-name-matching). |

#### Password-Protected Workbooks

If a workbook is encrypted with a password (set via **Protect Workbook** in Excel), open **Advanced settings**, check **This file is password protected**, and enter the password in the **File Password** field. Integrate.io decrypts the workbook during schema preview and job runs. Passwords containing special characters such as `$` are supported.

The checkbox appears when the record type is **Excel**, whatever the file extension. It is not shown when the source path ends in `.xls`, because legacy `.xls` files are not supported for password decryption. Unchecking the box clears any saved password.

> [!NOTE]
>
> Password-protected workbooks do not use streaming mode. When a password is set, enabling **Ingest large Excel file** reads the workbook in standard mode.
>
> When streaming a single sheet, date cells come through as Excel serial numbers (e.g. `45306`). Declare those columns as `int` or `decimal` in your schema, or transform them downstream.

***

### Header Name Matching

The **Detect** header option and **Match columns by name** compare header cells in the file against the field names in your schema. The comparison is not an exact string match. It follows the same rules schema detection uses to turn a raw header into a field name:

* Matching is case-insensitive.
* Runs of spaces and underscores are treated as a single underscore, so the header `Customer Id` matches the field `customer_id`.
* Punctuation is ignored, so the header `Sales (USD)` matches the field `Sales_USD`.
* A leading run of underscores in a file header is ignored, so the header `_natural_key` matches the field `natural_key`. Schema detection cannot keep a leading underscore in a field name, and this rule lets the detected schema match the file it was detected from. Only leading underscores are dropped: `workflow_id_` does not match `workflow_id`, and `user_id` does not match `userid`.

For example, a file whose header row is:

```csv theme={null}
_id,_name,_city,_amount
```

matches a schema with the fields `id`, `name`, `city`, `amount`.

**Match columns by name** assigns exact matches first. The leading-underscore rule applies only to schema fields with no exact match, and only to columns that no other field claimed. If a workbook contains both an `id` column and an `_id` column, the schema field `id` maps to the `id` column.

If a job with the **Detect** header option fails with `no row matching expected columns [field1, field2, ...]`, the schema holds placeholder field names instead of the file's real header names. Re-detect the source schema, then rerun the job.

***

### JSON Parameters

Applies when record type is **JSON object**.

**Base record JSONPath Expression**: defines the base record and extracts nested objects or arrays.

| Preset | Behavior |
| :- | :- |
| Object | Uses the keys of the root JSON object as input fields. |
| Array | Uses the keys of JSON objects within an array as input fields. |
| Custom expression | Example: `$.data[*]/` extracts fields from objects inside an array named `data`. |

Read more about [processing JSON data](https://www.integrate.io/docs/etl/how-do-i-process-json-data.md).

***

### Fixed Width Parameters

Applies when record type is **Fixed width**. Use it for flat files where every field occupies a set range of columns on each line, such as benefits or payroll files built from a vendor's record layout. The layout uses the same field settings as the [fixed width destination](#fixed-width-layout), so one layout can describe both the file you read and the file you write.

The layout is set on the schema step, in place of the field list other formats use. It defines the source's fields, so the [Header options](#header-options) and the **Meta Data** fields are not available for this format.

#### Set up the field layout

Build the layout in one of three ways, then adjust it in the table:

* **Detect layout**: reads the first lines of the file and finds the fields from where the text lines up. Choose the connection and enter the file path first. When **Lines to skip** is set, the fields are named from the skipped header line. Fields that touch with no blank column between them can come out as one field, so check the result in the preview.
* **Import layout**: paste the layout table from your vendor's file specification, one field per line with its name and position. Typographic dashes and quotes from a Word or PDF document are fine. Positions can be given as start and length, start and end, or width only. A header row such as `Name / Start / Length / Format` tells the importer which column is which. A format column such as `N(9,2) zero-filled, right-justified` sets the alignment, padding, implied decimals, and data type (see [Formats in an imported layout](#formats-in-an-imported-layout)). Unused columns between fields become `filler_<start>` fields, which are not output by default. The dialog shows the parsed fields with a **Read as** column and an error on each line it can't read. Lines without numbers are skipped. Click **Use this layout** to apply it.
* **Add field**: add fields by hand.

> [!WARNING]
>
> Check the **Data type** of imported fields. A numeric format such as `N(5)` on an identifier or ZIP code is typed as long, which drops leading zeros, so set identifiers to string. For a date, check the **Date format** the import set against the dates in the file.

Detect layout and Import layout ask **Replace the field layout?** before replacing a layout you have already edited. Click **Replace** to apply the new layout or **Keep my layout** to cancel. Fields that keep their name keep their **Output** choice, so a field you left out stays out when you import an updated layout.

![Field layout of a fixed width source: lines to skip, the line filter, and the layout table with an amount field read with two implied decimals and a datetime birth\_date field with the date format yyyyMMdd](https://mintcdn.com/integrateio/jwajt7sMx5O3obpZ/images/creating-packages/file-storage-options/fixed-width-layout.png?fit=max\&auto=format\&n=jwajt7sMx5O3obpZ\&q=85\&s=29a16214ff68a61c8722eca38f4d22a2)

Each row of the layout table is one field, in file order. Drag rows to reorder them. The **Columns** start and end positions are computed from the widths, and the total record width is shown below the table.

| Column | Description |
| :- | :- |
| **Output** | Whether the field is one of the source's output fields. Clear it for filler or unused fields. At least one field must be output. |
| **Field name** | Letters, digits, and underscores, not starting with a digit. Must be unique. The name is also the field's alias downstream. |
| **Width** | Number of characters the field occupies. Whole number, 1-1000. |
| **Align** | **Left** or **Right**. Controls which side the pad character is removed from. |
| **Pad** | The single character that fills the unused part of the field. It is removed from the end of a left-aligned field and from the start of a right-aligned one. Empty means a space. |
| **Decimals** | Implied decimal places for amounts written without a decimal point. With `2`, `0000012345` reads as `123.45`. Values that are not all digits, apart from a leading `+` or `-`, are left as they are. |
| **Sign** | **None**, **Leading** (the field's first column is the sign), or **Trailing** (the field's last column is the sign). The value is negative when the sign column is `-`. A signed field needs a width of at least 2. |
| **Data type** | The type the field is cast to: string, int, long, float, double, boolean, or datetime. A value that does not fit the type is null in the job. |
| **Date format** | For a datetime field, how its dates are written: a pattern such as `yyyyMMdd`, `MM/dd/yyyy`, or `yyyy-MM-dd'T'HH:mm`, where `y` is the year, `M` the month, `d` the day, `H` the hour, `m` the minute, `s` the second, `S` a digit of a fraction of a second (`SSS` for milliseconds), `D` the day of the year (`yyyyDDD`), `h` the hour on a 12-hour clock with `a` for AM or PM, and `ZZ` a time zone such as `Z` or `+01:00`; quote any other letters. Leave it empty for ISO dates and timestamps such as `2026-01-31` or `2026-01-31T10:30:00Z`. A value that does not match, or an impossible date such as `20261345`, is null in the job, and the job continues. Patterns that would read the wrong date are rejected, such as `YYYYMMDD` (`D` is the day of the year), `yyyy-mm-dd` (`m` is the minute), and `HH:mm a` (`H` ignores AM and PM; use `hh` with `a`). A field with a **Date format** can't use `0` as its pad, because a date's zeros are part of it. |

#### Formats in an imported layout

When the pasted table has a **Format**, **Type**, or **Picture** column, or text after the position numbers, **Import layout** applies the settings that text states. The **Read as** column of the import preview shows what each field gets before you apply the layout.

| The layout says | The field gets |
| :- | :- |
| `N(9,2)`, `9(7)V99`, "implied 2 decimals", or `2` in a **Decimals** column | 2 implied decimals and data type double |
| `N(10)` or `9(10)`, or `Numeric` alone in a **Type** column | Data type long |
| `Decimal` alone in a **Type** column | Data type double |
| "zero-filled" or "zero-padded" | Pad `0`, right-aligned unless the layout says left-justified. Not for a date, whose zeros are part of it |
| "right-justified" or "left-justified" | The alignment |
| "leading sign" or "trailing sign" | The sign |
| `YYYY-MM-DD`, or an ISO timestamp such as `YYYY-MM-DDTHH:MM:SSZ` or `YYYY-MM-DD HH:MM:SS.SSS` | Data type datetime, read as ISO, which also takes a `T` or a space, a time zone written directly after the time with no space (`Z`, `+01:00`), and a date alone |
| `YYYYMMDD`, `MM/DD/YYYY`, `DD.MM.YY`, `DD-MON-YYYY`, or `CCYYDDD` | Data type datetime with that **Date format**: `yyyyMMdd`, `MM/dd/yyyy`, `dd.MM.yy`, `dd-MMM-yyyy`, `yyyyDDD` |
| Another timestamp, such as `YYYY-MM-DD-HH.MM.SS.NNNNNN` or `MM/DD/YYYY HH:MM:SS AM` | Data type datetime with that **Date format**: `yyyy-MM-dd-HH.mm.ss.SSSSSS`, `MM/dd/yyyy hh:mm:ss a` |

A mask has to be as wide as its field, though a fraction of a second may be shorter. On a wider field, such as `YYYY-MM-DD HH:MM:SS` on 23 characters or `MM/DD/YYYY` on 19, the mask leaves part of each value out, so the field is read as ISO when the mask is an ISO date or timestamp (`YYYY-MM-DD`, then optionally `T` or a space and the time) and stays a string otherwise. A timestamp with AM/PM, a 12-hour clock, a dotted or colon-less time, or a time zone after a space is not ISO: written with `HH`, `MM` and `SS` (such as `YYYY-MM-DD hh:mm:ss AM`), it gets its Date format when the mask fills the field. Other spellings, such as `HH12:MI:SS AM`, and masks narrower than the field stay a string. For an ISO mask on a wider field, the importer also reads the whole layout row: a row that mentions AM/PM, a 12-hour clock, a time zone offset (`+01:00`, `UTC+01:00`) or an example time followed by a zone (`10:30:00 EST`) anywhere, or a format with a word of up to five letters after the time and a space, such as `AM`, `UTC` or `est`, stays a string, since its values may hold what ISO can't read. `YYYY-MM-DD HH:MM:SS` on a 19-character field leaves no room for them and is read as ISO. A wider field also stays a string when the layout names a time the mask does not cover. A date may be narrower than its field only when the layout calls the field space-filled or justified and names no time the mask does not cover. When the layout names two masks, as in "YYYYMMDD, not YYYY-MM-DD", the one as wide as the field is used. A date with no mask, such as "Date" or "ISO 8601", stays a string. Anything else keeps the defaults: left-aligned, space padded, no implied decimals, string. Fields named `filler`, `reserved`, or `unused` start with **Output** cleared, like the gaps the importer fills.

![Import a record layout dialog: a vendor layout table with a Format column and the Read as column showing right-aligned, pad 0, Long, DateTime with yyyyMMdd, and two implied decimals, Double](https://mintcdn.com/integrateio/jwajt7sMx5O3obpZ/images/creating-packages/file-storage-options/fixed-width-import.png?fit=max\&auto=format\&n=jwajt7sMx5O3obpZ\&q=85\&s=8f32786a20adb37498b4a2be8c4d3074)

#### Skip and filter lines

| Setting | Description |
| :- | :- |
| **Lines to skip** | How many lines at the top of every file to skip before reading records, for example a title or column header line. `0` reads every line. |
| **Only read lines with** / **At column** | Reads only the lines that have this text starting at the given column (numbered from 1), usually a record type code. For example, `D` at column 1 keeps the detail lines and leaves out header and trailer lines. The match is exact and case-sensitive. Type the text, pick a value found in the sample, or use a package variable such as `$REC_TYPE`. Leave both empty to read every line. |

> [!NOTE]
>
> The job uses the value of a package variable in the line filter, but the preview and **Detect layout** match the text as typed. With a variable in the filter, the preview finds no lines.

#### Preview the records

Click **Load sample** to read the first lines of the file. The **Records** view shows the parsed records as the job reads them, before data types are applied. The **Lines** view shows the raw lines under a column ruler, with each field shaded and skipped or filtered lines marked.

![Records preview of a fixed width source: member numbers without their leading zeros and premiums read with two implied decimals](https://mintcdn.com/integrateio/HbauuD2ClS0jjXBA/images/creating-packages/file-storage-options/fixed-width-preview.png?fit=max\&auto=format\&n=HbauuD2ClS0jjXBA\&q=85\&s=12a3cd588f1716160b7c296a5d982adc)

> [!NOTE]
>
> The preview shows every value as text. A value that does not fit its data type or date format still shows in the preview but is null in the job's output. Check typed fields in the output of a first job run.

#### How values are read

* A trailing carriage return is dropped from every line, so Windows (CRLF) files read the same as Unix files.
* A line that ends before a field starts gives null for that field. A line that ends inside a field gives the part that is there. Short lines do not fail the job.
* The pad character is stripped from the aligned side. An empty or blank result is null, except that a field padded with `0` that holds only zeros reads as `0`.
* Implied decimals apply to values made of digits with an optional leading `+` or `-`: `-0012345` with 2 decimals reads as `-123.45`.
* A **datetime** field reads ISO dates, such as `2026-01-31` or `2026-01-31T10:00:00Z`, unless it has a **Date format**, which it is then read with. A value that does not match, an impossible date such as `20261345` included, is null, and the job continues.

> [!WARNING]
>
> Positions count characters, not bytes. If a vendor's layout counts bytes and the file contains multi-byte characters such as `é` or `ü`, every field after that character on the line is shifted by one column per extra byte. The job still completes.

Other limits:

* **Record delimiter** must be **New line**. Each line is one record.
* The path can point at a `.zip` file but not at a file inside one (such as `archive.zip/data.txt`).
* A file can have only one record layout. To read a file that mixes record types, use the line filter to keep one type per source component.

#### Configuring a fixed width source through the API

Through the API or the MCP server, set `record_type` to `fixed_width` and put the layout in `record_settings`:

* `fixed_width_fields`: the fields in file order. Each takes `name`, `width`, and optionally `align` (`left` or `right`, default `left`), `pad` (default a space), `implied_decimals` (default `0`), `sign` (`none`, `leading`, or `trailing`, default `none`), and `date_format` (the pattern a datetime field is read with, such as `yyyyMMdd`; omit it for ISO dates).
* `fixed_width_record_filter`: optional, `{ "start": <1-based column>, "value": "<text>" }`.
* `skip_header` skips the first line. To skip more, also set `customize_header_data_rows` to `true` and `data_row` to the first line to read.

The component's `schema.fields` select layout fields by name, in any order. Every schema field must match a layout field.

```json theme={null}
{
  "record_type": "fixed_width",
  "record_delimiter": "new_line",
  "record_settings": {
    "fixed_width_fields": [
      { "name": "rec_type", "width": 1 },
      { "name": "member_id", "width": 9, "align": "right", "pad": "0" },
      { "name": "last_name", "width": 20 },
      { "name": "amount", "width": 10, "align": "right", "pad": "0", "implied_decimals": 2, "sign": "leading" },
      { "name": "paid_on", "width": 8, "date_format": "yyyyMMdd" }
    ],
    "fixed_width_record_filter": { "start": 1, "value": "D" }
  },
  "schema": {
    "fields": [
      { "name": "member_id", "alias": "member_id", "data_type": "long" },
      { "name": "last_name", "alias": "last_name", "data_type": "string" },
      { "name": "amount", "alias": "amount", "data_type": "double" },
      { "name": "paid_on", "alias": "paid_on", "data_type": "datetime" }
    ]
  }
}
```

***

### Source Action

Determines what happens to source files during and after processing.

| Action | Description |
| :- | :- |
| **Process all files directly from source** | Default. Files are read and processed in place. |
| **Process only new files (Incremental load)** | Reads only files that have not been processed before, tracked via a manifest file. Not supported for Excel. See [incremental load](https://www.integrate.io/docs/etl/how-do-i-read-data-from-file-storage-incrementally.md). |
| **Copy, merge and process all files** | Reads all files, merges them into larger files, then processes. Use for sources with many small files. Fails if the input path points to a single file. Not available for all providers. Check your provider's page. |
| **Move processed files to another folder** | Moves source files to a backup directory after processing. |

> [!NOTE]
>
> Available source actions vary by provider. Not all actions are available for every storage type. Refer to your provider's page for details.

#### Incremental Load (Process Only New Files)

| Field | Description |
| :- | :- |
| **Manifest connection** | The connection used to store the manifest file. Defaults to the source connection. |
| **Manifest path** | Path to the manifest file, e.g. `bucket/path/to/manifest.gz`. Created on first run. Each run compares the current file listing to the manifest and processes only new files. Previous manifests are kept as backups. |

#### Move Processed Files

| Field | Description |
| :- | :- |
| **Destination path** | The folder to move processed files to. |
| **Append string to filename** | Optionally append a custom string (e.g. `_processed`) to each moved file's name. Not available for Google Drive sources. |

When **Append string to filename** is checked, enter the string in the field that appears. Use it to tag archived files with the run they came from, or to stop repeat runs of the same source filename from overwriting each other in the archive folder. A checked box with an empty string does nothing.

If the filename has an extension, the string is inserted before the last dot. Otherwise it is added to the end. For example, `report.csv` with `_processed` becomes `report_processed.csv`, and `data.tar.gz` with `_v2` becomes `data.tar_v2.gz`.

The string can be literal text, a job or package variable, or a combination:

* Literal: `_processed`
* Job variable: `_$_JOB_ID`
* Combined: `_processed_$_JOB_ID`, `_${PACK_VAR}_v2`

The string can't contain `/`, a line break, a backtick, a double quote, or `$(`. Components with these characters can't be saved.

> [!NOTE]
>
> With this option on, each archived file is staged on the cluster before it is written to the archive folder, and renamed there. On Amazon S3, Google Cloud Storage, and Azure Blob Storage this doubles the archive transfer and adds one rename per file, which a source that archives hundreds of files per run may notice. If any file fails to rename, the job fails and the original source files are not deleted.

***

### PGP Decryption

To decrypt source files encrypted with OpenPGP, open **Advanced settings**, set **Decrypt file** to **PGP**, and pick an active entry. The entry must hold a private key. Integrate.io decrypts each matching file before parsing it. Encryption and compression can be combined in either order: `member.csv.gz.pgp` is decrypted and then decompressed, and `member.csv.pgp.gz` is decompressed and then decrypted.

> [!NOTE]
>
> Paths that contain a space, semicolon, or parenthesis are not supported when a PGP key is set.

See [PGP Keys](https://www.integrate.io/docs/etl/pgp-keys-account-level.md) for how to add and manage keys.

***

### Source Schema

After defining the source location and format, select the fields to include.

| Format | Schema behavior |
| :- | :- |
| Delimited values | Fields are read by position. Define all fields in order. |
| JSON | Define only the fields you want to use. Specify the JSON key for each field. |
| Raw | Single field containing the entire record. |
| Fixed width | Fields come from the [field layout](#fixed-width-parameters). Select the output fields there. |

For each field, define:

* **Alias**: how to refer to the field in downstream components. Illegal characters are flagged before you close the dialog.
* **Data type**: the type to cast the field to.
* **Key** (JSON only): the key name in the source JSON.

You can also add fields from the **Meta Data** section. They are not read from the file: Integrate.io fills them in for every row. A preview reads only the first file the path matches, so every preview row shows that file's path and time; a job run fills in each row's own file. Change a meta data field's alias to choose its column name. If the file already has a column named `file_path` or `file_modified_at`, that column is read like any other and the meta data field of the same name isn't offered.

| Field | Type | Value |
| :- | :- | :- |
| `file_path` | string | The path of the file the row was read from. |
| `file_modified_at` | datetime | The last-modified time of the file the row was read from, in UTC. Every row from the same file gets the same value. |

Use `file_modified_at` to tell apart deliveries of a file that keeps the same name, or to keep only the newest version of a resent file. It is the time the storage reports for the file, not the time the job ran (for that, use the `$_JOB_SUBMISSION_TIMESTAMP` variable):

* **Amazon S3, Google Cloud Storage, Azure Blob Storage**: when the object was last written, usually the upload time.
* **SFTP, HDFS**: the file's modification time, to the second.
* **FTPS**: depends on the server. Many FTP servers report times only to the minute, and some in the server's local time zone.
* **A file inside a zip archive** (a path such as `archive.zip/data.csv`): the archive's time.

Some transfer tools keep the original file's time when they copy it (for example `rsync -t` or `scp -p`). For files delivered that way, the value is when the file was created at the sender, not when it arrived.

> [!NOTE]
>
> `file_modified_at` is not available for Excel, Parquet, XML, EDI (X12) or whole-file raw sources, for a path ending in `.zip`, for Google Drive, or with the **Process only new files (Incremental load)** and **Copy, merge and process all files** source actions. In those cases the files are copied before they are read, and the copy does not keep the original time.

***

## Destination Options

### Target Location

**Bucket / Container** (S3, GCS, Azure Blob only)

The name of the target bucket or container. The label varies by provider:

| Provider | Label |
| :- | :- |
| Amazon S3 | Bucket |
| Google Cloud Storage | Bucket |
| Azure Blob Storage | Container |
| SFTP, FTPS, HDFS | Not shown |

**Target directory**: the directory within the bucket or container where output files are written. One or more files are created in this directory. New destination components default to **Copy into the existing directory** with [Create missing folders](#create-missing-folders) checked, so the job creates the directory and any missing parent folders before it copies the files (see [Destination Action](#destination-action)).

***

### Destination Format

| Format | Description |
| :- | :- |
| **Delimited values** | CSV, TSV, or any delimiter-separated format. Output files are UTF-8 encoded. |
| **Line delimited JSON** | One JSON object per line. UTF-8 encoded. |
| **Parquet** | Columnar format compatible with Athena, Impala, Presto, and other tools. `datetime` and complex types are not supported. Compression is not available for Parquet. |
| **XML** | One well-formed XML document per output file. UTF-8 encoded. Available for Amazon S3, SFTP, and FTPS destinations only. See [XML Options](#xml-options). |
| **Excel (XLSX)** | One `.xlsx` workbook per output file, with a single sheet. Available for SFTP, Amazon S3, Google Cloud Storage, and Azure Blob Storage destinations only. See [Excel Options](#excel-options). |
| **Fixed width** | Records written as fixed-width lines with no separators. Requires configuring the [Fixed Width Layout](#fixed-width-layout). |

**Advanced settings**: compression, PGP encryption, file names, skipping empty output, escape character, line ending, character encoding, and XML document structure sit in a collapsed **Advanced settings** section of the destination editor. The section header lists every option that is switched on, so you can see them without expanding it.

***

### Delimited Values Options

| Field | Description |
| :- | :- |
| **Delimiter** | Character separating fields. Select from the dropdown or type a single character. Default is tab. |
| **String qualifier** | If selected (`'` or `"`), fields containing the delimiter are enclosed in quotes. |
| **Escape character** | Available when a string qualifier is set. Character used to escape qualifier characters in field data. |
| **Line ending** | **Unix/Linux (LF)** or **Windows (CRLF)**. |
| **Write field names in first row** | Adds a header row with field names to each output file. |

**Header names with spaces**: use triple underscores (`___`) in the alias or column name in a Select component to produce a space in the output header. To use a different separator character, add a package variable `_FS_REPLACE_WITH_SPACE_IDENTIFIER` with the character you want to replace.

***

### XML Options

Applies when **Destination format** is **XML**. Each output file is a single XML document: a root element wrapping one record element per output record. Each field is written as a child element named after its field alias.

XML output is available for Amazon S3, SFTP, and FTPS destinations. The XML format button appears only when the component's connection is one of those types. A package saved with XML on any other backend fails validation with an error naming the supported backends.

| Field | Description |
| :- | :- |
| **Root element** | The name of the document's root element. Defaults to `records`. Leave empty to use the default. |
| **Record element** | The name of the element written for each record. Defaults to `record`. Leave empty to use the default. |

Both names must be valid XML element names: a letter or underscore, followed by letters, digits, underscores, hyphens, or periods. Colons are not allowed. An invalid name shows an inline error in the editor and fails when you save the package, not when the job runs.

For example, with root element `customers` and record element `customer`:

```xml theme={null}
<?xml version="1.0" encoding="UTF-8"?>
<customers>
  <customer>
    <id>1</id>
    <name>Acme &amp; Co</name>
    <email/>
  </customer>
</customers>
```

#### Document structure (optional)

Use these options when the consumer of the file dictates the shape of the whole document, such as a two-section import file or a feed that expects a specific declaration. Every option is off unless you set it, so an XML destination saved without them writes the same bytes it wrote before.

| Field | Description |
| :- | :- |
| **Root attributes** | Attributes written on the root element, in the order you type them. Format each as `name="value"`. Values cannot contain spaces, quotes, backslashes, or `$`. Use one pair per attribute, separated by whitespace. A name may carry one namespace prefix, for example `xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"`. A repeated attribute name is rejected on save. |
| **Standalone document** | Adds `standalone="yes"` to the XML declaration. |
| **Section element** | Wraps every record in a fixed section element with this name, between the root and each record element. The name is a constant, not read from the data. Use this when the section name is the same for every record. The name must be a valid XML element name. This option does not require **Merge output to single file**. Each part file writes a complete document with its own section wrapper. Mutually exclusive with **Section field**: set one or the other, never both. |
| **Section field** | The name of a column, not the section name itself. For a fixed name, use **Section element** instead. Wraps records in a section element named by the value of this column. The section opens when the value first appears, closes when it changes, and the column itself is not written. A null or empty value puts the record directly under the root. Needs **Merge output to single file**. The ordering that keeps each section together is handled for you. Mutually exclusive with **Section element**. |
| **Record element field** | The name of a column, not the record element name itself. For a fixed name, use **Record element** instead. Names each row's record element from the value of this column, so one document can hold several record types. A null or empty value falls back to **Record element**. The column itself is not written. |
| **Omit empty fields** | Leaves out a child element whose value is null, an empty string, or an empty container. Use this when rows of different shapes share one schema. |
| **Repeat nested groups** | Writes a repeated group as sibling elements sharing one name, instead of one wrapper element holding an `<item>` per entry. A single-field tuple inlines its value. An empty group is absent. |

Both field options are checked against the destination's field list when you save. A name that does not match a written field fails on save with a message that lists the fields it saw. A section that reappears after it closed fails the job with a message that names the section field.

With **Root element** set to `ConfigDataImport`, **Record element** set to `PositionType`, and **Section element** set to `Position`:

```xml theme={null}
<?xml version="1.0" encoding="UTF-8"?>
<ConfigDataImport>
  <Position>
    <PositionType>
      <id>1</id>
      <title>Engineer</title>
    </PositionType>
    <PositionType>
      <id>2</id>
      <title>Manager</title>
    </PositionType>
  </Position>
</ConfigDataImport>
```

For example, with root attributes `xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"`, **Standalone document** enabled, **Section field** set to `section`, and **Record element field** set to `record_type`:

```xml theme={null}
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<records xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <Position>
    <Position>
      <code>P001</code>
      <title>Engineer</title>
    </Position>
  </Position>
  <PositionAssignment>
    <PositionAssignment>
      <employee>E100</employee>
      <position>P001</position>
    </PositionAssignment>
  </PositionAssignment>
</records>
```

With **Repeat nested groups** on, a bag column named `ContactInformation` holding two tuples writes as:

```xml theme={null}
<Employee>
  <id>E100</id>
  <ContactInformation>
    <type>email</type>
    <value>a@example.com</value>
  </ContactInformation>
  <ContactInformation>
    <type>phone</type>
    <value>555-0100</value>
  </ContactInformation>
</Employee>
```

With the option off, the same bag writes as one `<ContactInformation>` wrapper holding two `<item>` entries.

Output is always well-formed XML, regardless of the data:

* The characters `&`, `<`, and `>` are escaped. Control characters that XML 1.0 does not allow are dropped. Tabs and newlines are preserved. A carriage return is written as the character reference `&#13;` so parsers read it back unchanged.
* A null value is written as an empty element (`<email/>`). An empty string is written as an open and close tag.
* A nested record becomes nested elements named by its own fields. A bag becomes repeated `<item>` elements. A map becomes one child element per key. Keys that are not valid XML element names are written as `<entry key="...">` with the key kept verbatim.
* A field alias that is not a valid XML element name is adjusted to a valid one. Sibling elements that would end up with the same name get a numeric suffix to stay distinct.

XML output is always UTF-8. The document declares `encoding="UTF-8"`, so the [character encoding](#character-encoding) selector is not shown for XML destinations. Setting any other encoding through the API fails on save.

Selecting XML turns on [Merge output to single file](#merge-output-to-single-file) so one job writes one document in one file. You can uncheck it to write one document per part file. The suggested [file name suffix](#target-file-names) is `.xml`.

A job that produces zero records writes a document with the declaration and an empty root element, for example `<?xml version="1.0" encoding="UTF-8"?><records></records>`. An empty XML file is not a valid document, and most parsers reject it. Enable [Skip Empty Output](#skip-empty-output) to write no file at all when there are no rows.

***

### Excel Options

Applies when **Destination format** is **Excel (XLSX)**. Each output file is an `.xlsx` workbook with one sheet. The sheet holds an optional header row of field aliases, then one row per record.

Use Excel output when the consumer of the file expects a workbook rather than a CSV, such as a business user or an import tool that only accepts `.xlsx`.

Excel output is available for SFTP, Amazon S3, Google Cloud Storage, and Azure Blob Storage destinations. The **Excel (XLSX)** format button appears only when the component's connection is one of those types. A package saved with Excel on any other connection type, such as FTPS or HDFS, fails validation with the error `Excel (XLSX) output is not yet available for <provider> connections; it is available for SFTP, Amazon S3, Google Cloud Storage and Azure Blob Storage`.

Selecting Excel turns on [Merge output to single file](#merge-output-to-single-file), so one job writes one workbook. You can uncheck it to write one workbook per part file.

| Field | API attribute | Description |
| :- | :- | :- |
| **Sheet name** | `sheet_name` | The name of the sheet in each workbook. Defaults to `Sheet1`. Leading and trailing spaces are removed. Leave empty to use the default. |
| **Write field names in first row** | `write_header` | Writes the field aliases as the first row of the sheet. On by default. |

The sheet name must follow these rules. A name that breaks one shows an inline error in the editor and fails when you save the package, not when the job runs.

* At most 31 characters. Emoji and some other symbols count as two characters.
* None of these characters: `:` `\` `/` `?` `*` `[` `]`.
* No spaces or other whitespace. Use an underscore instead, for example `Q1_Sales`.
* No `$`, no double quote (`"`), and no control characters.
* Does not start or end with an apostrophe (`'`), and does not start with a hyphen (`-`).

Excel output has these restrictions:

* Each sheet holds at most 1,048,576 rows, including the header row. A job that writes more rows to one file fails rather than truncating the output.
* Output is always UTF-8. The [character encoding](#character-encoding) selector is not shown for Excel, and setting another encoding through the API fails on save.
* [Output compression](#output-compression) is not available. The compression selector is not shown for Excel, because an `.xlsx` file is already a compressed archive.
* The suggested [file name suffix](#target-file-names) is `.xlsx`. If you do not set a suffix, Integrate.io adds `.xlsx` to each output file.
* With [PGP encryption](#pgp-encryption) on, the workbook is first assembled in a temporary file on the task node, and that temporary file is not encrypted. Only the output file written to the destination is encrypted.

To create an Excel destination through the [API](https://www.integrate.io/docs/etl/integrateio-etls-api.md), set the component's destination type as follows:

```json theme={null}
{
  "destination_type": {
    "xlsx_destination_type": {
      "sheet_name": "Customers",
      "write_header": true
    }
  }
}
```

***

### Output Compression

Available for Delimited values, JSON, XML, and Fixed width formats. Not available for Parquet or Excel.

| Option | File suffix added |
| :- | :- |
| None | (none) |
| Gzip | `.gz` appended to output directory name |
| Bzip2 | `.bz2` appended to output directory name |

***

### PGP Encryption

To encrypt output files with a trading partner's OpenPGP public key, open **Advanced settings**, set **Encrypt output** to **PGP**, and pick an active entry. The entry must hold a public key. Files are compressed first, then encrypted, then written to the target path, and `.pgp` is appended to each file name (for example `part-m-00000.gz.pgp`).

> [!NOTE]
>
> Paths that contain a space, semicolon, or parenthesis are not supported when a PGP key is set.

See [PGP Keys](https://www.integrate.io/docs/etl/pgp-keys-account-level.md) for how to add and manage keys.

***

### Destination Action

Controls how output files are written and what happens when the target directory already exists.

New destination components default to **Copy into the existing directory**, with [Create missing folders](#create-missing-folders) checked. Components that were saved earlier keep their saved action. If a component has no saved action, for example a package created through the API, the job fails if the target directory exists.

| Action | Description |
| :- | :- |
| **Write files, fail if the directory exists** | The job fails if the destination directory already exists. Use variables to generate unique directory names per run (e.g. `/output/${_JOB_ID}`). |
| **Write files, replace the directory** | Deletes the existing directory before writing. |
| **Write files, replace existing files** | Writes to the existing directory. Files with the same names are overwritten. To add files without overwriting, use a unique file prefix (e.g. include `${_JOB_ID}`). If the job fails, the target directory and its existing files are kept. Files the job wrote before it failed stay in the directory, so it can hold partial output from the failed run. |
| **Copy into the existing directory** | Default for new components. Writes to intermediate storage first, then copies to the target directory. The target directory must already exist unless [Create missing folders](#create-missing-folders) is checked. Supports [character encoding](#character-encoding) selection. |
| **Copy into a new directory** | Writes to intermediate storage first, then copies to a new target directory. Fails if the directory already exists. Its parent folder must already exist unless [Create missing folders](#create-missing-folders) is checked. |

#### Staging folder

With **Write files, fail if the directory exists**, **Write files, replace the directory**, and **Write files, replace existing files**, each job writes its files through its own staging folder inside the target directory. The folder is named `_xplenty_staging_<job ID>` and appears only while the job runs. The job removes it when it completes, fails, or is stopped. Earlier versions used a single `_temporary` folder shared by all jobs.

If a job ends abruptly, for example because its cluster is terminated, its staging folder can remain with partial files. A later job that writes to the same directory deletes staging folders whose files are all older than 7 days.

#### Writing to the same directory from several packages

Several packages can write to the same target directory at the same time. Each job stages its files separately, so concurrent jobs no longer remove each other's output.

**Write files, replace the directory** deletes the whole directory, including files that other packages wrote or are still writing. If the directory is deleted while another job writes to it, that job fails with an error like this:

```text theme={null}
Destination <path> was deleted while the job was running (...), so output this job wrote may be missing.
```

A failed run of a package set to **Write files, fail if the directory exists** also deletes its target directory and causes the same error. Before this check, such jobs could complete with missing files.

To fix the error, give the package that deletes the directory its own target directory, then run the failed job again. For packages that share a directory, use **Write files, replace existing files** or **Copy into the existing directory**, with a unique file prefix such as `${_JOB_ID}`.

***

### Merge Output to Single File

Check **Merge output to single file** to write all output to a single file rather than multiple part files. Note that file size limits on some platforms may cause the job to fail for large outputs.

***

### Create Missing Folders

Available only when **Destination action** is set to **Copy into the existing directory** or **Copy into a new directory**. New destination components have it checked.

![Destination properties of a file storage destination: Copy into the existing directory, with Create missing folders checked below Merge output to single file](https://mintcdn.com/integrateio/8ochwdcgohHi-o7H/images/creating-packages/file-storage-options/create-missing-folders.png?fit=max\&auto=format\&n=8ochwdcgohHi-o7H\&q=85\&s=189605d20d835a1a6004286d45299802)

When **Create missing folders** is checked, the job creates the folders the copy needs before it copies the files, so you don't have to create them by hand before the first run.

| Destination action | Folders the job creates |
| :- | :- |
| **Copy into the existing directory** | The target directory and any missing parent folders. A directory that already exists is left as it is. Nothing is created when the job writes no files, for example when it produces zero records with [Skip Empty Output](#skip-empty-output) checked. |
| **Copy into a new directory** | Any missing parent folders, even when the job writes no files. The job still creates the new directory itself, and still fails if it already exists. |

With **Copy into the existing directory**, when the path names the output file, only the folder the file goes in is created. A path names a file when its last part ends in an extension such as `.csv`, or when **Merge output to single file** is checked and its last part is a package variable such as `${file_name}`. Any other path is a folder, and the job creates the whole path. For example:

| Target path | Folder the job creates |
| :- | :- |
| `/exports/orders/2026/` or `/exports/orders/2026` | `/exports/orders/2026` |
| `/exports/orders/2026/orders.csv` | `/exports/orders/2026` |
| `/exports/${file_name}`, with **Merge output to single file** checked | `/exports` |
| `/exports/${run_date}/`, with **Merge output to single file** checked | `/exports/${run_date}` |

A trailing `/` always makes the path a folder. Use it for a per-run folder named by a variable, such as `/exports/${run_date}/`, or a folder whose name has a dot, such as `/exports/v1.2/`.

On Amazon S3, Google Cloud Storage, and Azure Blob Storage, creating a folder writes an empty folder marker object, for example `orders/2026/`, so the connection needs permission to create it.

If the connection user is not allowed to create one of these folders, the job stops before it copies any files, with an error like this:

```text theme={null}
ERROR: Could not create the destination folder /exports/orders/2026. Check that the connection user has permission to create folders there, or create the folder in advance.
```

The message names the folder as configured. For Amazon S3, Google Cloud Storage, and Azure Blob Storage, it starts with the bucket or container name. With **Copy into a new directory**, it names the parent folder.

Components saved before this option was added keep it unchecked. So do components created through the API, unless they set `create_missing_directories` to `true`. When it is unchecked, the target directory must already exist, or for **Copy into a new directory**, its parent folder.

***

### Character Encoding

Available only when **Destination action** is set to **Copy into the existing directory**.

| Option | Description |
| :- | :- |
| UTF-8 | Default |
| UTF-16 | |
| Shift-JIS | |
| CP932 | |

XML destinations require UTF-8. The selector is not shown for XML, and setting another encoding through the API fails on save.

Excel destinations also require UTF-8. The selector is not shown for Excel, and setting another encoding through the API fails on save.

***

### Target File Names

**Default pattern**: output files are named `part-[mr]-[0-9]{5}` (e.g. `part-m-00000`).

To use a custom pattern, select **Custom pattern**:

| Field | Description |
| :- | :- |
| **File name prefix** | Leave empty to keep the default prefix (`part-[mr]-`), or enter a custom prefix. Supports [package variables](https://www.integrate.io/docs/etl/using-and-setting-variables-in-your-packages.md) for dynamic names (e.g. a timestamp). |
| **File name suffix** | Integrate.io suggests a suffix based on the selected format and compression type. |

***

### Fields

The **Fields** step lists the fields this destination writes and the order it writes them in. It appears for every destination format. The table has one row per field and needs a connected input: a destination must write at least one field, so connect an input before you save.

You can edit the list directly:

* Drag a row to change the position of a field in the output.
* Remove a row to leave that field out of the output.
* Add a row and pick any field the input carries.
* Click **Auto-fill fields** to replace the list with every field the input carries, in input order.

Until you edit the list, the destination writes every field the input carries, in input order, and picks up fields the input gains later. Once you remove, add, or reorder a field, the destination writes exactly the listed fields in the listed order, and a field the input gains later is not added on its own. Use **Auto-fill fields** to take the whole input again and return to the default behavior.

If a field in the list no longer exists in the input, the editor drops it from the list, since there is nothing left to write for it.

You no longer need a [Select transformation](https://www.integrate.io/docs/etl/using-components-select-transformation.md) just to choose or reorder output fields. A Select is still needed for anything else, such as computed expressions.

#### Configuring Fields Through the API

The selection persists as `project_schema_fields` on the destination component. When it is `true`, the component's `schema` fields define the output:

```json theme={null}
{
  "project_schema_fields": true,
  "schema": {
    "fields": [
      { "name": "id", "alias": "id", "data_type": "string" },
      { "name": "email", "alias": "email_address", "data_type": "string" },
      { "name": "created_at", "alias": "created_at", "data_type": "string" }
    ]
  }
}
```

This writes three columns, `id`, `email_address`, and `created_at`, in that order. Each field is written under its `alias`, so an alias that differs from the name renames the column. Renaming is available only through the API; the **Fields** step sets the alias equal to the name. Fields the input carries that are not listed are not written.

When `project_schema_fields` is unset or `false`, the schema has no effect on the output and the destination writes every incoming field. Existing packages keep this behavior.

If you author packages through the API and don't maintain the schema, leave the option off. With it on, a stale field list drops fields added upstream.

When `project_schema_fields` is `true`, saving the component checks that:

* The schema lists at least one field.
* Every field name is a valid field reference, and every alias a valid field name.
* No two fields are written under the same alias.
* With the **Fixed width** format, the layout lists the written fields in the same order.

***

### Fixed Width Layout

When **Destination format** is set to **Fixed width**, each row in the [Fields](#fields) step gains per-field layout settings. Fields are written in the listed order with no separators between columns, one column per field, padded to its width.

| Column | Description |
| :- | :- |
| **Field** | The field being written. Set in the [Fields](#fields) list. |
| **Width** | Number of characters this field occupies. Whole number, 1-1000. |
| **Align** | **Left** or **Right**. Controls which side padding is added to. |
| **Pad** | Single character used to fill unused width. Defaults to a space. |
| **If too long** | **Fail the job** (stops on first overflow; always applies to numeric fields) or **Truncate** (text fields only). |
| **Decimals** | Implied decimal places for numeric fields. `0` writes the value as-is. With `2`, the value `12.34` is written as `1234`. Values are rounded HALF\_UP. Whole number, 0-1000. |
| **Sign** | Where to place the sign for numeric fields: **None**, **Leading** (start of field), or **Trailing** (end of field). |

The total record width in characters is shown below the table and updates as you edit.

#### Preview with Data

Click **Preview with data** to run the component through the previewer and see the actual records the job would write. Rows whose sample value does not fit the configured width are marked with an advisory message. Blocking errors (invalid width, pad, or decimals) appear in the errors box and prevent saving.

#### Persisted Layout Format

The layout is stored as `fixed_width_destination_type` on the component. Example:

```json theme={null}
{
  "fields": [
    {
      "name": "id",
      "width": 8,
      "align": "right",
      "pad": "0",
      "on_overflow": "fail",
      "implied_decimals": 0,
      "sign": "none"
    },
    {
      "name": "amount",
      "width": 12,
      "align": "right",
      "pad": " ",
      "on_overflow": "fail",
      "implied_decimals": 2,
      "sign": "leading"
    }
  ],
  "record_delimiter": "\n",
  "char_encoding": "UTF-8"
}
```

`record_delimiter` and `char_encoding` round-trip through the API but are not editable in the UI.

***

### Skip Empty Output

Available for Delimited values, JSON, XML, and Fixed width formats. When checked, no output files are written if the job produces zero records. Useful for downstream processes that should not receive empty files.

***

## FAQ

**Which source actions are available for my storage provider?**

It depends on the provider. Amazon S3, GCS, and SFTP/FTPS support all four actions. Azure Blob Storage supports three. HDFS supports only "process all files directly." Check your provider's page for the exact list.

**How do I read a fixed-width file with header and trailer records?**

Set **Record type** to **Fixed width**. If the header and trailer lines carry a record type code, set **Only read lines with** to the detail code (for example `D` at column 1). If they don't, use **Lines to skip** for the header and drop the trailer with a [Filter](https://www.integrate.io/docs/etl/using-components-filter-transformation.md). See [Fixed width parameters](#fixed-width-parameters).

**Can I read compressed files?**

Yes. Source files can be zip, gzip, or bzip2 compressed. Password-protected zip files are also supported; enter the password in the **Zip Password** field.

**Can I read files in a different character encoding?**

Source data must be UTF-8 encoded. For other encodings, see [processing a different encoding](https://www.integrate.io/docs/etl/how-do-i-process-a-different-encoding.md).

**How does incremental load work?**

Integrate.io tracks which files have been processed in a manifest file stored at a path you specify. Each run compares the current file listing to the manifest and reads only new files. See [reading file storage data incrementally](https://www.integrate.io/docs/etl/how-do-i-read-data-from-file-storage-incrementally.md).

**Can I write to a single output file instead of multiple part files?**

Yes. Enable **Merge output to single file** in the destination component. Be aware that very large outputs may exceed file size limits on some platforms.

**Does the job create the target directory if it doesn't exist?**

It depends on the destination action:

* **Write files** actions: yes. The directory is created as the files are written.
* **Copy into the existing directory**: only when [Create missing folders](#create-missing-folders) is checked, which is the default for new destination components. The job then creates the directory and any missing parent folders before it copies the files.
* **Copy into a new directory**: yes, the job creates the new directory. With Create missing folders checked it also creates any missing parent folders. With it unchecked, the parent folder must already exist.

**How do I include spaces in output header names?**

Use triple underscores (`___`) in the alias in a Select component. They become spaces in the output header. To use a different replacement character, set the package variable `_FS_REPLACE_WITH_SPACE_IDENTIFIER`.

***

## Related

> [card] [Reading File Storage Data Incrementally](https://www.integrate.io/docs/etl/how-do-i-read-data-from-file-storage-incrementally.md)

> [card] [Selecting File Input Format](https://www.integrate.io/docs/etl/how-do-i-select-my-file-input-format.md)

> [card] [Pattern Matching in Source Paths](https://www.integrate.io/docs/etl/using-pattern-matching-in-source-component-paths.md)

> [card] [PGP Keys](https://www.integrate.io/docs/etl/pgp-keys-account-level.md)

> [card] [Using Variables in Packages](https://www.integrate.io/docs/etl/using-and-setting-variables-in-your-packages.md)

> [card] [EDI (X12) Source](https://www.integrate.io/docs/etl/using-components-edi-x12-source.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.