Back

Creating second relationship attribute to the same collection fails

  • 0
  • Databases
obiwanzenobi
11 Oct, 2023, 11:58

I have 2 collections A and B I want to have 2 different attributes in collection 2 with relationship to collection B creating attribute relA_1 passes but creating attribute relA_2 shows failed indicator next to attribute name in the console. This fails in both console and from Dart SDK.

Additional info: one-way many-to-many

TL;DR
User is trying to create a second relationship attribute to a collection, but it fails. The issue could be due to a conflicting key or other reasons. The user wants to have two different attributes in collection 2 with relationships to collection B. Creating the first attribute succeeds, but creating the second attribute fails. This happens both in the console and from the Dart SDK. The relationship is one-way and many-to-many. Possible solution: Check the JSON response for more details on why it failed. Ensure there are no conflicting keys or other conflicts. Confirm that the syntax and format of the attribute creation is correct. Verify that the relationship is set up
Drake
14 Oct, 2023, 16:32

If you get the JSON response for the attribute, you should see additional detail about why it failed.

It could be a problem with a conflicting key

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