Skip to content

v1.18: Code - Serverless Function blocks broken, workflows reset after reload, "Function not found" on Logic Function #18296

@user338769

Description

@user338769

Bug Description

After updating our self-hosted Twenty instance to version 1.18.0, workflows containing “Code – Serverless Function” blocks are no longer accessible and workflow code features appear to be broken.

Existing workflows (Serverless Function)

When clicking on a “Code – Serverless Function” step inside an existing workflow:
• An error message is displayed asking to reload the page.
• The code editor does not open and the stored code is not shown.
• After reloading the page, the workflow is often completely empty.
• Previously saved serverless function code appears to be inaccessible.
• The workflow no longer executes correctly.
• The behavior started immediately after upgrading to 1.18.0.
• Existing workflows created before the update are affected.

This makes previously configured workflows unusable and raises concerns about possible data loss.

Image

Creating new code steps (Logic Function)

When attempting to add a new “Code – Logic Function” step to a workflow:
• The creation fails.
• An error message is shown: “Function not found”.
• The step cannot be added.

This suggests that workflow code execution features may not be properly registered or migrated after the upgrade.

We also cannot determine where the serverless function code is stored in the database dump, which makes manual recovery impossible.

Image

Expected behavior

•	Clicking a “Code – Serverless Function” block should open the code editor.
•	Previously saved code should be visible and editable.
•	Reloading the page should not remove or reset workflow content.
•	Adding a new “Code – Logic Function” step should work without errors.
•	Existing workflows should remain intact and functional after upgrading.

Technical inputs

•	Self-hosted Twenty instance.
•	Issue started immediately after upgrading to v1.18.0.
•	The problem affects existing workflows that already contained serverless code.
•	After the error and page reload, workflows may appear empty.
•	Creating new “Code – Logic Function” steps fails with “Function not found”.
•	We inspected our database dump but could not identify where the serverless function code for workflow steps is stored.

##Additional request

We would also like clarification on where the serverless function code for workflow steps is stored in the database (table and field name). This would help us verify whether the data still exists and attempt manual recovery.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions