codinguser / gnucash-android

Gnucash for Android mobile companion application.
Apache License 2.0
1.23k stars 540 forks source link

Import GnuCash XML: EACCES (Permission denied) #687

Closed Goli4thus closed 7 years ago

Goli4thus commented 7 years ago

Steps to reproduce the behaviour

  1. Export accounts in GnuCash (Ubuntu) (File -> Export -> Export Accounts) to example.gnucash
  2. In App: Settings -> Accounts -> Import GnuCash XML
  3. Select previously exported example.gnucash file

Expected behaviour

Accounts are being imported

Actual behaviour

open failed: EACCES (Permission denied) Imgur

Software specifications

This might be relevant:

http://stackoverflow.com/questions/8854359/exception-open-failed-eacces-permission-denied-on-android

codinguser commented 7 years ago

GnuCash Android since v2.2.0 does not have permission to read from any location on the SD card. I would suggest going through the Navigation Drawer --> Open and then select the file If your SD card isn't not showing, tap the menu on upper right of the file picker and enable "internal storage". Let me know if that works for you!

Goli4thus commented 7 years ago

Yes that works. Thanks!

BTW: What is the described "Import GnuCash XML" action actually for?

codinguser commented 7 years ago

It allows you to pick a place to import from, and actually used to work as you expect it to. We only recently removed the permissions for direct access to the SD card. So maybe we need to revisit that option and adapt it to the new procedures.

Goli4thus commented 7 years ago

Alright, thanks for the explanation!

DeLaRiva commented 6 years ago

Hi, I've the same or a similar problem on the android version. I faces the same error when I try to import a gnucash file from my dropbox where I saved the file I've created in Ubuntu. Circumventing is not possible since "opening" is only available for google drive (but in "importint" dropbox is there).