Skip to content

[CRITICAL] New workspace creation completely blocked - Dashboard object missing due to feature flag issue #14375

@shanewg

Description

@shanewg

Description

New workspace/account creation is completely broken in the latest version of Twenty CRM. The
workspace activation process fails with a fatal error stating that the "dashboard" object cannot be
found. This prevents any new users from creating accounts or workspaces, making new Twenty CRM
deployments unusable.

Error Message

Error: Target object dashboard not found in database for relation dashboard of type MANY_TO_ONE
at StandardFieldRelationFactory.computeRelationFieldsForStandardObject
at WorkspaceSyncFieldMetadataRelationService.synchronizeStandardObjectRelationFields
at WorkspaceSyncMetadataService.synchronize
at WorkspaceManagerService.init
at WorkspaceService.activateWorkspace

Root Cause

  1. The DashboardWorkspaceEntity in
    /src/modules/dashboard/standard-objects/dashboard.workspace-entity.ts is gated behind a feature
    flag:
    @WorkspaceGate({
      featureFlag: FeatureFlagKey.IS_PAGE_LAYOUT_ENABLED,
    })
  2. The DEFAULT_FEATURE_FLAGS array in
    /src/engine/workspace-manager/workspace-sync-metadata/constants/default-feature-flags.ts is empty:
    export const DEFAULT_FEATURE_FLAGS = [];
  3. During workspace activation, the dashboard object is never created because the feature flag isn't
    enabled, but other entities have relations that expect the dashboard object to exist, causing a
    fatal error.

Impact

  • Severity: CRITICAL - Complete blocker for new installations
  • All new Twenty CRM deployments are non-functional
  • Cannot create any new workspaces or user accounts
  • No way for end users to work around this issue

Steps to Reproduce

  1. Clone the latest Twenty CRM repository
  2. Set up a fresh PostgreSQL database
  3. Run npx nx database:reset twenty-server
  4. Start the server with yarn start
  5. Attempt to create a new account through the UI
  6. Workspace activation fails with the dashboard object error

Environment

  • Twenty CRM version: Latest main branch (commit e787dad and later)
  • Node.js version: 24.5.0
  • PostgreSQL: Any version
  • Affects all operating systems

Additional Context

The UI gets stuck on "Creating your workspace - Prefilling your workspace data..." and never
completes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    🔖 Planned

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions