@Yannick_B You are trying to register an external table pointing to a directory that does not contain required Delta transaction logs (_delta_log folder) and hence you see the error.
When you run External Table Command, Databricks generally expects that data already exists at that ADLS Gen2 location and was written using the Delta format. However, since its empty & no data has been written to that path yet (_delta_log folder does not exist). Databricks refuses to create an external Delta table over an empty directory.
You can follow any of the below
- Initialize the Table & Data
Before you run the CREATE EXTERNAL TABLE statement, create a notebook that writes data to that path using DataFrame. This is suggested
df.write.format("delta").mode("append").save("abfss://cdc-urochart@spsderlakeland01dev.dfs.core.windows.net/delta-tables-dev/audittrail_2025_b")
The code creates the delta table & _delta_log. CREATE EXTERNAL TABLE statement will then work.
- Provide a Schema
You can explicitly define the column schema in the table statement.
CREATE EXTERNAL TABLE qa_trunk.audittrail_2025_b (
id INT,
action STRING
-- Add bronze schema columns
)
USING delta
LOCATION 'abfss://cdc-urochart@spsderlakeland01dev.dfs.core.windows.net/delta-tables'