Back
I'm migrating from Firebase Firestore to Appwrite DB but there an error with a value of attribute
- 0
- Databases
- React Native
- General
- Cloud
I'm getting an error with all documents in my Firestore db that a value must be an integer, I made a function that check all my docs attribute value if it's integer or not, and all of them are integer.
more informations about the error:
TypeScript
"errors": [
"Error occurred while pushing 'databases:1031996536973963274' to destination with message: 'Invalid document structure: Attribute \"cr_idCounter\" has invalid format. Value must be a valid integer'",
"Error occurred while pushing 'databases:1052861398058815549' to destination with message: 'Invalid document structure: Attribute \"cr_idCounter\" has invalid format. Value must be a valid integer'",
"Error occurred while pushing 'databases:1056184177495650364' to destination with message: 'Invalid document structure: Attribute \"cr_idCounter\" has invalid format. Value must be a valid integer'",
"Error occurred while pushing 'databases:1067815151354519633' to destination with message: 'Invalid document structure: Attribute \"cr_idCounter\" has invalid format. Value must be a valid integer'",
and a lot of errors but it change the id of the document and this is a photo for one of my documents content the value of my attribute.
TL;DR
Developers are encountering an error while migrating from Firebase Firestore to Appwrite DB, where the attribute value must be an integer but is showing an error. Despite verifying that the attribute values are integers, the issue persists. The error message specifies that the "cr_idCounter" attribute has an invalid format and must be a valid integer.
Possible Solution:
- Double-check attribute value formatting to ensure it matches the expected integer type.
- Consider any data type conversions needed during migration to align with Appwrite DB requirements.
- Verify that the data structure in Appwrite DB matches the expected format for integer attributes.Recommended threads
- help!!!!
whats happening no clue pls help 🥲
- How to bypass the rate limit on the back...
Once a month my app has a ton of usage and I always run into the Too many requests 429 error. I am trying to optimize the queues and jobs to manage that, but a...
- 401 - Project not accessible in this reg...
Hi Appwrite team, I’m experiencing a Cloud Console issue with my NYC region project. Problem: - Some Console pages return: “401 - Project is not accessible ...