Delete things from template

David Carlson carlson.dl at sbcglobal.net
Thu Dec 20 23:39:52 EST 2012


On 12/20/2012 9:23 PM, John Ralls wrote:
> On Dec 20, 2012, at 4:43 PM, Chris Henderson <henders254 at gmail.com> wrote:
>
>> I am using gnucash version 2.4.11 on os x mountain lion.
>>
>> My mistake I have added a wrong stock detail in the template under
>> tools - security editor. Now every time I try to get an online quote
>> it gives an error saying unable to retrieve. I know that I can delete
>> things from the template by editing the xml file (source:
>> http://gnucash.1415818.n4.nabble.com/setting-up-stock-non-us-exchange-td4477753.html)
>> but I am not sure which xml file to edit.
> Use Tools>Security Editor to either fix the symbol or delete the security and try again.
>
> Regards,
> John Ralls
>
>
> _______________________________________________
> gnucash-user mailing list
> gnucash-user at gnucash.org
> https://lists.gnucash.org/mailman/listinfo/gnucash-user
> -----
> Please remember to CC this list on all your replies.
> You can do this by using Reply-To-List or Reply-All.
>
John

In Windows it is impossible to see an existing template type of stock or
commodity with Tools>Security Editor, thus it cannot be deleted.  That
was the reason for Derek's comment in that thread that you cited.
However, in version 2.4.11 it is still possible to unintentionally
create a security of type 'template'.

What was not made clear in that thread or elsewhere afaik was a detailed
list of steps explaining exactly which lines to delete from the XML file
for a person who does not have a style sheet or an intimate knowledge of
either XML code or the database structure.  I tried it once and it
failed and I never figured out why.  I had to find an editor that could
handle huge files, I settled on jEdit, but I also did not get very good
at using that.  If you know of an easier editor to use, please help.

if someone ever tries to fix *Bug 555182*
<https://bugzilla.gnome.org/show_bug.cgi?id=555182> , I hope they
include code to purge existing instances from the database.

Thanks,

David C



-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0xDC7C8BF3.asc
Type: application/pgp-keys
Size: 1729 bytes
Desc: not available
URL: <http://lists.gnucash.org/pipermail/gnucash-user/attachments/20121220/dd956b8c/attachment.bin>


More information about the gnucash-user mailing list