github →

New request

#15800: Cannot use the Add New Button from the list to create Tasks and Notes - Error: Should never occur, encountered unknown fields name in objectMetadataItem task

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

I created a relation field from my custom object and Tasks, another one from my custom object and Notes. (I did this bc I wanted to rename them "Next Steps" and "Call Summary" instead of the names "Tasks" and "Notes" that are displayed in the tabs.).

When I click, from my list view, on " + Add New" to create a new task or a new note (from those relation fields), I get the following error: Uncaught (in promise) Error: Should never occur, encountered unknown fields name in objectMetadataItem task

<img width="1119" height="547" alt="Image" src="https://github.com/user-attachments/assets/28a385a4-b8e1-433d-90a2-6aee9712c0e2" />

Example: Lucas was able to reproduce on another workspace

Technical inputs

Likely bc of the "many to many" hard coded for Notes and Tasks, that is not well supported by the Front

Assessmentadvisory
bug●● medium80% confidence

Front-end record creation crashes due to hardcoded many-to-many field assumptions for Tasks and Notes.

Likely files
  • packages/twenty-front/src/modules/object-record/hooks/useCreateNewRecord.ts
  • packages/twenty-front/src/modules/object-metadata/hooks/useObjectMetadataItem.ts
  • packages/twenty-front/src/modules/object-record/record-field/ui/meta-types/hooks/useRelationField.ts
  • packages/twenty-front/src/modules/views/components/ViewBar.tsx
Create the request

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

Cancel