Skip to content

Commit e997e24

Browse files
pkontekCopilot
andauthored
Update src/PowerPlatform/Dataverse/data/_file_operations.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent ed93434 commit e997e24

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PowerPlatform/Dataverse/data/_file_operations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ def _download_file(
195195

196196
key = self._format_key(record_id)
197197
url = f"{self.api}/{entity_set}{key}/{file_name_attribute}/$value"
198-
response = self._request("get", url)
198+
response = self._request("get", url, expected=(200,))
199199
file_name = response.headers.get('x-ms-file-name')
200200
if file_name is None:
201201
raise ValueError("Response is missing the 'x-ms-file-name' header. The file column may be empty or the server did not return the expected header.")

0 commit comments

Comments
 (0)