Unable to edit one_to_many association

Greetings! Thank you for bringing such an amazing application to the people, with a fair and fertile pricing structure.

I’m having an odd issue around a tasks system I’ve just put together. Not sure if it is my mistake or a bug. I’m unable to modify the associated client of the task. I’ve got the associated field setup in the screenshot below. In the tasks table when I hit edit, I get the list of clients which is great, but when I change and hit submit, it never changes. Other fields change but not the associated client. I think these errors are relate:

{“level”:“error”,“message”:“to do update action, filter or filterByTk is required”,“meta”:{“err”:“Error: to do update action, filter or filterByTk is required\n at validateFilterParams (/app/nocobase/node_modules/@nocobase/server/lib/middlewares/validate-filter-params.js:42:11)\n at dispatch (/app/nocobase/node_modules/koa-compose/index.js:42:32)\n at verificationIntercept (/app/nocobase/node_modules/@nocobase/plugin-verification/dist/server/Plugin.js:136:16)\n at dispatch (/app/nocobase/node_modules/koa-compose/index.js:42:32)\n at deleteRolesCache (/app/nocobase/node_modules/@nocobase/plugin-users/dist/server/server.js:181:13)\n at dispatch (/app/nocobase/node_modules/koa-compose/index.js:42:32)\n at destroyMiddleware (/app/nocobase/node_modules/@nocobase/plugin-file-manager/dist/server/actions/attachments.js:144:12)\n at dispatch (/app/nocobase/node_modules/koa-compose/index.js:42:32)\n at handleFieldSourceMiddleware (/app/nocobase/node_modules/@nocobase/plugin-data-source-main/dist/server/server.js:377:13)\n at dispatch (/app/nocobase/node_modules/koa-compose/index.js:42:32)”},“module”:“graphPositions”,“submodule”:“update”,“method”:“error-handler”,“app”:“main”,“reqId”:“184e5d90-9301-426a-ae3a-eae54cddcf46”,“dataSourceKey”:“main”,“timestamp”:“2025-01-18 03:07:16”}
{“level”:“error”,“message”:“Validation error”,“meta”:{“err”:“Error\n at Query.run (/app/nocobase/node_modules/sequelize/lib/dialects/postgres/query.js:50:25)\n at /app/nocobase/node_modules/sequelize/lib/sequelize.js:315:28\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async PostgresQueryInterface.insert (/app/nocobase/node_modules/sequelize/lib/dialects/abstract/query-interface.js:308:21)\n at async model.save (/app/nocobase/node_modules/sequelize/lib/model.js:2490:35)\n at async task_comments.create (/app/nocobase/node_modules/sequelize/lib/model.js:1362:12)\n at async HasMany.create (/app/nocobase/node_modules/sequelize/lib/associations/has-many.js:301:12)\n at async _HasManyRepository.create (/app/nocobase/node_modules/@nocobase/database/lib/relation-repository/relation-repository.js:180:22)\n at async descriptor.value (/app/nocobase/node_modules/@nocobase/database/lib/decorators/transaction-decorator.js:84:29)\n at async create (/app/nocobase/node_modules/@nocobase/actions/lib/actions/create.js:37:20)”},“module”:“tasks/1/Belong2task2”,“submodule”:“create”,“method”:“error-handler”,“app”:“main”,“reqId”:“e8e98429-c9a5-4fa1-b33c-982e7463c699”,“dataSourceKey”:“main”,“timestamp”:“2025-01-18 03:09:54”}

Running nocobase v1.4.26. I appreciate your insight. Very excited to learn this software to integrate it for myself and clients. Very powerful and easy!

The “Foreign key” is set to “ID”, which is the self-incrementing primary key of the “task” table, please set the other fields.

Thank you. I created a new ‘associated client’ one to one with a unique foreign key, and it works.