---
url: >-
  /flow/guide/administering-flow/configuring-flow/data-definitions/file-definitions/file-definition/main-screen.md
---

# Main Screen (File Definition)

![](/flow/images/file-definition-general-_607x659.jpg)

### Fields

| Field Name | Description |
|---|---|
| [File Type](/flow/guide/administering-flow/configuring-flow/data-definitions/file-definitions/file-definition/main-screen/general-tab/#file-type) | Select either Flat File, XML File, EDI File (EDIFACT or X12), or Excel File. |
| [File Definition Name](/flow/guide/administering-flow/configuring-flow/data-definitions/file-definitions/file-definition/main-screen/general-tab/#file-definition-name) | A friendly name for the File Definition. |
| [DB Connection](/flow/guide/administering-flow/configuring-flow/data-definitions/file-definitions/file-definition/main-screen/general-tab/#db-connection) | Select the DB Connection(s) used on this File Definition. This is a design time setting, and can be overridden with run time setting on the Action. |
| [File Connection](/flow/guide/administering-flow/configuring-flow/data-definitions/file-definitions/file-definition/main-screen/general-tab/#file-connection) | Select the File Connection used on this File Definition. This is a design time setting, and can be overridden with run time setting on the Action. |
| Type-specific fields | See [General Tab - Flat File](/flow/guide/administering-flow/configuring-flow/data-definitions/file-definitions/file-definition/main-screen/general-tab/general-tab-flat); orSee [General Tab - XML File](/flow/guide/administering-flow/configuring-flow/data-definitions/file-definitions/file-definition/main-screen/general-tab/general-tab-xml); orSee [General Tab - EDI File](/flow/guide/administering-flow/configuring-flow/data-definitions/file-definitions/file-definition/main-screen/general-tab/general-tab-edi); orSee [General Tab - Excel File](/flow/guide/administering-flow/configuring-flow/data-definitions/file-definitions/file-definition/main-screen/general-tab/general-tab-excel) |

### Tabs

| Tab Name | Description |
|---|---|
| [General](/flow/guide/administering-flow/configuring-flow/data-definitions/file-definitions/file-definition/main-screen/general-tab/) | General options you need to fill in for all File Definitions (although the detail will depend on the File Type of the File Definition). |
| [Partner Identification](/flow/guide/administering-flow/configuring-flow/data-definitions/file-definitions/file-definition/main-screen/partner-identification-tab/) | Deprecated - use [partner functions](/flow/guide/scripting-reference/functions/trading-partner/partner) and [custom script actions](/flow/guide/administering-flow/configuring-flow/actions/action/action-steps-tab/custom-script-action/). These options allow you to specify how partners are identified based on values in the File. These settings are optional. |

### Buttons

| Button Name | Description |
|---|---|
| Save | Click to save any changes you have made. All changes will be lost if you do not click the Save button. |
| Cancel | Click to cancel any changes you have made |
| Delete | Click to delete this module. You will be asked to confirm your choice. |
| Design | Click this window to open the designer. You should populate the fields of the Main Screen prior to designing the File Definition. |
| Test File Load | Click this button to load a file into the definition. The associated File Connection will be used to find a file to load - ensure a file is sitting in the [Main Directory](/flow/guide/administering-flow/configuring-flow/data-connections/file-connections/file-connection/general-tab/#file-directory) of this File Connection that matches the [File Search Pattern](/flow/guide/administering-flow/configuring-flow/data-connections/file-connections/file-connection/general-tab/#file-search-pattern). A Log will display to show the results of loading the file. After loading you can close the Log window and open the designer to preview the data itself. |
