Bug 401927 - Unable to add new investment
Summary: Unable to add new investment
Status: RESOLVED WORKSFORME
Alias: None
Product: kmymoney
Classification: Applications
Component: database (show other bugs)
Version: 5.0.0
Platform: Mint (Ubuntu based) Linux
: NOR major
Target Milestone: ---
Assignee: KMyMoney Devel Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-12-09 14:26 UTC by ravi29392003
Modified: 2019-08-02 04:33 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
Error message (18.66 KB, image/png)
2018-12-09 14:26 UTC, ravi29392003
Details
attachment-14277-0.html (2.17 KB, text/html)
2019-01-13 02:34 UTC, Mark Thomas
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ravi29392003 2018-12-09 14:26:05 UTC
Created attachment 116810 [details]
Error message

SUMMARY

Not able to add new investment

STEPS TO REPRODUCE
1. Added new investment under Investments
2. Completed the data entry
3. Get an error report on completion as per attachment
4. Tried to add new account under Accounts
5. Completed data entry
6. Kmymoney crashes while finishing

OBSERVED RESULT
Not able to add any new investment

EXPECTED RESULT

The investment should be created without an error

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: Linux Mint 19
(available in About System)


ADDITIONAL INFORMATION
Comment 1 Tony 2019-01-13 00:32:52 UTC
Thanks for reporting this problem.
I have an almost identical result, giving an error message "Unable to create all objects for the investment" with no further detail, except that the application does not crash

Using Kmymoney 5.0

KDE Plasma version 5.12.7
KDE Frameworks 5.44.0
Qt 5.9.5 (built against 5.9.5)
The xcb windowing system

Kubuntu 18.04.1 LTS

Kubuntu
Comment 2 Jack 2019-01-13 01:05:40 UTC
Ravi - do you get the same error if you use the xml storage instead of the database?  Which database are you using?  Also, please click the "Details>>" button and attache or copy/paste the extra information.

Tony - are you also using a database rather then XML storage?

(Lets work on the error adding an investment here, and save the crash on adding an account for either after the first is solved or maybe for a separate bug, in case they are not really related.)
Comment 3 Mark Thomas 2019-01-13 02:34:42 UTC
Created attachment 117432 [details]
attachment-14277-0.html

It may not be the same problem but I was getting the same error message
when I first tried investments.

I found I had to reselect the investment account in the "Select Account"
dropdown in the investment window, ie: even though it was shown as the
default selected when the investment window opens I had to click on the
account again to select it for it to work.

Also the error dialog is confusing, if you click details it shows no new
information until you resize the window.

With the select problem I was getting:

Stock account cannot be parent account caugt in
/build/kmymoney-8Tb1zm/kmymoney-5.0.1/kmymoney/mymoney/mymoneyfile.cpp:1059



Hope this helps.
-Mark

On Sun, Jan 13, 2019 at 11:05 AM Jack <bugzilla_noreply@kde.org> wrote:

> https://bugs.kde.org/show_bug.cgi?id=401927
>
> --- Comment #2 from Jack <ostroffjh@users.sourceforge.net> ---
> Ravi - do you get the same error if you use the xml storage instead of the
> database?  Which database are you using?  Also, please click the
> "Details>>"
> button and attache or copy/paste the extra information.
>
> Tony - are you also using a database rather then XML storage?
>
> (Lets work on the error adding an investment here, and save the crash on
> adding
> an account for either after the first is solved or maybe for a separate
> bug, in
> case they are not really related.)
>
> --
> You are receiving this mail because:
> You are the assignee for the bug.
Comment 4 Tony 2019-01-13 11:47:14 UTC
It's occurring using the xml back end
Tony
Comment 5 ravi29392003 2019-01-14 07:45:49 UTC
(In reply to Mark Thomas from comment #3)
> Created attachment 117432 [details]
> attachment-14277-0.html
> 
> It may not be the same problem but I was getting the same error message
> when I first tried investments.
> 
> I found I had to reselect the investment account in the "Select Account"
> dropdown in the investment window, ie: even though it was shown as the
> default selected when the investment window opens I had to click on the
> account again to select it for it to work.
> 
> Also the error dialog is confusing, if you click details it shows no new
> information until you resize the window.
> 
> With the select problem I was getting:
> 
> Stock account cannot be parent account caugt in
> /build/kmymoney-8Tb1zm/kmymoney-5.0.1/kmymoney/mymoney/mymoneyfile.cpp:1059
> 
> 
> 
> Hope this helps.
> -Mark
> 
> On Sun, Jan 13, 2019 at 11:05 AM Jack <bugzilla_noreply@kde.org> wrote:
> 
> > https://bugs.kde.org/show_bug.cgi?id=401927
> >
> > --- Comment #2 from Jack <ostroffjh@users.sourceforge.net> ---
> > Ravi - do you get the same error if you use the xml storage instead of the
> > database?  Which database are you using?  Also, please click the
> > "Details>>"
> > button and attache or copy/paste the extra information.
> >
> > Tony - are you also using a database rather then XML storage?
> >
> > (Lets work on the error adding an investment here, and save the crash on
> > adding
> > an account for either after the first is solved or maybe for a separate
> > bug, in
> > case they are not really related.)
> >
> > --
> > You are receiving this mail because:
> > You are the assignee for the bug.


Thanks.

I am using xml storage.

Error message same as 
Stock account cannot be parent account caugt in
/build/kmymoney-8Tb1zm/kmymoney-5.0.1/kmymoney/mymoney/mymoneyfile.cpp:1059.

However, temporarily solved the issue as mentioned below, as per the suggestion given by a user:

Open Ledger
Select account
Add as new ledger entry. If new, kmymoney asks for confirmation and on confirming creates the new sub account. However, I am unable to edit the entry thus created.
Comment 6 Thomas Baumgart 2019-07-03 16:25:07 UTC
Could someone of the reporters please check if this is still present in current KMyMoney 5.0.4 using the AppImage version? See https://kmymoney.org/appimage.php for details how to obtain and run it. Many thanks in advance.
Comment 7 Bug Janitor Service 2019-07-18 04:33:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2019-08-02 04:33:12 UTC
This bug has been in NEEDSINFO status with no change for at least
30 days. The bug is now closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!