Future createOperations() async { final client = Client() .setEndpoint(AppwriteConstants.apiEndPoint) .setProject(AppwriteConstants.projectId);
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
Recommended threads
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...
- Functions executed by events does not ap...
Hello, Running self-hosted Appwrite version 1.9.0 (with console 7.8.26). When functions are triggered by an event (eg. databases.\*tables.\*.rows.\*.create) doe...