Back

Uncaught (in promise) AppwriteException: Invalid relationship value. Must

  • 0
  • Databases
  • Cloud
RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
1 Jul, 2024, 19:03

error mentioned above happens when updating relationship

code:

TypeScript
    async function updateChildren() {
        await appwriteDatabases.updateDocument(DB_ID,COLLECTION.Parents,parentDBID,
            {
                students:[...children]
            }
        ).then((res) => {
            console.log(res);
        });
    }
TL;DR
Developers having trouble with an AppwriteException: "Invalid relationship value", impacting their ability to access shared projects. The issue persists even after resetting their collection and they suspect a problem with their columns. They are advised to provide an appwrite.json of their collections using the Appwrite CLI and share the payload of the patch request to troubleshoot. The relationship in question, created around December, used to work but recently stopped, potentially due to changes during testing. More details needed about the relationship attribute. The issue also occurs in the cloud environment.
RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
1 Jul, 2024, 19:03

this is the children array :

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
1 Jul, 2024, 19:42

someone please help me

Kenny
1 Jul, 2024, 19:45

What comes after must in the error

Mosh Ontong
2 Jul, 2024, 03:06

can you orovide the information about your attributes and then the step by step when and how does that problem occur.

Steven
2 Jul, 2024, 03:15

Can you share the payload of the patch request?

When was this relationship created?

Did this ever work?

What are the details about the relationship attribute (what type, etc)?

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 03:33

this used to work but recently it stopped working when I started testing the feature

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 03:35

this relationship was created a few months back. Id say around december (ish)

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 03:36
RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 03:36

relationship type is many to one

Steven
2 Jul, 2024, 03:39

You might have a problem with some of your columns. Can you provide an appwrite.json of your collections via the Appwrite CLI?

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 12:20

I reset my entire collection but the issue still persistent

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 14:58

oh btw

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 14:59

@Steven do u rememebr me asking you to retrieve my projects from another account?

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 14:59

I completely forgot about that

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 14:59

but can you do taht please

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 14:59

so basically waht happened was that me and my cousin got the free plan of appwrite

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 14:59

yk the promotion

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 14:59

and we shared eachother out personal projects

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 14:59

and what happened

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 14:59

is that after the free tier expired

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 15:00

since we shared our projects

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 15:00

he got my personal projects

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 15:00

as well as he kept his

RangerDev πŸ”»πŸ”»πŸ”»πŸ”»
2 Jul, 2024, 15:00

so now I have to log into his account to access my projects

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