Skip to content
Init is coming / May 19 - 23
Back

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

  • 3
  • Web
  • Cloud
Ketan Saraf
10 May, 2025, 11:39
TL;DR
Developers are unable to create documents in collections using code, getting the error "The document data is missing" even though no changes were made. The error started a few hours ago. It works via the admin panel. The solution is to populate the document data correctly.
Darshan Pandya
10 May, 2025, 11:43

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

Ketan Saraf
10 May, 2025, 11:57
Darshan Pandya
10 May, 2025, 12:05

I've let the team know about this.

Ketan Saraf
10 May, 2025, 12:06

Okay, kindly get back to me asap

Darshan Pandya
10 May, 2025, 12:08

what SDK and version is used here?

Darshan Pandya
10 May, 2025, 12:08

web or server-side, I mean.

BartoszTFT
10 May, 2025, 12:15

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",

< Unity />
10 May, 2025, 12:23

Same issue!

Ketan Saraf
10 May, 2025, 12:27

"appwrite": "^11.0.0", web using nextjs

Darshan Pandya
10 May, 2025, 12:37

Please share your project, db and collection IDs.

BartoszTFT
10 May, 2025, 12:40

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();

TypeScript
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" } }

BartoszTFT
10 May, 2025, 12:41
Ketan Saraf
10 May, 2025, 13:00

can we share it publicly without any security concerns?

Darshan Pandya
10 May, 2025, 13:53

you can send a DM.

Siyamak45
10 May, 2025, 14:02

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

Siyamak45
10 May, 2025, 14:02

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

Siyamak45
10 May, 2025, 14:03

I'm using the Pro Cloud version.

Siyamak45
10 May, 2025, 14:04

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

Siyamak45
10 May, 2025, 14:05

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:

TypeScript
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"
    }, 
);
Siyamak45
10 May, 2025, 14:06
Darshan Pandya
10 May, 2025, 14:07

Hey, can you create a thread in #🚑│support and share project and database, collection details? Feel free to DM me if you cannot share them on the support thread.

loks0n
10 May, 2025, 14:36

Hey, can you take another look now? Let me know if you are still experiencing issues.

Siyamak45
10 May, 2025, 14:40

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

BartoszTFT
10 May, 2025, 14:40

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

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