This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Unable to create a new account

Tags: None
(comma "," separated)
kde-makem
Registered Member
Posts
8
Karma
0

Unable to create a new account

Sun Oct 31, 2021 9:10 pm
I have just updated KMyMoney to the latest version via an Appimage.

When I try to create a new account I get an error message:

Unable to create account: Unknown parent account "/home/appimage/workspace/KMyMoney_Build/kmymoney/kmymoney/mymoney/storage/mymoneystoragemgr.cpp:397

Can I get advice please?

Edit: I have upgraded from Ubuntu 20.04 to 21.04
jmacleod
Registered Member
Posts
50
Karma
0

Re: Unable to create a new account

Mon Nov 01, 2021 3:21 pm
Appimages are not 'updated', just download a newer version, remove the old and install new.

I use AppimageLauncher for this - makes it easy.

Have no idea what the error message refers to!
kde-makem
Registered Member
Posts
8
Karma
0

Re: Unable to create a new account

Mon Nov 01, 2021 4:12 pm
My original program was install from the ubuntu repository. I purged the files with synaptic and downloaded the latest AppImage.

Running that image produces the same output when I attempt to create an new account in both finance files I use.
jmacleod
Registered Member
Posts
50
Karma
0

Re: Unable to create a new account

Mon Nov 01, 2021 6:16 pm
Possible mis-understanding on my part, but "create a new account in finance files I use".

KMyMoney is a 'personal' finance manager which I have always understood to mean one user only with one .kmy file.
kde-makem
Registered Member
Posts
8
Karma
0

Re: Unable to create a new account

Mon Nov 01, 2021 11:31 pm
jmacleod wrote:Possible mis-understanding on my part, but "create a new account in finance files I use".

KMyMoney is a 'personal' finance manager which I have always understood to mean one user only with one .kmy file.


I have two separate files (.kmy), one for each person and open the relative file to create a new account in that file for that person. I cannot as I get the error posted. This occurs for both files (persons).

I wonder, could the upgrade 20.04 to 21.04 have lost or changed library locations. I did not have this problem prior to the upgrade.
User avatar
ostroffjh
Registered Member
Posts
253
Karma
0
OS

Re: Unable to create a new account

Mon Nov 01, 2021 11:54 pm
I doubt this is related to your Ubuntu upgrade, or to the KMM version. Part of the account creation process is choosing a parent account, and it seems the program is complaining about the account you have chosen as a parent. What type of account are you trying to create, and what have you chosen as the parent account?
Also, as a test, can you create a brand new kmy data file and try to create a new account. Let us know if that works or not, and the exact version reported by Help/About KMyMoney.
kde-makem
Registered Member
Posts
8
Karma
0

Re: Unable to create a new account

Tue Nov 02, 2021 4:19 pm
I have two .kmy files each has several account types each created by selecting Account/New Account.

I have created a new test .kmy file and using above method created an account.

I am a little confused by the term, 'Parent Account'. A parent is the .kmy file in which a new Account is created is it not?

Edit: I always select Account/New Account whilst in the Assets and Liabilities Summary page. I have never had a problem. I now see that I must go to Accounts and from there highlight Asset and then go to Account/New Account. If I do this I can make a new account without errors. Is this something new or have I been approaching this wrongly for many years?

The new account I want to create is a savings account which cannot be a liability so it seemed natural to select savings from the menu which includes Asset

Version 5.1.2-15efbeb
User avatar
ostroffjh
Registered Member
Posts
253
Karma
0
OS

Re: Unable to create a new account

Tue Nov 02, 2021 8:33 pm
Have you read the Handbook section on accounts? It might explain much of this. You can start with https://docs.kde.org/stable5/en/kmymone ... ounts.html
The Parent Account of an account is not the file in which it exists. If you select the Accounts View, you will see Favorites plus the five basic account types, and each can be expanded into a tree of nested accounts. This nesting (other than the choice of the top level, which obviously depends on the type of account) is solely for your convenience. You can group accounts in any way you want, or just put them all directly under the top level type. The Parent Acount of any account is the Account which it is directly under in this tree.
It makes no difference where in the program you are when you invoke the New Account Wizard. You can select Savings as the account type on the first page of the wizard. It seems that your problem was on the next page of the wizard where you select the parent account. My guess is that you didn't select a parent account at all, which will lead to the error you got. I have opene a bug (https://bugs.kde.org/show_bug.cgi?id=444856) since it really should not allow you to hit "Next" until you have selected a Parent Account.
kde-makem
Registered Member
Posts
8
Karma
0

