Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

RESOURCE_ALREADY_EXISTS error when deploying bundle with version 1.21.0

Chiusa
#7,216 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

@Sankalp-Mittal ci sta già lavorando.

Dal 28/10/2026.

  • #7218 di @Sankalp-Mittal — aperta

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
go
Ambito
cli

Direzione di ricerca

Start at the bundle deployment file upload path for databricks bundle deploy and inspect how it handles the workspace-files import request when overwrite=true. Reproduce with CLI 1.21.0 against an existing file and compare the request behavior with the working 1.16.1 version. Done means deployment updates the existing file without RESOURCE_ALREADY_EXISTS; linked pull request #7218 shows work is already underway.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

CLI
Describe the issue

When doing usual bundle deployment using cli, with version 1.21.0 an error is shown:
Uploading bundle files to /Users/userid/bundles/sem...
Error: Request failed for POST /Users/userid/bundles/sem/src/uk/LIVE/usecase/batching/every1h/file.sql: RESOURCE_ALREADY_EXISTS: Node named 'file.sql' already exists (400 )

Endpoint: POST https://adb-XXXXXXX.azuredatabricks.net/api/2.0/workspace-files/import-file/Users%2Fuserid%2Fbundles%2Fsem%2Fsrc%2Fuk%2FLIVE%2Fusecase%2Fbatching%2Fevery1h%2Ffile.sql?overwrite=true
HTTP Status: 400 Bad Request
API error_code:
API message: Request failed for POST /Users/userid/bundles/sem/src/uk/LIVE/usecase/batching/every1h/file.sql: RESOURCE_ALREADY_EXISTS: Node named 'file.sql' already exists

Steps to reproduce the behavior
  1. Run databricks bundle deploy -p myprofile -t mytarget
  2. See error: RESOURCE_ALREADY_EXISTS: Node named 'file.sql' already exists
Expected Behavior

Deployment successful, with resources updated:
When doing the same deploy, but using 1.16.1 version:
Uploading bundle files to /Users/userid/bundles/sem...
Updated jobs.prelive_sem.permissions
Updated jobs.sem_live_every1d.permissions
Updated jobs.sem_live_every1h.permissions
Updated jobs.sem_live_every2h.permissions
Updated jobs.sem_live_every30d.permissions
Updated jobs.sem_live_every3h.permissions
Updated jobs.sem_live_every7d.permissions
Files: 9 uploaded, 0 deleted
Resources: 0 created, 7 changed, 0 deleted, 7 unchanged

Actual Behavior

Databricks cli 1.21 seems has issue with overwrite=true flag set and doesn't update existing resources.

OS and CLI version

1.21.0 (docker container)
Linux and Windows

Is this a regression?

It works with previous container version (1.10.0)

Debug Logs

Output logs if you run the command with debug logs enabled. Example: databricks clusters list --log-level=debug. Redact if needed

Lingua principale
Go
Stelle
416
Fork
256
Merge medio
1g 22h
PR unite (30g)
206

Preparare l'ambiente

  • Include un Dockerfile o un file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di databricks/cli

Tutte le issue di databricks/cli

Issue simili

Altre issue su Go

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.