Skip to content

[Bug]: OSError: Generic MicrosoftAzure error: Client error with status 400 Bad Request #3990

Description

@nitheesh1398

What happened?

from deltalake import DeltaTable, write_deltalake

dt = DeltaTable(delta_table_path)
dt.delete(f"Version = '{version}'")

I 'm trying to delete the rows from my delta table from lakehouse shortcut. Getting below errors. Started since yesterday.

Even Overwrite is also not working

Earlier it used to work fine.

error:

Cell In[13], line 99
97 dt = DeltaTable(table_path)
98 # Delete any existing rows for this version(sheetname)
---> 99 dt.delete(f"Version = '{version}'")
100 # Write data to tables(append)
101 write_deltalake(table_path, data=df.to_arrow(), mode="append")

File ~/jupyter-env/python3.11/lib/python3.11/site-packages/deltalake/table.py:1174, in DeltaTable.delete(self, predicate, writer_properties, custom_metadata)
1153 def delete(
1154 self,
1155 predicate: Optional[str] = None,
1156 writer_properties: Optional[WriterProperties] = None,
1157 custom_metadata: Optional[Dict[str, str]] = None,
1158 ) -> Dict[str, Any]:
1159 """Delete records from a Delta Table that statisfy a predicate.
1160
1161 When a predicate is not provided then all records are deleted from the Delta
(...)
1172 the metrics from delete.
1173 """
-> 1174 metrics = self._table.delete(
1175 predicate,
1176 writer_properties._to_dict() if writer_properties else None,
1177 custom_metadata,
1178 )
1179 return json.loads(metrics)

OSError: Generic MicrosoftAzure error: Client error with status 400 Bad Request: CannotVerifyCopySourceAuthentication information is not given in the correct format. Check the value of Authorization header.
RequestId:74c9315a-d01e-002d-5472-6ecc2b000000
Time:2025-12-16T09:59:01.5612848Z

Expected behavior

Delete needs to be done properly for delta tables

Operating System

None

Binding

None

Bindings Version

No response

Steps to reproduce

No response

Relevant logs

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    storage/azureAzure Blog storage related

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions