Skip to content
Back

Transaction error

  • 0
  • Self Hosted
Sabiyo
21 Nov, 2025, 12:27

Future createOperations() async { final client = Client() .setEndpoint(AppwriteConstants.apiEndPoint) .setProject(AppwriteConstants.projectId);

TypeScript
final tablesDB = TablesDB(client);

final tx = await tablesDB.createTransaction();

await tablesDB.createOperations(
  transactionId: tx.$id,
  operations: [
    {
      'action': 'create',
      'databaseId': '68ff00b800318a2a0fa8',
      'tableId': 'demo_table',
      'rowId': ID.unique(),
      'data': {'name': 'Walter'},
    },
    {
      'action': 'create',
      'databaseId': '68ff00b800318a2a0fa8',
      'tableId': 'demo_table_1',
      'rowId': ID.unique(),
      'data': {'name': 'new Walter'},
    },
  ],
);

await tablesDB.updateTransaction(transactionId: tx.$id, commit: true);

AppwriteException: transaction_not_found, Transaction with the requested ID could not be found. (404)

Can any one please help me to find where am wrong

TL;DR
There's an issue with the transaction ID provided as it can't be found, resulting in a transaction_not_found error. Double-check the transaction ID being used and ensure it is valid and accessible.
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