Error with export account hierarchy
Paul Conrady
audio1953 at gmail.com
Wed Jul 10 15:54:26 EDT 2013
Derek Atkins wrote
> Hi,
>
> Cristian Marchi <
> cri79@
> > writes:
>
>> I received a report from an Italian user that is not able to import in
>> GnuCash 2.4.13 an account hierarchy exported with the same version. He
>> gave me the exported files and I'm also not able to open it getting an
>> "error parsing the file". At first look the file seems o be good. I
>> attach the file if you want to test it.
>
> I get an error parsing the file using an up-to-date 2.4 (built yesterday).
>
>> Can someone explain what's wrong?
>
> My gnucash.trace only shows:
>
> * 11:10:45 CRIT
> <gnc.backend.file.sixtp>
> parse failed at:
> * 11:10:45 WARN
> <gnc.backend>
> [gnc_xml_be_load_from_file()] Syntax error in Xml
> File /tmp/PROVA.gnucash
>
>
> .. and I get this on the command line:
>
> (stack-frame 0x2a870a0
> (line -1) (col -1)
> (parser 0x177e850)
> (tag (null))
> (data-for-children (nil))
> (data-from-children)
> (frame-data (nil)))
> (stack-frame 0x1a75080
> (line 31) (col 14)
> (parser 0x17e0750)
> (tag gnc-v2)
> (data-for-children (nil))
> (data-from-children ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e!
> 2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data
> 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data
> 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data
> 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data
> 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data
> 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data
> 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data
> 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data
> 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data
> 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data
> 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data
> 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data
> 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data
> 0x2e2c890)) ((tag gnc:account)!
> (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890)) ((tag
> gnc:account) (data 0x2e2c890)) ((ta!
> g gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:account) (data 0x2e2c890))
> ((tag gnc:account) (data 0x2e2c890)) ((tag gnc:commodity) (data
> 0x2e2c890)) ((tag gnc:commodity) (data 0!
> x2e2c890)) ((tag gnc:commodity) (data 0x2e2c890)) ((tag gnc:commodity)
> (data 0x2e2c890)) ((tag gnc:count-data) (data 0x2e2c890)) ((tag
> gnc:count-data) (data 0x2e2c890)))
> (frame-data (nil)))
> (stack-frame 0x4d20790
> (line 1671) (col 21)
> (parser 0x1542b10)
> (tag gnc:account)
> (data-for-children 0x2e2c890)
> (data-from-children)
> (frame-data 0x2e2c890))
> (stack-frame 0x214f230
> (line 1672) (col 12)
> (parser 0x1542b10)
> (tag act:name)
> (data-for-children 0x19c7f80)
> (data-from-children)
> (frame-data (nil)))
>
>
>> Thanks
>> Cristian
>
> -derek
>
> --
> Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
> Member, MIT Student Information Processing Board (SIPB)
> URL: http://web.mit.edu/warlord/ PP-ASEL-IA N1NWH
>
> warlord@
> PGP key available
>
> _______________________________________________
> gnucash-devel mailing list
> gnucash-devel@
> https://lists.gnucash.org/mailman/listinfo/gnucash-devel
Hi Cristian,
My results were similar to Derek's output above.
Upon further investigation, gedit complained the file has invalid utf-8
characters. These invalid characters are located at Ln 1672 col 17, Ln 1680
col 17 and Ln 1681 col 24 in the file you provided. These invalid characters
are associated with the data "Euri" in tagname <code>.
Try this: Edit the Pravo.gnucash file in gedit. When gedit complains about
invalid characters, manually switch to a Central European ISO-8859-2 format,
load the file into gedit, then 'save as' in UTF-8 format. I was able to
successfully load the file into GnuCash after converting the invalid
characters in this way.
GnuCash 2.4.13 built from rbfb59d7+ on 2013-07-04
Probst!
-----
Probst!
Paul
--
View this message in context: http://gnucash.1415818.n4.nabble.com/Error-with-export-account-hierarchy-tp4662682p4663010.html
Sent from the GnuCash - Dev mailing list archive at Nabble.com.
More information about the gnucash-devel
mailing list