Cannot read properties of undefined

This error is related to a failure in saving the execution progress. Despite the messages, the flow continues to execute normally and the final result is not affected.

Version: 1.119.2

Logs:
Worker started execution 1922 (job 1301)

Cannot read properties of undefined (reading 'OpenAI Chat Model') Failed saving execution progress to database for execution ID 1922 (hookFunctionsSaveProgress, nodeExecuteAfter)

Cannot read properties of undefined (reading 'AI Agent') Failed saving execution progress to database for execution ID 1922 (hookFunctionsSaveProgress, nodeExecuteAfter)

Worker finished execution 1922 (job 1301)

This error occurs when n8n tries to save execution progress but can’t find the node definitions for “OpenAI Chat Model” and “AI Agent” nodes. Since your workflow executes successfully, this is likely a database/logging issue rather than a functional problem.

Try these solutions:

• Restart your n8n instance to refresh node registrations

• Check if you have any custom or community nodes that might need reinstalling

• If using Docker, ensure all AI-related node packages are properly installed in your container

• Consider updating to a newer version if possible, as this type of logging error has been addressed in recent releases

The workflow will continue functioning normally, but fixing this will clean up your logs and ensure proper execution tracking.