{"action":"created","issue":{"url":"https://api.github.com/repos/codinguser/gnucash-android/issues/452","labels_url":"https://api.github.com/repos/codinguser/gnucash-android/issues/452/labels{/name}","comments_url":"https://api.github.com/repos/codinguser/gnucash-android/issues/452/comments","events_url":"https://api.github.com/repos/codinguser/gnucash-android/issues/452/events","html_url":"https://github.com/codinguser/gnucash-android/issues/452","id":121483248,"number":452,"title":"Can't restore from backup (previous issue #355) - Multiple ROOT accounts in backup","user":{"login":"kens2929","id":16240854,"avatar_url":"https://avatars.githubusercontent.com/u/16240854?v=3","gravatar_id":"","url":"https://api.github.com/users/kens2929","html_url":"https://github.com/kens2929","followers_url":"https://api.github.com/users/kens2929/followers","following_url":"https://api.github.com/users/kens2929/following{/other_user}","gists_url":"https://api.github.com/users/kens2929/gists{/gist_id}","starred_url":"https://api.github.com/users/kens2929/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kens2929/subscriptions","organizations_url":"https://api.github.com/users/kens2929/orgs","repos_url":"https://api.github.com/users/kens2929/repos","events_url":"https://api.github.com/users/kens2929/events{/privacy}","received_events_url":"https://api.github.com/users/kens2929/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/codinguser/gnucash-android/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-12-10T13:25:12Z","updated_at":"2016-01-21T07:44:14Z","closed_at":null,"body":"Hi,\r\nFollowing a data loss on my multi-level and multi-currency database I have attempted to restore my accounts from a backup point but keep getting the message, \"an error occurred while importing the gnucash accounts. Multiple root accounts exist in book\".\r\nI know this issue has been raised before but I couldn't find how to resolve it.\r\nZip file attached.\r\nMany thanks\r\nKen\r\n[20151207_212902_gnucash_export.gnca.zip](https://github.com/codinguser/gnucash-android/files/58106/20151207_212902_gnucash_export.gnca.zip)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/codinguser/gnucash-android/issues/comments/173485508","html_url":"https://github.com/codinguser/gnucash-android/issues/452#issuecomment-173485508","issue_url":"https://api.github.com/repos/codinguser/gnucash-android/issues/452","id":173485508,"user":{"login":"fefe982","id":3244578,"avatar_url":"https://avatars.githubusercontent.com/u/3244578?v=3","gravatar_id":"","url":"https://api.github.com/users/fefe982","html_url":"https://github.com/fefe982","followers_url":"https://api.github.com/users/fefe982/followers","following_url":"https://api.github.com/users/fefe982/following{/other_user}","gists_url":"https://api.github.com/users/fefe982/gists{/gist_id}","starred_url":"https://api.github.com/users/fefe982/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fefe982/subscriptions","organizations_url":"https://api.github.com/users/fefe982/orgs","repos_url":"https://api.github.com/users/fefe982/repos","events_url":"https://api.github.com/users/fefe982/events{/privacy}","received_events_url":"https://api.github.com/users/fefe982/received_events","type":"User","site_admin":false},"created_at":"2016-01-21T07:44:14Z","updated_at":"2016-01-21T07:44:14Z","body":"So the main problem would finding out when the export generated an XML with two ROOTs in a book.\r\n\r\nI didn't check the code, but I think that there is no error check for this in the exporting process. So if there are two ROOTs in the db, there may be two ROOTs in the XML."}}