#Can't Edit Instances of Custom Objects

1 messages · Page 1 of 1 (latest)

slate thicket
#

Hi, I'm running this on Ubuntu using the docker setup.

I can get the app running but once I add an object and go to edit it, the backend crashes.

I checked the objectMetadata table and the object I added is there so the backend is able to write to the database. I was able to even find the actual entity I created in the workspace but once this happens the frontend pretty much just stops working and I have to restart the backend. Every time I try to edit any fields on my custom entity, the backend crashes. I can edit fields on existing entities like Companies just fine.

I can definitely deep dive this issue but was wondering if someone could save me some time if they've seen it before.

The whole error I get is


EntityNotFoundError: Could not find any entity of type "ObjectMetadataEntity" matching: {
    "relations": [
        "fields",
        "fields.fromRelationMetadata",
        "fields.toRelationMetadata"
    ],
    "where": {
        "nameSingular": "_student",
        "workspaceId": "20202020-1c25-4d02-bf25-6aeccf7ea419"
    }
}
    at /app/src/entity-manager/EntityManager.ts:1274:25
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at CallWebhookJobsJob.handle (/app/packages/twenty-server/src/workspace/workspace-query-runner/jobs/call-webhook-jobs.job.ts:44:7)
    at SyncDriver.add (/app/packages/twenty-server/src/integrations/message-queue/drivers/sync.driver.ts:26:12)
remote vale
#

Mmmh @wanton dust any chance this is linked to webhooks implementation? I see webhooks in the stack trace

wanton dust
#

Hey @slate thicket , can you provide some steps in order to be able to reproduce the issue? I tried to add a new custom object, then add some records on it, but I did not encounter any issue. What puzzles me is that underscore "_" before your object nameSingular "_student"

bright plover
#

Is this still an active issue?