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

Microsoft Fabric Lakehouse

Write Delta tables from Nilus batch pipelines to Microsoft Fabric Lakehouses in OneLake.

Nilus can write batch datasets directly into a Microsoft Fabric Lakehouse. Data lands as Delta tables in OneLake and is immediately visible under the Lakehouse's Tables view in the Fabric UI. Nilus authenticates with a Microsoft Entra service principal and writes over the OneLake ABFSS endpoint. No Spark cluster or external ingestion tool is required.

Requirements

Connectivity

  • The Nilus runtime must reach the OneLake endpoint (onelake.dfs.fabric.microsoft.com) and, for lineage, the Lakehouse's SQL analytics endpoint.

  • The target Lakehouse must already exist in a Fabric workspace. Nilus creates tables inside it but does not create the Lakehouse itself.

Authentication and prerequisites

Fabric Lakehouse connects through a Microsoft Entra service principal. There is no DataOS depot variant. Before configuring the pipeline:

1

Register an Entra application

Register an Entra application (App registration) in the Fabric tenant. Note its Application (client) ID, Directory (tenant) ID, and create a client secret.

2

Enable service principal access in Fabric

In the Fabric/Power BI admin tenant settings, allow service principals to use Fabric APIs and, where required, add the app to the security group permitted to do so.

3

Grant workspace access

Add the service principal to the Fabric workspace that contains the Lakehouse with a role that permits writing data (Contributor or higher).

4

Collect workspace and Lakehouse GUIDs

Both the workspace_id and lakehouse_id are GUIDs taken from the Fabric portal; they are used to build the OneLake ABFSS path.

Store the client secret in a DataOS secret and project it into the pipeline; never inline the literal secret in the manifest.

Sink address

Fabric Lakehouse uses a direct fabric+lakehouse:// URI (there is no dataos:// depot form):

fabric+lakehouse://<lakehouse_name>?tenant_id=<tenant_id>&client_id=<client_id>&client_secret=<client_secret>&workspace_id=<workspace_guid>&lakehouse_id=<lakehouse_guid>&sql_endpoint=<sql_analytics_endpoint_host>
URI part
Required
Description

<lakehouse_name> (host)

Yes

The Lakehouse display name. Used only for catalog/database naming, not for path construction.

tenant_id

Yes

Microsoft Entra directory (tenant) ID (GUID) of the Fabric app registration.

client_id

Yes

Entra service principal application (client) ID.

client_secret

Yes

Entra service principal client secret (project from a DataOS secret).

workspace_id

Yes

Fabric workspace GUID. Used to build the OneLake ABFSS URL.

lakehouse_id

Yes

Fabric Lakehouse GUID. Used to build the OneLake ABFSS URL.

sql_endpoint

No

The Lakehouse SQL analytics endpoint host. Optional for data movement, but required for lineage. If it is absent and lineage is enabled, Nilus logs a warning and skips lineage.

Nilus rejects the URI at parse time if any required parameter is missing (Invalid Fabric Lakehouse URI: missing required parameters: …).

Sink options

Option
Required
Description

dest_table

Yes

Target table in <schema>.<table> form (exactly two dot-separated parts).

incremental_strategy

Yes

One of append, replace, merge.

primary_key

Conditional

Required for merge: the key (or composite key) used to reconcile rows. Set it on the source options.

Sample Nilus config

The service principal's client secret is projected from a DataOS secret and referenced in the URI. workspace_id and lakehouse_id are the workspace and Lakehouse GUIDs from the Fabric portal.

Data tables land in OneLake under /Tables (Delta format, visible in the Fabric UI); Nilus keeps its internal load-state tables under /Files, where they stay hidden from the Fabric Tables view.

Behavior and capabilities

  • Table format: Delta tables written to OneLake /Tables, queryable directly from Fabric.

  • Authentication: Microsoft Entra service principal (client ID + client secret + tenant ID). Nilus fetches an Azure AD token per connection, so long-running loads refresh automatically. Rotate the client secret before it expires; an expired secret fails authentication.

  • Supported pipeline mode: batch only.

  • Supported incremental strategies: append, replace, and merge. merge reconciles by the configured primary_key; composite primary keys are supported.

  • Table creation: destination tables are created automatically when they do not already exist.

  • Schema contract: the connector enforces a strict schema contract. When the source presents an unsupported change (a new column, or an incompatible data-type change), the pipeline fails before writing rather than silently evolving the table. Automatic schema evolution is not performed; schema changes require manual intervention on the destination.

Limitations

The Fabric Lakehouse destination covers batch data movement only. The following are not supported by this connector:

  • CDC and streaming pipelines

  • Automatic schema evolution

  • Automatic partition selection or partition evolution

  • Microsoft Fabric Warehouse as a destination (this connector targets the Lakehouse)

  • Spark-based ingestion

Troubleshooting

Symptom
Likely cause
Resolution

Invalid Fabric Lakehouse URI: missing required parameters: …

One or more of tenant_id, client_id, client_secret, workspace_id, lakehouse_id, or the Lakehouse name is absent from the URI.

Add every required parameter; verify the projected env vars resolved.

Table must be in <schema>.<table> format

dest_table is missing the schema prefix or has more than two parts.

Use exactly <schema>.<table>.

AADSTS7000215: Invalid client secret / Login failed

Wrong or expired client secret, or the service principal is not enabled in Fabric.

Rotate the client secret; confirm the tenant setting allows service principals to use Fabric APIs.

Write fails with 403 / authorization error

The service principal lacks a write role on the workspace, or the workspace/Lakehouse GUIDs are wrong.

Add the SP to the workspace with Contributor (or higher); re-check workspace_id / lakehouse_id.

Table with a timestamp_ntz column fails to open in the Fabric Table View (invariants protocol mismatch / TIMESTAMP_NTZ not supported)

Upstream delta-rs bug writes timestampNtz without the invariants writer feature (see the known limitation above). Data is intact and queryable via SQL.

Avoid timestamp_ntz columns (use a timezone-aware timestamp) or query via the SQL analytics endpoint.

Lineage is not produced

sql_endpoint is missing from the URI while lineage is enabled.

Add sql_endpoint=<sql-analytics-endpoint-host> to the address.

Last updated

Was this helpful?