Change8
Error1 reports

Fix NotFoundException

in Drizzle ORM

Solution

NotFoundException in Drizzle ORM usually arises when querying for a single record using `.get()` or similar methods, but no matching record exists in the database based on the provided criteria. To fix this, either ensure your query criteria are correct and a record should exist, or use `.findFirst()`/`.findMany()` with `.limit(1)` and handle the potential absence of a result by checking if the returned array is empty. You can also use `.findFirst()` directly and handle null return.

Related Issues

Real GitHub issues where developers encountered this error:

Timeline

First reported:Dec 25, 2025
Last reported:Dec 25, 2025

Need More Help?

View the full changelog and migration guides for Drizzle ORM

View Drizzle ORM Changelog