cli icon indicating copy to clipboard operation
cli copied to clipboard

workspace export-dir file size exceeded

Open smokedlinq opened this issue 5 months ago • 0 comments

Describe the issue

When exporting a dir, a file is encountered that is too large, it's ok to skip but the command fails.

Steps to reproduce the behavior

Please list the steps required to reproduce the issue, for example:

  1. Upload a csv to your workspace folder that's over the max size
  2. Run databricks workspace export-dir
  3. See error

Expected Behavior

Warning is emitted about skipping a file because it's too large.

Actual Behavior

File size imported is (459418279 bytes), exceeded max size (10485760 bytes)

OS and CLI version

Windows/Linux -- Databricks CLI v0.267.0

Is this a regression?

Not that I recall.

Debug Logs

< HTTP/2.0 200 OK
< {
<   "created_at": 1759179699225,
<   "modified_at": 1759179699225,
<   "object_id": redacted,
<   "object_type": "FILE",
<   "path": "/Users/redacted/redacted.csv",
<   "resource_id": "redacted"
< } pid=13015 sdk=true
17:15:06 Debug: GET /api/2.0/workspace/export?direct_download=true&path=/Users/redacted/redacted.csv
< HTTP/2.0 400 Bad Request
< {
<   "error_code": "BAD_REQUEST",
<   "message": "File size imported is (459418279 bytes), exceeded max size (10485760 bytes)"
< } pid=13015 sdk=true
17:15:06 Debug: non-retriable error: File size imported is (459418279 bytes), exceeded max size (10485760 bytes) pid=13015 sdk=true
Error: File size imported is (459418279 bytes), exceeded max size (10485760 bytes)

smokedlinq avatar Sep 30 '25 17:09 smokedlinq