kmymoney: unable to add transaction: unknown id

Asked by rlduff@suddenlink.net

In kmymoney I get an error: Unable to add transaction: Unknown account id ''. This is the second time it has happened and I do not want to reinstall. Any ideas how to shut the program down safely and reboot? That is, if that is what is necessary. Thanks -BOB-

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu kmymoney2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Bhavani Shankar (bhavi) said :
#1

Hello

 this is a known bug and I kind of remember that it has been
fixed. At least in CVS HEAD. The comment in the ChangeLog says:

2006-03-20 Thomas Baumgart
<ipwizard-Rn4VEauK+AKRv+LV9MX5uipxlwaOVQ5f@xxxxxxxxxxxxxxxx>
  * Remove splits from scheduled transactions that reference not existing
    accounts

The problem is, that you have a schedule and deleted one of the accounts it
references in the meantime (the one with the id). In the latest
versions of KMyMoney (stable and development) you cannot create such a
schedule anymore (you cannot delete an account that is still referenced in a
schedule), so that also solves the problem.

Another way to solve your problem is to start KMyMoney with
option '-n' (alt +f2 kmymoney -n or open up a konsole/terminal and type kmymoney -n) which keeps it from loading the last opened file. Then turn off
the 'Check schedules on startup' option. Open the file in question and fix
the resp. schedule. This way, you don't have to twist your system date.

Hope the info helps

Bhavani Shankar.

Revision history for this message
rlduff@suddenlink.net (rlduff) said :
#2

Ran from root the line you sent and got the following:

root@bob-desktop:/home/bob# kmymoney -n
bash: kmymoney: command not found
root@bob-desktop:/home/bob# kmymoney2 -n
X Error: BadDevice, invalid or uninitialized input device 166
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 166
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Link points to "/tmp/ksocket-root"
Link points to "/tmp/kde-root"
X Error: BadDevice, invalid or uninitialized input device 166
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 166
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
kbuildsycoca running...
Reusing existing ksycoca
kio (KSycoca): ERROR: No database available!
kio (KSycoca): ERROR: No database available!
5:2008/02/24 13-15-12:aqbanking(8215):banking.c: 1427: Configuration file "/root/.banking/settings.conf" does not exist, will create it later.
kmymoney2: Loaded 'KBanking' plugin
kmymoney2: Loaded 'OFX Import' importer plugin
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
X Error: BadDevice, invalid or uninitialized input device 166
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
X Error: BadDevice, invalid or uninitialized input device 166
  Major opcode: 144
  Minor opcode: 3
  Resource id: 0x0
Failed to open device
Session management error: Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed
Launched ok, pid = 8312
OggS-SEEK: at 0 want 60408 got 51136 (diff-requested 60408)
OggS-SEEK: at 60352 want 520 got 0 (diff-requested -59832)
OggS-SEEK: at 0 want 78328 got 68160 (diff-requested 78328)
OggS-SEEK: at 78400 want 520 got 0 (diff-requested -77880)
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
OggS-SEEK: at 0 want 78328 got 68160 (diff-requested 78328)
OggS-SEEK: at 78400 want 520 got 0 (diff-requested -77880)
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found

OggS-SEEK: at 0 want 78328 got 68160 (diff-requested 78328)
OggS-SEEK: at 78400 want 520 got 0 (diff-requested -77880)
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
OggS-SEEK: at 0 want 78328 got 68160 (diff-requested 78328)
OggS-SEEK: at 78400 want 520 got 0 (diff-requested -77880)
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not found
kio (KMimeType): WARNING: KServiceType::offers : servicetype ThumbCreator not fou

Revision history for this message
Bhavani Shankar (bhavi) said :
#3

Hmm Try running the program as Normal user instead of root...

Revision history for this message
rlduff@suddenlink.net (rlduff) said :
#4

Bhavani Shankar wrote:
> Your question #25511 on gnome-panel in ubuntu changed:
> https://answers.edge.launchpad.net/ubuntu/+source/gnome-panel/+question/25511
>
> Status: Open => Needs information
>
> Bhavani Shankar requested for more information:
> Hmm Try running the program as Normal user instead of root...
>

    Tried all this but, as was unusual for me, I had a current backup so
I completely deleted "kmymoney" and re-installed it. Having no
problems. I am a new user to Ubuntu and am sure I could "screw up a
soup sandwich" in any computer program. I want to thank you and
everyone who has tried to help me. I guess I'll just keep stumbling
along and finally learn the operating system. I've about worn my
operating manual out. By the way, how can I password protect a program
(Kmymoney) to keep people out of it? Help would be appreciated. Thanks
in advance -BOB-

Revision history for this message
Bhavani Shankar (bhavi) said :
#5

Hello

Easiest way to retain privacy is to run different accounts for different users. Other users (unless they have admin access) would not be able to read your Documents folder. Fast user switching makes this very easy. If you don't want to create another account then have a look at cryptkeeper(http://www.tomatarium.pwp.blueyonder.co.uk/cryptkeeper.html) which is a nice tray applet for creating password protected stashes using encryption.

Bhavani Shankar.

Revision history for this message
Hei Ku (asoliverez) said :
#6

Best way to password protect KMyMoney is to use the GPG encrypt. Create a private/public key, and then select it in KMyMoney to encrypt your file. Check the file format chapter of the online manual if you need more info.

Can you help with this problem?

Provide an answer of your own, or ask rlduff@suddenlink.net for more information if necessary.

To post a message you must log in.