[GNC-dev] There was an error parsing the file...

chris graves mohavebaked at gmail.com
Sun Sep 16 14:56:33 EDT 2018


I performed a git clone of the maint branch on July 31st, built and
have been using it successfully since.  Today I performed a git pull in
the unmodified clone.  Now using the freshly compiled gnucash, when opening a saved (via save as) copy
of a previously okay gnucash file I get the error:
"There was an error parsing the file".

Uncompressing and doing an sdiff -s on the original file and the non-working saved file:
mbp:gnucashSaves chris$ sdiff -s ok.gnucash bad.gnucash 
							      >	     xmlns:vendor="http://www.gnucash.org/XML/vendor"
							      >	     xmlns:addr="http://www.gnucash.org/XML/addr"
							      >	     xmlns:billterm="http://www.gnucash.org/XML/billterm"
							      >	     xmlns:bt-days="http://www.gnucash.org/XML/bt-days"
							      >	     xmlns:bt-prox="http://www.gnucash.org/XML/bt-prox"
							      >	     xmlns:cust="http://www.gnucash.org/XML/cust"
							      >	     xmlns:employee="http://www.gnucash.org/XML/employee"
							      >	     xmlns:entry="http://www.gnucash.org/XML/entry"
							      >	     xmlns:invoice="http://www.gnucash.org/XML/invoice"
							      >	     xmlns:job="http://www.gnucash.org/XML/job"
							      >	     xmlns:order="http://www.gnucash.org/XML/order"
							      >	     xmlns:owner="http://www.gnucash.org/XML/owner"
							      >	     xmlns:taxtable="http://www.gnucash.org/XML/taxtable"
							      >	     xmlns:tte="http://www.gnucash.org/XML/tte"
mbp:gnucashSaves chris$

It turns out that each of the above lines appears twice in the non-working file.  After
manually removing the duplicates, the file opens just fine.

Thoughts...


More information about the gnucash-devel mailing list