# (invalid token) line26, column 23

**URL:** <https://gramps.discourse.group/t/invalid-token-line26-column-23/3501>\
**Category:** Help\
**Created:** [April 4, 2023, 9:49am UTC](https://gramps.discourse.group/t/invalid-token-line26-column-23/3501 "2023-04-04T09:49:43Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![JMONERRIS](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@JMONERRIS](https://gramps.discourse.group/u/JMONERRIS)\
**Post date:** [April 4, 2023, 9:49am UTC](https://gramps.discourse.group/t/invalid-token-line26-column-23/3501/1 "2023-04-04T09:49:43Z")

</div>

GRAMPS version 3.4.7. Windows vista  
Hello good morning. The backup gives me this error:  
not well formed (invalid token) line26, column 23  
What should I do?  
Thamks

---

<div class="post-metadata">

**Author:** ![anon9092048](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@anon9092048](https://gramps.discourse.group/u/anon9092048)\
**Post date:** [April 4, 2023, 12:42pm UTC](https://gramps.discourse.group/t/invalid-token-line26-column-23/3501/2 "2023-04-04T12:42:27Z")

</div>

> [@JMONERRIS](#):
>
> GRAMPS version 3.4.7. Windows vista

See if [upgrading](https://gramps-project.org/wiki/index.php/Download#MS_Windows) to a current supported version of Gramps 5.1.5 fixes the issue for you?

---

<div class="post-metadata">

**Author:** ![JMONERRIS](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@JMONERRIS](https://gramps.discourse.group/u/JMONERRIS)\
**Post date:** [April 4, 2023, 1:20pm UTC](https://gramps.discourse.group/t/invalid-token-line26-column-23/3501/3 "2023-04-04T13:20:40Z")

</div>

No, it shows the same error.  
Thank you anyway

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [April 4, 2023, 1:22pm UTC](https://gramps.discourse.group/t/invalid-token-line26-column-23/3501/4 "2023-04-04T13:22:03Z")

</div>

No, please don’t do an upgrade before resolving a bad backup!

A usable backup should be confirmed before upgrading Gramps!

But you COULD use The PortableApps Gramps fork installed to a USB thumbdrive. Then copy the database folder on the thumbdrive too.

Preferably, take that to another computer to experiment with recovery.

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [April 4, 2023, 7:20pm UTC](https://gramps.discourse.group/t/invalid-token-line26-column-23/3501/5 "2023-04-04T19:20:19Z")

</div>

What works best probably depends on your hacking skills. A .gramps file, is actually a file in Gnu Zip format (.gz). If you rename it to .gz, you can use 7-Zip to extract files from it, and then you will most likely find another file named something.gramps, which is a text file in XML format. And if you load that into Notepad++, it will probably show some invalid XML in column 23 of line 26, which you may be able to fix, if you know how to hack XML.

There is a chance however that the actually GZ archive has been corrupted, and in that case, the extracted XML will have real garbage in that line. And with that I mean the sort of garbage that it’s almost impossible to fix.

Which one it is, is hard to tell, but if you want, you can send a private message to me, and ask for my email, so that you can send the .gramps file to me, and I can have a look. I’ve done this before, so I know what to do, and if it works, meaning that the archive itself was not corrupted, I will send a corrected .gramps file in return.

There are more options if you still have the grampsdb folder somewhere, but if you had, you’d probably have no need for that backup.

---

<div class="post-metadata">

**Author:** ![JMONERRIS](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@JMONERRIS](https://gramps.discourse.group/u/JMONERRIS)\
**Post date:** [April 5, 2023, 7:29am UTC](https://gramps.discourse.group/t/invalid-token-line26-column-23/3501/6 "2023-04-05T07:29:25Z")

</div>

```auto
Yes please.
I attach the file. See if you can do something. Thank you very much.
I use google translate to write

```

(Attachment amparo-enrique\_2023-03-07 - copia.gpkg is missing)

---

<div class="post-metadata">

**Author:** ![JMONERRIS](https://avatars.discourse-cdn.com/v4/letter/j/839c29/32.png) [@JMONERRIS](https://gramps.discourse.group/u/JMONERRIS)\
**Post date:** [April 5, 2023, 7:43am UTC](https://gramps.discourse.group/t/invalid-token-line26-column-23/3501/7 "2023-04-05T07:43:35Z")

</div>

Look hat it says:

Unfortunately some attachments in your email message to [“[incoming+6ea0814452c1a6726735310ba49c23e4@gramps.discoursemail.com](mailto:incoming+6ea0814452c1a6726735310ba49c23e4@gramps.discoursemail.com)”] (titled Re: [Gramps] [Help] (invalid token) line26, column 23) were rejected.

Details:  
amparo-enrique\_2023-03-07 - copia.gpkg: Sorry, the file you are trying to upload is not authorized (authorized extensions: jpg, jpeg, png, gif, heic, heif, webp).

Julian

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [April 5, 2023, 10:31am UTC](https://gramps.discourse.group/t/invalid-token-line26-column-23/3501/8 "2023-04-05T10:31:36Z")

</div>

Hello Julian,

You can’t send these through the forum. I just sent you a private message with my email address, so that you can send it to my email, or use an on-line service like OneDrive to share it with me.

Regards,

Enno

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [April 5, 2023, 12:52pm UTC](https://gramps.discourse.group/t/invalid-token-line26-column-23/3501/9 "2023-04-05T12:52:38Z")

</div>

I will send a repaired file in a minute, but that is for Gramps 5.1.5, so you will need to upgrade to that. I hope that it works on Windows Vista.

You need to upgrade, because the errors were most probably caused by check & repair, and can show up again when you use that in Gramps 3.4.7.

And it seems that this error still existed in 5.1.2, because I found the same malformed data in this bug report:

[https://gramps-project.org/bugs/view.php?id=11821](https://gramps-project.org/bugs/view.php?id=11821)

You may be able to upgrade to Windows 10 for free, if Gramps doesn’t work on Vista.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [May 5, 2023, 12:53pm UTC](https://gramps.discourse.group/t/invalid-token-line26-column-23/3501/10 "2023-05-05T12:53:00Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
