
I'm trying to figure out how to create a new document by fetching data from 3 text fields, I get this error: io.appwrite.exceptions.AppwriteException: Param "documentId" is not optional. when I try to fetch the existing data from the document, I get this: io.appwrite.exceptions.AppwriteException: Not Found Please let me know if I'm unclear with my question.

Here's my code:

You're not passing the right parameters. Mouse over createDocument() to see what the parameters are. Or you can look at the docs.
Also, I don't think you need to call toString() on the data.

But it requires String for all the databaseId, collectionId, and documentId. I replace data.toString() with random value assuming that it's the documentId for the new entry



Oh I got it now, adding "unique()" as documentId and removing null fixed my issue

How do I resolve this!? io.appwrite.exceptions.AppwriteException: The current user is not authorized to perform the requested action.

Got it!! add access to anyone in the database settings it'll work.

[SOLVED] Unable to fetch/create Documents
Recommended threads
- Document Data is null.
I'm using flutter and I've just got everything set up, the document meta data is null but the actual query is fine. (see screenshot) The permission I have ar...
- Flutter native Google Sign Up with googl...
Hey I want to use the native login instead of the WebView. Do you have any experience on that and has Appwrite to plan this support?
- Error: Invalid `userId` param: Parameter...
