-
-
Notifications
You must be signed in to change notification settings - Fork 71
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Bug description 🐞
You get an error when trying to import a TFC workspace into Terrakube with VCS workflow enabled.
Steps to reproduce
Workspaces > Import Workspace > Terraform Cloud > VCS Workflow > Select Bitbucket > Provide TFC credentials (org name and token)
Produces this error
"workspace
There was an error creating the workspace:could not execute statement [ERROR: null value in column "source" of relation "workspace" violates not-null constraint Detail: Failing row contains (eff94235-b8d3-4dd5-ad75-b7db30823f45, workspace, null, main, ~>1.9.0, 3d772bd9-c7df-42bb-b675-8cd5520c4894, bdb56b06-20e2-485d-904d-c18522f4fe7c, null, null, null, f, f, 2025-06-30 16:01:31.736, 2025-06-30 16:01:31.736, [email protected], [email protected], remote, null, terraform, null, null, null, f).] [insert into workspace (agent_id,allow_remote_apply,branch,created_by,created_date,default_template,deleted,description,execution_mode,folder,iac_type,lock_description,locked,module_ssh_key,name,organization_id,source,ssh_id,terraform_version,updated_by,updated_date,vcs_id,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)]; SQL [insert into workspace (agent_id,allow_remote_apply,branch,created_by,created_date,default_template,deleted,description,execution_mode,folder,iac_type,lock_description,locked,module_ssh_key,name,organization_id,source,ssh_id,terraform_version,updated_by,updated_date,vcs_id,id) values (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)]; constraint [source" of relation "workspace]"
Expected behavior
Import completes successfully.
Example repository
No response
Anything else?
No response
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working