Skip to main content
Version: 0.4 (Latest)

Microsoft Fabric Reference

Reference material for Microsoft Fabric Publishing -- data type mappings, querying, troubleshooting, and CLI arguments.

Data Type Mapping​

Source types map automatically to Fabric-compatible Delta Lake types. LakeXpress exports through Parquet, so the mapping is driven by the normalized source type name.

Pick your source database:

PostgreSQL to Fabric​

PostgreSQL TypeFabric Type
SMALLINTSMALLINT
INTEGER, INT4INT
BIGINT, INT8BIGINT
NUMERIC(p,s)DECIMAL(p,s)
REAL, FLOAT4REAL
DOUBLE PRECISION, FLOAT8FLOAT
VARCHAR(n)VARCHAR(n)
TEXTVARCHAR(MAX)
CHAR(n)CHAR(n)
BOOLEANBIT
DATEDATE
TIMETIME
TIMESTAMPDATETIME2
TIMESTAMPTZDATETIMEOFFSET
BYTEAVARBINARY(MAX)
UUIDUNIQUEIDENTIFIER
JSON, JSONB, array []NVARCHAR(MAX)

Querying Tables​

SQL Analytics Endpoint​

-- Query a Delta table
SELECT * FROM your_lakehouse.dbo.customer LIMIT 10;

-- Aggregation
SELECT
c_nationkey,
COUNT(*) as customer_count,
SUM(c_acctbal) as total_balance
FROM your_lakehouse.dbo.customer
GROUP BY c_nationkey
ORDER BY customer_count DESC;

Spark Notebooks​

# Read a Delta table
df = spark.read.table("customer")
df.show(10)

# Query with SQL
spark.sql("""
SELECT c_nationkey, COUNT(*) as cnt
FROM customer
GROUP BY c_nationkey
""").show()

# Write results back
result_df.write.mode("overwrite").saveAsTable("customer_summary")

Troubleshooting​

Common Issues​

Authentication Errors​

Error: AADSTS7000215: Invalid client secret provided

Regenerate your client secret in Azure AD and update credentials.json.

Error: The user or service principal does not have access to the workspace

  1. Verify the Service Principal is added to the workspace
  2. Ensure it has Member or Contributor role
  3. Wait a few minutes for permissions to propagate

OneLake Connection Issues​

Error: Unable to connect to OneLake storage

  1. Verify the directory format: onelake://workspace-name/lakehouse-name/
  2. Check that the Service Principal has Storage Blob Data Contributor role
  3. Ensure workspace and lakehouse names are correct (case-sensitive)

Table Creation Failures​

Error: Failed to create table in Lakehouse

  1. Verify the SQL analytics endpoint is correct
  2. Check that the Lakehouse is active (not paused)
  3. Ensure sufficient capacity units are available
  4. Confirm Parquet files were exported to OneLake

SQL Endpoint Connection Issues​

Error: Cannot connect to SQL analytics endpoint

  1. Verify the SQL endpoint hostname
  2. Ensure the SQL analytics endpoint is enabled
  3. Check firewall rules if connecting from on-premises

Verifying Export Success​

Check files in OneLake:

  1. Open your Lakehouse in Fabric portal
  2. Go to the Files section
  3. Verify Parquet files exist in the expected folders

Check tables:

  1. Open the SQL analytics endpoint
  2. Expand Tables in the object explorer
  3. Verify your tables appear

Debug Mode​

./LakeXpress sync \
-a credentials.json \
--lxdb_auth_id lxdb_postgres \
--sync_id <SYNC_ID> \
--log_level DEBUG

CLI Reference​

Fabric Publishing Arguments​

OptionTypeDescription
--publish_target IDStringCredential ID for Fabric publishing (required)
--publish_method METHODEnuminternal (Delta tables, recommended) or external (SQL views) (default: external)
--publish_table_pattern PATTERNStringTable naming pattern for the Lakehouse's flat namespace (default: {table}; include {schema}, e.g. {schema}_{table}, when exporting several schemas)
--n_jobs NIntegerParallel workers for table creation (default: 1)

Full Example​

See Examples & Recipes: Microsoft Fabric for complete, ready-to-run commands.

See Also​

Copyright © 2026 Architecture & Performance.