Skip to content

Firestore Create Document action executes but does not create document #7261

Description

@dayannatj-pixel

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

I found a possible bug with Firestore Create Document.

Project:
Project ID: memokids-dd1e7

Collection:
children

Problem:
The Backend Call -> Firestore -> Create Document action executes, but no document is created in Firestore.

Everything else appears to work correctly.

Tests already performed:

• Firebase project connected successfully.
• Firebase Setup Complete.
• Firestore Rules deployed.
• Firestore collection: children.
• Firestore rules allow create/read/write.
• Created a completely new blank page only for testing.
• Added one TextField.
• Added one Button.
• Button On Tap is executed correctly.
• Show SnackBar action works.
• The SnackBar appears in Preview.
• Added Backend Call -> Create Document.
• Collection: children.
• Field "name" = Specific Value = "Maria".
• Field "createdAt" = Firestore Server Timestamp.
• Custom ID disabled.
• Non-Blocking disabled.
• Saved project.
• Tested in FlutterFlow Preview.

Result:
The SnackBar is displayed, proving the Action Flow runs, but Firestore never creates the document.

Firestore Console:
No document is created.
No fields are updated.

Browser Console:
No Firestore permission errors appear.
Only unrelated browser warnings.

Expected behavior:
Clicking the button should create a document inside the "children" collection.

Could you please verify if this is a FlutterFlow issue or if there is any project configuration that could prevent Create Document from executing?

Expected Behavior

When the button is pressed, FlutterFlow should create a new document in the Firestore collection "children" containing the configured fields.

The document should appear immediately in the Firebase Firestore Console.

Steps to Reproduce

  1. Create a new blank page.
  2. Add one TextField.
  3. Add one Button.
  4. Configure the Button On Tap action.
  5. Add a Show SnackBar action with any message.
  6. Add a Backend Call -> Firestore -> Create Document action.
  7. Collection: children.
  8. Add field "name" with Specific Value = Maria.
  9. Add field "createdAt" with Firestore Server Timestamp.
  10. Save the project.
  11. Open Preview.
  12. Type any value into the TextField.
  13. Press the button.
  14. The SnackBar appears, confirming the Action Flow executes.
  15. No document is created in Firestore.

Reproducible from Blank

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

Bug Report Code (Required)

IT4ki/HluIlgoflA7rX1be5vqCEsJUggTLJEoetxc0gbfe/4B+0uYs/8QFJocMizaH5UOmeJknsx/t7mht/xIPcFGwmZGKo+zLtiShPPbES7VZvSCoeCWnR7P+VXf1y14aa7oBFvKsV1cVkt2lyIPeq/cz2Cf9qOYwx5e6fDbOY=

Visual documentation

Attached screenshots show:

• Firestore collection configuration.
• FlutterFlow Action Flow.
• Create Document configuration.
• Firestore rules.
• Preview execution.
• Firestore Console after execution showing no document created.

Environment

FlutterFlow version:
Current Cloud Version

Platform:
Web

Browser:
Google Chrome

Operating System:
Windows 11

Additional Information

The issue was extensively investigated.

The following were verified:

• Firebase project connected successfully.
• Firebase Setup Complete.
• Firestore Rules deployed.
• Firestore Create/Read/Write permissions enabled.
• Firestore collection exists.
• Test page created from scratch.
• Button executes correctly.
• SnackBar executes correctly.
• Action Flow executes correctly.
• Firestore Create Document action is executed.
• Custom ID disabled.
• Non-Blocking disabled.
• Firestore Server Timestamp configured correctly.
• Browser console does not report Firestore permission errors.

Despite all of the above, Create Document never writes any document to Firestore.

This appears to be either a FlutterFlow bug or an internal project configuration issue that cannot be identified through the UI.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions