data dropped when upgrading from 1.8.9 to 2.2

Christian Stimming stimming at tuhh.de
Sun Oct 12 15:42:57 EDT 2008


Am Sonntag, 12. Oktober 2008 21:16 schrieb Richard Bradley:
> Hi,
>
> I've managed to get my old FreeBSD box running again, so that I can
> compare the differences between 1.8.9 and the current version.
>
> Basically: my 1.8.9 accounts are read fine by the current version on
> Ubuntu (2.2.4), but lots of data gets dropped when I load them into the
> current version on Windows (2.2.5).

Very weird. As it works with the Ubuntu version, my guess would go into the 
direction of character encoding problems: The 1.8.x file was missing an 
explicit specification of the character encoding used in the file, and even a 
mixup of multiple encodings would have been possible. Not so in 2.x: There 
will be one single encoding used in the file (UTF-8) and this will also be 
noted in the very first line of the file. However, all sorts of problems can 
occur during upgrading the 1.8 file with unknown encoding into the 2.x file.

Maybe the Ubuntu 2.2.4 version luckily picked up the correct encoding when 
importing the old file, but the windows version was not so lucky...

Christian

>
> The symptoms appear to be that a few accounts (5 out of about 25) have
> had all their transactions dropped, which causes the account totals to
> differ on some other accounts (but I think that all transactions not
> involving the affected accounts are OK). I can't see an obvious pattern
> to which accounts are not imported correctly.
>
> I'm not going to investigate any further, since I can now use the Ubuntu
> version (thanks to the quite nifty Sun VirtualBox). If anyone wants to
> take a look at this, please get in touch with me.
>
> Thanks for all your help,
>
>
> Rich
>
> Derek Atkins wrote:
> > Hi,
> >
> > Richard Bradley <Richard.Bradley at cantab.net> writes:
> > > Derek Atkins wrote:
> > >>>I used gnucash for quite a while on FreeBSD, using version 1.8.9.
> > >>>
> > >>>I'm trying to upgrade to the current version, but it seems to drop a
> > >>> load of my data when importing the old accounts file.
> > >>
> > >>What do you mean by this?  What gets "dropped"?  GnuCash shouldn't
> > >>drop data, but also there has not been a lot of testing going from 1.8
> > >>to 2.2 without going through the 2.0 release.  It SHOULDN'T be a
> > >>problem, because the XML format doesn't have a lot of differences.
> > >
> > > What I mean is that some account totals are different in 2.2 to what
> > > they were in 1.8, and quite a few line items don't appear in the
> > > affected accounts.
> >
> > What account totals are different?
> > Have you looked in those accounts to compare what you see from before?
> >
> > > It seems like some of the transactions just haven't been loaded.
> >
> > I doubt that they are not loaded.  That seems pretty far fetched.
> >
> > > I'm not 100% certain that there isn't just a new filter or something
> > > which is causing some transactions to be hidden (but why would that
> > > affect the totals?).
> >
> > That is true.  Do you have multiple currencies?  Stocks?
> >
> > >>> 2) How do I build gnucash from source on ubuntu "heron"?
> > >>
> > >>apt-get build-dep gnucash
> > >
> > > Yes, I've done that, and it did install loads of packages. However, I
> > > still get "Unknown library `print`" from "gnome-config --libs print"
> > >
> > > Sorry for not mentioning this straight away, but I'm trying to build
> > > the 1.8.9 release, because my plan was to double check the differences
> > > in behaviour, and then compare the code which loads the data between
> > > the two.
> >
> > OOOOHHHHH!!!!! You didn't say you wanted to build 1.8!  That's a
> > COMPLETELY different animal.
> >
> > > Is it still possible to build 1.8.9? Do you think that the "unknown
> > > library" issue is due to trying to build too old a version?
> >
> > I have no idea.  It requires a complete Gnome-1 build environment,
> > which probably isn't available anymore.
> >
> > > I haven't yet tried to build 2.2, but I'll have a go tonight.
> > >
> > >
> > > Are you running ubuntu? Does "gnome-config --libs print" work for you?
> > > If so, can you determine which package provided the printConf.sh file
> > > in /usr/lib (this is what "gnome-config --libs print" defers to, I
> > > think).
> >
> > Nope, I am not running Ubuntu.  And Fedora 7 doesn't have Gnome-1
> > anymore.
> >
> > >> there has not been a lot of testing going from 1.8
> > >> to 2.2 without going through the 2.0 release.
> > >
> > > I could try loading the accounts through 1.8 -> 2.0 -> 2.2, if you
> > > think that would help?
> >
> > It might?
> >
> > > Thanks,
> > >
> > >
> > > Rich
> >
> > -derek
>
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel


More information about the gnucash-devel mailing list