Back

Function Deployment is failing with error

  • 3
  • Auth
  • Functions
  • Cloud
sagittarius_k2
30 Mar, 2025, 11:01

Error message: Invalid document structure: Attribute "$tenant" has invalid type. Value must be a valid integer. While deploying the function, it fails with above error. Even the redeploy also fails with the same error. Build step is failing.

TL;DR
Developers are experiencing issues with function deployment, specifically encountering an error related to an invalid document structure. The error states that the attribute "$tenant" has an invalid type and the value must be a valid integer. Attempts to redeploy have also failed. Many developers are facing the same issue, leading to frustration as important data storage is impacted. Solution: Review the document structure and ensure that the attribute "$tenant" is being assigned a valid integer value during deployment to resolve the error.
jokernifty
30 Mar, 2025, 11:01

come join us in the discussion below

jokernifty
30 Mar, 2025, 11:01

everyone is facing the same issue

jokernifty
30 Mar, 2025, 11:02

they fucked up the server

sagittarius_k2
30 Mar, 2025, 11:03

Yep, I had a deadline tonight for my customers. I am really pissed off.

azi
30 Mar, 2025, 11:04

mann not a good day to have this issue!

jokernifty
30 Mar, 2025, 11:05

I feel you bro

mm
30 Mar, 2025, 11:05

So this is happening right now?! I am not insane...

azi
30 Mar, 2025, 11:05

bro im an intern. our boss would think of my project as a joke.

jokernifty
30 Mar, 2025, 11:05

welcome

jokernifty
30 Mar, 2025, 11:05

to the gang

mm
30 Mar, 2025, 11:06

I am so pissed

mm
30 Mar, 2025, 11:06

I've deleted the whole collection

sagittarius_k2
30 Mar, 2025, 11:07

Where are our savior?

mm
30 Mar, 2025, 11:07

Just to realise that was not the fix

sagittarius_k2
30 Mar, 2025, 11:08

Same here... I debugged locally my whole code, just to reach here....

Booyah Squadians
30 Mar, 2025, 11:26

oh wow facing the same issue

Booyah Squadians
30 Mar, 2025, 11:27

idk why but I am still able to update some of my collections (1 out of 3 )

azi
30 Mar, 2025, 11:30

apparently my data storage are back. since that is the most important thing on my app. i hope u guys are good too.

jokernifty
30 Mar, 2025, 11:30

nope

azi
30 Mar, 2025, 11:32

man i hope this aint false positive

jokernifty
30 Mar, 2025, 11:40

I am able to update my functions, but database is still the same

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more