load_table_from_url
Load data into a Microsoft Fabric Data Warehouse table from a remote URL using COPY INTO. Supports CSV and Parquet files with optional credentials for secured URLs.
Instructions
Load data into a Data Warehouse table via COPY INTO from a remote URL.
Supported file types: CSV, PARQUET. JSON remote URLs require
downloading and converting locally first; use the CLI tables load
command for local files (including JSON).
For OneLake or same-tenant URLs, no credential is needed. For secured
external URLs (Azure Blob Storage SAS, etc.), supply credential_type
and the appropriate secret/identity values.
CAUTION: This operation loads data into the target table. Confirm the source URL and target table before calling.
Note: secret / identity values are accepted but are NEVER logged
or included in any debug output.
Args:
workspace: Workspace name or GUID.
item: Warehouse name or GUID. SQL Analytics Endpoints are rejected.
qualified_name: Dot-separated qualified table name, e.g. dbo.sales.
url: Source URL (OneLake DFS URL or external Azure Blob URL).
file_type: CSV or PARQUET.
credential_type: Credential type for the source URL.
secret: Credential secret (not logged).
identity: Identity for managed-identity or service-principal.
delimiter: CSV column delimiter.
has_header: Whether the CSV file has a header row.
encoding: CSV file encoding.
field_quote: CSV field-quote character.
row_terminator: CSV row terminator.
max_errors: Maximum errors before aborting.
rejected_row_location: URL for rejected-row output.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspace | Yes | ||
| item | Yes | ||
| qualified_name | Yes | ||
| url | Yes | ||
| file_type | Yes | File type to load. JSON is not supported for remote URLs; download and convert locally first. | |
| credential_type | No | Credential type for secured external URLs. Use 'none' for OneLake or public URLs. | none |
| secret | No | Credential secret (SAS token, client secret, or account key). NEVER log or echo this value. | |
| identity | No | Identity value for managed-identity or service-principal credential types. | |
| delimiter | No | CSV column delimiter (e.g. ',', '\t'). | |
| has_header | No | When True, the first CSV row is a header and is skipped. | |
| encoding | No | CSV file encoding (e.g. 'UTF8', 'UTF8BOM'). | |
| field_quote | No | CSV field-quote character. | |
| row_terminator | No | CSV row terminator (e.g. '\n', '\r\n'). | |
| max_errors | No | Maximum number of errors before aborting. | |
| rejected_row_location | No | URL to write rejected rows to. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||