github →

New request

#20671: View field cannot be created through custom app

We'll provision a sandbox, run an agent against the issue, and open a draft PR. You can pull the branch and iterate from there.

Issue

Bug Description

Adding a field in the UI (e.g adding a column to a table) creates a BUILDER_INTERNAL_SERVER_ERROR during app sync. The only way I can get the app to resync (using twenty dev) is to remove the core.viewField record from the DB and flush the cache.

Seems be caused by the UI creating an app mismatch in the viewfields. The viewField row belongs to one app while its parent view and field belong to another.

Tried in both v2.4 and v2.5

 WorkspaceMigrationV2Exception [Error]: BUILDER_INTERNAL_SERVER_ERROR
Assessmentadvisory
bug●● medium80% confidence

UI-created view fields are assigned to a different app than their parent view and field, causing a builder migration ownership mismatch during sync.

Likely files
  • packages/twenty-server/src/engine/metadata-modules/view-field/view-field.service.ts
  • packages/twenty-server/src/engine/workspace-manager/workspace-migration
  • packages/twenty-server/src/engine/core-modules/workspace-builder
  • packages/twenty-front/src/modules/views/hooks/useCreateViewField.ts
Create the request

This opens a fresh agent run and a draft PR for issue #20671.

Cancel