--- title: "How do I read a file with the file designer?" slug: "how-do-i-read-a-file-with-the-file-designer" updated: 2026-11-24T13:59:14Z published: 2026-11-24T13:59:14Z canonical: "support.lusid.com/how-do-i-read-a-file-with-the-file-designer" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.lusid.com/llms.txt > Use this file to discover all available pages before exploring further. # How do I read a file with the file designer? Reading a CSV or Excel file into a query usually means looking up a provider's options and getting the delimiter, the header row and the column types right. The file designer in the Luminesce Query Editor does it with you: pick the file, preview what Luminesce reads from it, adjust until it looks right, and the designer writes the SQL. It can even upload the file to Drive for you first. ## Prerequisites - Access to the Luminesce Query Editor in the LUSID web app, under **Data Virtualisation > Query Editor**. - Permission to use the provider for the file's location and type, such as `Drive.Csv`, and to read the file itself. See [Query Editor permissions reference](/v1/docs/query-editor-permissions-reference). ## Methods ### Method 1: Read a file 1. Select the file designer on the toolbar. Its tooltip reads *Designer to help read file data from locations such as drive*. 2. On **Source and type**, choose: If the file isn't in Drive yet, select **Upload file** to upload it now. The designer fills in its location, type and path for you. - **Location**: where the file is, such as **Drive**. The list holds every location you have permission to read files from. - **File type**: such as **Csv**, **Excel**, **SqLite**, **Xml**, **Parquet** or **RawText**, depending on the location. 3. Select **Next**. On **File location and filters**, enter the **File path**: the full path and name of the file, such as `/trades/today.csv`. To read several files of the same shape at once, enter a folder's path instead and a **Folder filter**: a regular expression the file names must match. For files inside a zip file, use **Zip filter** the same way. Select **Add File Name** to add a column saying which file each row came from. 4. Select **Next**. On **More config options**, select **Preview / Refresh** to see what Luminesce reads from the file. 5. If the preview doesn't look right, change the options for the file type (see Method 2), then select **Preview / Refresh** again. 6. Select **Generate Sql**. The designer closes and puts the query into the editor, at the cursor. ![](https://cdn.document360.io/d575ad81-c0ed-4980-bbd1-d59ac5c3de82/Images/Documentation/image-YVFSOPHC.png?sv=2026-02-06&spr=https&st=2026-11-24T14%3A55%3A10Z&se=2026-11-24T15%3A55%3A10Z&sr=b&sp=r&sig=JE4bJIw6p%2BIYENa1injkVPGnd5CJka4lGrC1h1h0Pog%3D) ### Method 2: Adjust how the file is read The options on **More config options** depend on the file type: | File type | Options | | --- | --- | | Csv | **Delimiter** (`\t` for tab), **Quote**, **Escape**, **Skip pre header** and **Skip post header** rows, whether there's a header row, and **Infer type row count**: how many rows Luminesce looks at to decide each column's type | | Excel | **Worksheet** (name or number; the first by default), **Range or table** to read only part of it, and **Password** for a protected workbook | | SqLite | **Table**: the table in the file to read | | Xml | **Node path**: the elements that become rows, and any **Namespaces** they use | To rename columns or change their types, select **Modify columns** after you've previewed the file. For every option a provider supports, see its page, for example [Drive.Csv](/v1/docs/drivecsv) or [Drive.Excel](/v1/docs/driveexcel). ![](https://cdn.document360.io/d575ad81-c0ed-4980-bbd1-d59ac5c3de82/Images/Documentation/image-H11GM25Q.png?sv=2026-02-06&spr=https&st=2026-11-24T14%3A55%3A10Z&se=2026-11-24T15%3A55%3A10Z&sr=b&sp=r&sig=ICSN9QgXWpTaRGV2H8YXaSSgu3l1I97ti3589OciWD8%3D) ### Method 3: Load the file into LUSID On **More config options**, after you've previewed the file, select **Writer Designer** to write its rows with a writer provider, such as `Lusid.Portfolio.Txn.Writer` for a file of transactions. The designer adds both the read and the write to your query. See [How do I write query results to LUSID with the writer designer?](/v1/docs/how-do-i-write-query-results-to-lusid-with-the-writer-designer) A write changes real data when you run it, so check the generated query first. ### Method 4: Change a file read you've already written Highlight a `use Drive.Csv … enduse` block, or one for another file provider, then select the file designer. It opens with that block's settings filled in. When you select **Generate Sql**, the new block replaces the lines you highlighted. ## Troubleshooting ### The preview shows everything in one column The **Delimiter** is wrong. Set it to the character that separates the values, such as `;` or `\t` for tab, and preview again. ### The column names are a row of data, or the first row is missing Check whether the file has a header row, and set the option for no header row to match. Use **Skip pre header** to skip title rows above the header. ### Upload file is greyed out You can only upload to Drive. Choose **Drive** as the **Location**. ### Modify columns or Writer Designer is greyed out Select **Preview / Refresh** first. ## Related articles - [Read/write to Drive (Drive.x)](/v1/docs/readwrite-to-drive-drive) - [How do I use the Luminesce query designer?](/v1/docs/how-do-i-use-the-luminesce-query-designer)