Skip to content

Unable to modify or delete actions referencing renamed Firestore fields — automatic revert and crash prevention #7363

Description

@ByeFry

Can we access your project?

  • I give permission for members of the FlutterFlow team to access and test my project for the sole purpose of investigating this issue.

Current Behavior

Hi,

I'm experiencing a critical bug in the FlutterFlow editor that prevents me from modifying, replacing, or deleting any action that references a renamed or retyped Firestore field. This affects multiple actions across my project.

Project: WhileSheShops

What happened:
I changed the type of lastMessageTime (from String to DateTime) and renamed timestamp to msgTimestamp in my Firestore collection schemas (conversations and messages). The existing actions still reference the old field names/types and now show errors like:

"Field 'lastMessageTime' specified in Database action for Button does not exist in collection conversations"
"Field 'timestamp' specified in Database action for Button does not exist in collection messages"
"Cannot manually specify field 'lastMessageTime' in Database action for Container"

The problem:
When I try to fix these errors by:

Modifying the field value in Set Fields → I get redirected to an empty "Action Flow Editor - Landing" page and the change is reverted
Deleting the broken field from Set Fields → same redirect and revert
Deleting the entire action → I get "Invalid Action - The most recent action would have caused a crashing error, so we've undone it"
Deleting the On Tap trigger → same crash prevention message
Deleting the widget itself → same result

This happens on both the web editor and the desktop app. The broken actions are completely locked — I cannot modify, delete, or replace them in any way.

Affected locations:

Page "Landing" → Container → On Tap → Action 2 (Update Document on conversations) — references lastMessageTime (non-existent)
Page "Landing" → Button → On Tap → Action 1 (Create Document on messages) — references timestamp (non-existent)
Page "Landing" → Button → On Tap → Action 2 (Update Document on conversations) — references lastMessageTime (non-existent)

Expected behavior: I should be able to delete or modify actions that reference non-existent fields.

Request: Could you either fix the actions directly in my project, or provide a way to force-delete broken action references?

Thank you.

Expected Behavior

Expected Behavior:
When I modify, delete, or replace a Set Field in an action that references a renamed or non-existent Firestore field, the change should be saved. Currently, any modification triggers an automatic revert with "Invalid Action - The most recent action would have caused a crashing error, so we've undone it" or redirects to an empty "Action Flow Editor - Landing" page.

Steps to Reproduce

Open project WhileSheShops
Go to page "Landing" → Widget Tree → find the Button with On Tap actions
Open Action Flow Editor → click on Action 1 (Create Document on messages collection)
Try to modify or delete the "timestamp (non-existent)" field in Set Fields
The editor redirects to an empty Landing page and reverts the change
Same behavior on Action 2 (Update Document on conversations) with "lastMessageTime"
Attempting to delete the action or the entire On Tap trigger shows "Invalid Action" crash prevention message
Bug reproduces on both web editor and desktop app

Reproducible from Blank

  • The steps to reproduce above start from a blank project.

Bug Report Code (Required)

bench-buddies-g82ok2

Visual documentation

Image

Environment

- FlutterFlow version: 
- Platform:
- Browser name and version:
- Operating system and version affected:

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: needs triageA potential issue that has not been confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions