Skip to content

RESOURCE_ALREADY_EXISTS error when deploying bundle with version 1.21.0 #7216

Closed

Description

@ManiusNG

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

Activity

  1. added
    CLI
    on Oct 28, 2026
  2. changed the title [-]RESOURCE_ALREADY_EXISTS error when deploying bundle with version 1.21.0[/-] [+]RESOURCE_ALREADY_EXISTS error when deploying bundle with version 1.21.0 (docker)[/+] on Oct 28, 2026
  3. changed the title [-]RESOURCE_ALREADY_EXISTS error when deploying bundle with version 1.21.0 (docker)[/-] [+]RESOURCE_ALREADY_EXISTS error when deploying bundle with version 1.21.0[/+] on Oct 28, 2026
  4. added a commit that references this issue on Oct 29, 2026
  5. ManiusNG commented on Oct 29, 2026

    @ManiusNG
    Author

    @Sankalp-Mittal , I see 1.23 release is done, thank you!
    Could you build a docker image as well?

  6. Sankalp-Mittal commented on Oct 29, 2026

    @Sankalp-Mittal
    Contributor

    @ManiusNG thanks for your bug report.
    We don't have plans to publish a Docker image for now. In the meanwhile you could build one yourself from the release binary.

  7. ManiusNG commented on Oct 29, 2026

    @ManiusNG
    Author

    @Sankalp-Mittal , we're using air-gapped environment to perform deployment (only whitelisted ghcr images are permitted)
    I guess we'll have to stick to 1.10.0 Docker image for now.

  8. added a commit that references this issue on Nov 11, 2026
    8afc86f
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

    CLI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions