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.Recommended threads
- Auth not working on expo react native
I'm trying to launch a development server with expo go and appwrite as a backend. On my windows pc, I've got a local docker instance of appwrite running as my b...
- Urgent help required - Could not resolve...
I upgraded my production environment to 1.8.0 but experienced issues with appwrite running out of worker threads. I downgraded back to 1.6.1 and restored the da...
- How to change "collection Id" to "collec...