account cannot be deleted message is not precise enough

Bug #2023388 reported by Sebastian Schuberth
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
HomeBank
Fix Released
Low
Maxime DOYEN

Bug Description

Esp. as a new user, it's hard to understand which of http://homebank.free.fr/en/faq.php#faq1595 is not met in order to delete an account. As the application obviously performs these checks, it would be nice to show exactly which ones failed. (In my case, I've deleted all transactions from all accounts, and I'm clueless why I can't delete the accounts.)

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

check your scheduled/template transaction, there might be one using this account

Revision history for this message
Sebastian Schuberth (sschuberth) wrote :

Both scheduled and template transaction are also empty, but I'm still getting "This account contains transactions and/or is part of internal transfers".

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

Ok I may have a lead, of a ghost reference to it into an xfer transformed to a normal txn.

Could you open your file with a text editor and make some search text

- locate your <account key="x"
=> x will be a number

- then if you have removed txn from this account and template as well

a) you should not match when you search account="x"

b) if my hypothesis is correct, maybe you will have match when search dst_account="x"

if such match what is the flags="y" value ?
and if it is an <ope do you have a kxfer="z" value ?

thx

Changed in homebank:
status: New → Incomplete
Revision history for this message
Sebastian Schuberth (sschuberth) wrote :

In my case, account `"1"` is the one I cannot delete. And in the XML file, I indeed have several `ope` tags with `account="1"`, but no `dst_account="1"`. Also no match for a "kxfer" string at all.

Revision history for this message
Sebastian Schuberth (sschuberth) wrote :

Shall I anonymize the file and attach it? Or will anonymizing break things?

Revision history for this message
Sebastian Schuberth (sschuberth) wrote :

Maybe I'm also simply not understanding the functioning correctly. My "imported account" that I cannot delete (although I believe to have deleted all transactions) shows "Reconciled 0", "Cleared 0", but still has (negative) amounts in "Today" and "Future". But if I double-click on it, the opening windows shows no transactions.

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

you can anonymize, it will prevent ids by obfuscate text and sent by email, not here
see http://homebank.free.fr/en/support.php#contact

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

made a few test and do not reproduce
=> so still interested to have an anonymized copy of the xhb file

summary: - wish: Be more specific why an account cannot deleted
+ account cannot be deleted message is not precise enough
Changed in homebank:
importance: Undecided → Low
assignee: nobody → Maxime DOYEN (mdoyen)
milestone: none → 5.6.5
Revision history for this message
Maxime DOYEN (mdoyen) wrote :

I am modifying the message to indicate the exact usage.

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

done:

 _("It has transaction")
 _("It is target of xfer transaction")
 _("It has scheduled/template")
 _("It is target of xfer scheduled/template")

Changed in homebank:
status: Incomplete → Fix Committed
Revision history for this message
Sebastian Schuberth (sschuberth) wrote :

Anonymized data sent via mail!

Revision history for this message
Maxime DOYEN (mdoyen) wrote :

your file still have transaction, but none with a date

go to transaction menu
then show all
then open the filter with icon button or tools menu > filter
on date switch it to OFF
then click use

What is weird is all those txn with no date at all

Revision history for this message
Sebastian Schuberth (sschuberth) wrote :

I was testing HomeBank with my own Qif / Ofx exporters. Might be that I created / imported invalid files at some point. Should HomeBank generally refuse to import transactions without a date maybe?

Thanks for your instructions, I was able to delete the accounts afterwards.

Maxime DOYEN (mdoyen)
Changed in homebank:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.