actualbudget/actual · error · Error

getBankSyncError(errors[0])

Error message

getBankSyncError(errors[0])

What it means

Error "getBankSyncError(errors[0])" thrown in actualbudget/actual.

Source

Thrown at packages/loot-core/src/server/api.ts:321

    if (simpleFinAccounts.length >= 1) {
      const res = await handlers['simplefin-batch-sync']({
        ids: simpleFinAccountIds,
      });

      res.forEach(a => allErrors.push(...a.res.errors));
    }

    const { errors } = await handlers['accounts-bank-sync']({
      ids: accountIdsToSync.filter(a => !simpleFinAccountIds.includes(a)),
    });

    allErrors.push(...errors);
  }

  const errors = allErrors.filter(e => e != null);
  if (errors.length > 0) {
    throw withErrorCode(new Error(getBankSyncError(errors[0])), errors[0].code);
  }
};

handlers['api/start-import'] = async function ({ budgetName }) {
  // Notify UI to close budget
  await handlers['close-budget']();

  // Create the budget
  await handlers['create-budget']({ budgetName, avoidUpload: true });

  // Clear out the default expense categories
  db.runQuery('DELETE FROM categories WHERE is_income = 0');
  db.runQuery('DELETE FROM category_groups WHERE is_income = 0');

  // Turn syncing off
  setSyncingMode('import');

  connection.send('start-import');

View on GitHub (pinned to d4334cb6e6)

When it happens

Trigger: Thrown at packages/loot-core/src/server/api.ts:321 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of actualbudget/actual@d4334cb6e6 (2026-08-29). Data as JSON: /api/errors/48d23ddffcbaa71b. Report an issue: GitHub.