Re: Unable to create a new account

Tue Nov 02, 2021 10:03 pm
Thank you for that explanation.

I do not ever remember seeing the page to select a sub account. I suppose that is because I just click next as the new account can only be an asset judging by that page, not a favourite.

Yes, I did that and I got the error as soon as I clicked next. As I have said, that has never happened and I have never selected a parent account.

I suppose some users may want to put a savings account under a Liabilities parent for some reason but it does not make sense to me in my situation.

It is rather confusing now look carefully I see 8 choices of account type, two of which are parents. From that one assumes the other 6 a find there own place in the system, Asset or Liability. However, I do not have Investments which are a Liability :)

Perhaps If you think you must select Asset or Liability, that should selection be on a separate menu preceding the other options.
User avatar
ostroffjh
Registered Member
Posts
253
Karma
0
OS

Re: Unable to create a new account

Tue Nov 02, 2021 10:15 pm
Are you carefully going through all four steps of the new account wizard? I don't see where you are restricted to an asset account.
Step 1: Institution: optionally choose an Instititution, Account number, and IBAN
Step 2: Account: enter account name, account type (I see nine choices), currency, opening date, and optional opening balance.
Step 3: Finish: Choose a Parent Account. If this if the first account you are creating, then yes, your choice is limited to Asset or Liability, depending on what type of account you are creating. However, if you have other Asset accounts, then you can choose any of them as the parent account. Perhaps it's not obvious, but if you click the little ">" to the left of "Asset" it will open the tree of existing Asset accounts, you can continue to expand lower branches of that tree. Please read the Handbook chapter again carefully, and if you find it does not really match what you see on screen, let me know, and I'll try to improve the wording.
kde-makem
Registered Member
Posts
8
Karma
0

Re: Unable to create a new account

Tue Nov 02, 2021 11:28 pm
At step 2 I see: Account name, Account type, 8 choices (Liability, Asset, Investment, Loan, Cash, Credit Card, Savings, Checking), opening date, and optional opening balance.

Step3: The little down arrow you mention actually closes the existing tree of accounts which are already listed as are Favourites. If I click the little up arrow the the right of 'Account' it brings up the same page in reverse order, Asset followed by Favourites instead of Favourites followed by Asset which I get as the next step from step 2. Both have their relevant contents already listed.

I notice that if i highlight one of the names in the list it become the parent. I do not have any trees at all in the way I keep the application. I have also noticed that Asset seems to be highlighted at least sometimes if not every time. This would fit in with my ability to make new accounts without selecting a parent as Asset is the default in the case of most of my entries. i also created a test credit card account and again the parent account was already highlighted as Liability. Again backing up my certainty that I have never needed to select a parent in my method of recording accounts which I appreciate, is very simple.

It appears what we see on some pages is slightly different. perhaps I could send screen shots of the flow of selecting a new account to assist? None of the information it would disclose is of any use to anyone.
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: Unable to create a new account

Tue Nov 09, 2021 8:57 am
I tried hard to duplicate the problem you encounter with the exact same version (5.1.2-15efbeb). I am unable to get to the final page of the wizard (the one with the Finish button) without the information of "Subaccount of" on the summary page being filled. It did not matter if I do this on an empty file (no accounts yet) or one with accounts filled in. It also did not matter from which view I started to create a new account. For asset accounts this was always an asset account and for liabilities it was a liability account. It never failed to create an account.

Would be cool if you can provide detailed information which steps you performed (which view you started, which menu option you choose, mouse buttons you pressed, which keys you pressed, etc.) when the "Subaccount of" on the summary page remains empty. If you want to send screen-shots (or small videos you can take with e.g. simplescreenrecorder), please do so by sending to kmymoney-devel@kde.org (no need to use a max. resolution).


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]