--- title: 'DF0022: RPC Function Not Registered (Update)' description: 'RPC function "{name}" is not registered. Use register() to add new functions.' --- ## Message > RPC function "`{name}`" is not registered. Use register() to add new functions. ## Cause `ctx.rpc.update()` was called for a function that was never registered. `update()` is for replacing an existing definition. ## Fix Call `ctx.rpc.register()` first, or pass `force: true` to `update()` to register-or-replace in one call. ## Source - [`packages/devframe/src/rpc/collector.ts`](https://github.com/devframes/devframe/blob/main/packages/devframe/src/rpc/collector.ts): `RpcFunctionsCollectorBase.update()` throws `DF0022` when the named function was never registered.