Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Excel

Connects to Microsoft Excel workbooks stored on the local file system, a network share, SharePoint Online or OneDrive for Business. Each worksheet is exposed as a table and can be queried and updated with SQL.

Connection Properties

Connection

Property
Default
Notes

Excel File

—

Required. Local or UNC path, e.g. C:\Data\Orders.xlsx, or the full file URL for SharePoint / OneDrive

URI

—

Alternative to Excel File; used only when Excel File is empty

Connection Type

Local

Local, SharePoint REST or OneDrive

Header

true

true: the first row holds the column names. false: columns are named Column0, Column1, …

Define Tables

—

Extra table names for existing sheets, comma-separated: Orders=Sheet1,Customers=Sheet2

Timeout

60

Download / upload timeout in seconds (SharePoint and OneDrive only)

Supported formats: .xlsx, .xlsm, .xls and .xlsb for reading; .xlsx and .xlsm for writing.

Azure Authentication

Required when Connection Type is SharePoint REST or OneDrive. The connector authenticates as a Microsoft Entra application (client credentials) and accesses the file through Microsoft Graph.

Property
Used by
Notes

Azure Tenant

SharePoint REST, OneDrive

Tenant ID or domain, e.g. contoso.onmicrosoft.com

OAuth Client Id

SharePoint REST, OneDrive

Application (client) ID of the app registration

OAuth Client Secret

SharePoint REST, OneDrive

Client secret of the app registration

The app registration needs the Microsoft Graph application permission Sites.ReadWrite.All or Files.ReadWrite.All (admin consent required).

How remote workbooks are handled:

  • On open, the workbook is downloaded to a temporary working copy.

  • All reads and writes run against that copy.

  • On close, the copy is uploaded back if anything was changed, then deleted.

  • The upload is refused, and no changes are saved, if the workbook was modified by someone else in the meantime or is locked because it is open in Excel.

Data

Property
Default
Notes

Type Detection Scheme

RowScan

RowScan: column types are detected from the cell values. None: no type detection

Skip Top

0

Number of rows to skip at the top of each sheet before reading

Show Empty Rows

false

Include completely empty rows in the results

Null Value Mode

ReadAsNull

ReadAsNull: empty text values are returned as null. ReadAsEmpty: kept as empty text

Empty Value Mode

ReadAsEmpty

ReadAsEmpty: empty cells in text columns are returned as empty text. ReadAsNull: returned as null

Null Values

—

Comma-separated cell values to treat as null, e.g. N/A,NULL,-

Max Rows

-1

Maximum number of rows returned by a query. -1 = no limit

Allow Formula

true

Values starting with = are written as formulas on INSERT / UPDATE

Readonly

false

true blocks INSERT, UPDATE and DELETE

Logging

Property
Default
Notes

Log Level

0

0 disabled, 1 log to file

Log File

%APPDATA%\appStrategy\PortalData\Default\Logs\Connectors\Excel_Debug.log

Supported SQL

Tables and columns

  • Every worksheet is a table. A sheet named Orders can be referenced as Orders or Orders$.

  • Table and column names are not case-sensitive.

  • Column names come from the first row (see Header). Excel has no primary keys, foreign keys or indexes.

SELECT

Clause
Supported

Columns

* or a list of column names

WHERE

See operators below

ORDER BY

One or more columns, ASC / DESC

LIMIT

Maximum number of rows; combined with Max Rows (lowest wins)

WHERE operators

Operator
Example

=, <>, >, >=, <, <=

Amount >= 100

LIKE

Customer LIKE 'A%'

IN, NOT IN

Country IN ('FR', 'IE')

IS NULL, IS NOT NULL

ShippedDate IS NULL

AND, OR, parentheses

A = 1 AND (B = 2 OR C = 3)

INSERT, UPDATE, DELETE

  • UPDATE and DELETE without a WHERE clause affect every row of the sheet.

  • Columns that do not exist in the sheet are ignored.

  • Each write rewrites the whole worksheet: values and formulas are kept, cell formatting is not.

Parameters

Named parameters are supported in WHERE conditions and values:

Not supported

  • JOIN, sub-queries and UNION

  • GROUP BY, HAVING and aggregate functions (COUNT, SUM, …)

  • Column aliases (AS) and expressions in the column list

  • CREATE / ALTER / DROP — sheets and columns must already exist in the workbook

  • Stored procedures and transactions

Last updated