Back
sdk.js:267 Uncaught (in promise) AppwriteException: Invalid `documentId` param: UID must contain at
- 0
- Web
![](https://cdn.discordapp.com/avatars/1023918110304124990/506a1a911d5eed0384137c10fcc33615.webp)
TypeScript
console.log("id we want to sent " + id);
try {
databases.updateDocument(
conf.appwritedatabaseId,
conf.balancecollectionId,
Query.equal("user", id),
{
balance: balance,
}
);
} catch (error) {
console.log("updatebalance error: " + error);
}
}
const receiverId = formData.id; const amount = Number(formData.balance);
I need to update the the balance field in balance collection using user field which id id but having this error why ? I'm getting the id user id form input from user
TL;DR
The developer is encountering an error when attempting to update the balance field in the balance collection using the user ID inputted by a user. The error message suggests that the `documentId` parameter is invalid. The error specifically mentions that the UID must contain the characters "at".
The solution would be to ensure that the user ID being passed as the `id` parameter contains the necessary characters. It's likely that the developer needs to append the missing characters to the user ID before using it in the `updateDocument` method. Recommended threads
- Server Error - 500 when Loading Messagin...
Hi, I'm self hosting on a VPS my appwrite database and was working towards setting up an SMTP server, when testing I got an error due to some mishaps with the S...
- Invalid token passed in the request by u...
Hi guys, I'm having this issue when passing the parameters userId and secret to **updateVerification**. I checked in Appwrite console and the email was verifie...
- Hi all, can someone help me with 2FA imp...
I am in need of help with implementation of 2FA method in my project.
![](/images/bgs/pre-footer.png)