Skip to main content
err:unkey:data:database_branch_not_found
The database has no branch in PlanetScale with the name or id you gave. In databases.createBranch this is the parent name, or the default branch of the database if you left parent out. In connections.createConnection and connections.updateConnection this is config.planetscaleDatabase.branch, an id or a name. You get HTTP 404.
Example response

Likely causes

  • The name or id has a typo. Branch names are case-sensitive.
  • Someone deleted or renamed the branch in PlanetScale.

How to fix

  1. List the branches of the database with databases.listBranches.
  2. Retry with a name or id from the list. If the branch you need is gone, create it again with databases.createBranch.
Last modified on November 30, 2026