[GH-ISSUE #7812] [Bug]: importTransactions API silently fails without reporting error when amount is incorrect #117587

Closed
opened 2026-06-11 13:00:13 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @junalmeida on GitHub (May 12, 2026).
Original GitHub issue: https://github.com/actualbudget/actual/issues/7812

What happened?

When trying to import transactions with amount that contains decimals it succeeds, meaning errors constant is empty, and added constant has ids, however, no transaction is added to the system.

It is not expected this to succeed, because amount contains a float number with decimals, and the api clear states it should be an integer (i.e 1230 instead of 12.30).

But I would expect each incorrect item to return as an error in errors constant instead of added.

How can we reproduce the issue?

const { errors, added, updated } = await importTransactions(accountId, [
  {
    date: '2019-08-20',
    amount: 12.30,
    payee_name: 'Test',
  },
]);

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Chrome

Operating System

Linux

Originally created by @junalmeida on GitHub (May 12, 2026). Original GitHub issue: https://github.com/actualbudget/actual/issues/7812 ### What happened? When trying to import transactions with amount that contains decimals it succeeds, meaning `errors` constant is empty, and `added` constant has ids, however, no transaction is added to the system. It is not expected this to succeed, because `amount` contains a float number with decimals, and the api clear states it should be an integer (i.e `1230` instead of `12.30`). But I would expect each incorrect item to return as an error in `errors` constant instead of `added`. ### How can we reproduce the issue? ``` const { errors, added, updated } = await importTransactions(accountId, [ { date: '2019-08-20', amount: 12.30, payee_name: 'Test', }, ]); ``` ### Where are you hosting Actual? Docker ### What browsers are you seeing the problem on? Chrome ### Operating System Linux
GiteaMirror added the bugAPI labels 2026-06-11 13:00:15 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#117587