Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Gnucash 2.7 file not importing currencies

See original GitHub issue

Steps to reproduce the behaviour

  1. Open GnuCash 2.7.3
  2. Create a new book with currency USD some default accounts (or just open a 2.6 book and re-save it)
    • It’s possible this also affects other currencies, but I only tested with USD
  3. Import the .gnucash into GnuCash-Android

Expected behaviour

  1. The accounts are imported with the USD currency

Actual behaviour

  1. Every account has currency type XXX, even if you change the Default Currency setting to USD before or after importing

Software specifications

  • GnuCash Android version: F-Droid 2.3.0

  • System Android version:7.1.2 RR-N-v5.8.5-20170924-cheeseburger-Final

  • Device type: OnePlus5, rooted

  • GnuCash desktop version: GnuCash 2.7.3, Build ID: 2.7.3+ (2017-12-30)


I created two books with two GnuCash verions with default accounts and a couple transactions with USD currency and imported both into GnuCash-Android. The 2.6 version worked (imported as USD), and the 2.7 did not (imported as XXX).

If you run a diff (diff -Naur <(zcat 2.6.15-base.gnucash) <(zcat 2.7.3-base.gnucash)) on the files, you’ll notice (aside from guid/date differences) <cmdty:space>ISO4217</cmdty:space> has been replaced with <cmdty:space>CURRENCY</cmdty:space>. I have attached the diff and both files.

It looks like 2.7.3 introduces breaking changes:

Their news page mentions these breaking changes on their Update Notes page, but I can’t seem to access that page at the moment.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

xzfantomcommented, May 13, 2018

There is one place in that influence import of new format for currency. I made some fixes in and it seems like working for me and can import from new and old files.

codingusercommented, May 31, 2018

Fixed in develop via #779 Thanks @xzfantom

Read more comments on GitHub >

github_iconTop Results From Across the Web

6.16. Importing Transactions from Files - GnuCash
Choose the QIF file currency: Select the required currency from the dropdown list and click on Next to continue;. Tradable commodities: Not yet...
Read more >
GnuCash Tutorial and Concepts Guide
Read more >
GnuCash News
Bug 798273 - Consider a entity import system like in docbook-xsl; Guide:C:Currency: update images Part 1; Fix license file to use actual file...
Read more >
Older Announcements - GnuCash
Strictly use use-modules to import Scheme symbols: Guile 3.0 doesn't like the alternatives. This can cause problems resolving symbols if the source of...
Read more >
3.1. Importing Transactions from Files - GnuCash
It may or may not be specified in the data being imported, depending on the import format. It is usually the first split...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found