#"The document data is missing. Try again with document data populated"Error

31 messages · Page 1 of 1 (latest)

dim socket
#

Hello, I am getting this error suddenly. I have been using this service for a year now, and I haven't made any changes to my code since then.

My app was working fine since the morning, I am suddenly getting this error.

slate yoke
#

did you change anything in your code? can you share the code snippet, logs, etc?

dim socket
#

No as mentioned nothing changed

slate yoke
#

data looks ok 🤔, can you also share the code?

slate yoke
#

I've let the team know about this.

dim socket
#

Okay, kindly get back to me asap

slate yoke
#

web or server-side, I mean.

shy umbra
#

Hello, i have the same error. I haven't changed the program code or database structure for 3 months. Error show up suddenly ~1-2h ago.
"appwrite": "^15.0.0",

sudden wagon
#

Same issue!

dim socket
slate yoke
#

Please share your project, db and collection IDs.

shy umbra
#

data.ts:
const APPWRITE_URL = 'https://cloud.appwrite.io/v1';
const APPWRITE_PROJECT = 'myID';

const appwriteClient = new Client();
appwriteClient.setEndpoint(APPWRITE_URL).setProject(APPWRITE_PROJECT);

const account = new Account(appwriteClient);
const storage = new Storage(appwriteClient);
const databases = new Databases(appwriteClient);
...

My Function:
...
try {
const messageID = uuidv4();
const now = new Date();
const formattedDate = now.toISOString();

await databases.createDocument(
  AppDatabases.main,
  AppCollections.messages,
  messageID,
  {
    [MessagesCollection.chat]: chatID,
    [MessagesCollection.sender]: senderID,
    [MessagesCollection.content]: content,
    [MessagesCollection.senderName]: senderName,
    [MessagesCollection.senderRole]: senderRole,
    [MessagesCollection.type]: type || '',
    [MessagesCollection.timestamp]: formattedDate,
  }
);

..

Error:
{
"message": "The document data is missing. Try again with document data populated",
"code": 400,
"type": "document_missing_data",
"version": "1.6.2"
}

Payload:
{
"documentId": "9d6ee435-b867-4760-b97c-d8a056bd56dd",
"data": {
"chat": "695b3a22-658e-4d00-9e32-8fbf76248ee2",
"sender": "6554a6283dbb19c4daba",
"content": "iRemoveIT",
"senderName": "iRemoveIT",
"senderRole": "iRemoveIT",
"type": "",
"timestamp": "2025-05-10T12:37:09.869Z"
}
}

dim socket
slate yoke
tough lynx
#

I’ve also been receiving this error since a few hours ago.

#

I am completely unable to create any documents in any collection through code, although there is no problem creating documents via the admin panel.

#

I'm using the Pro Cloud version.

#

**Please treat this issue as extremely urgent. **

#

It is no longer possible to create a document using the code below, and the error "The document data is missing." is returned. This is despite the fact that it had been working without any issues for months. The error suddenly started appearing a few hours ago, without any changes being made to the application code.

Using Node.js on the server side:

const create_balance = await databases.createDocument(
    'xcard', // databaseId
    'wallets_balances', // collectionId
    ID.unique(), // documentId
    {
        uid: "123",
        currency: "TEST",
        amount: 0,
        last_payment_track_id: "1234567"
    }, 
);
slate yoke
fickle mango
tough lynx
#

Yes, the issue still persists, and no changes have been made.

shy umbra
#

Yes, the issue still persists, and no changes have been made.

tough lynx
#

I think the issue has been resolved for me now

fickle mango
#

Awesome, thanks your patience.