I’ve only been using Logseq for a few days and getting to grips with templates. I have created a meeting template but whilst editing the template and testing it, I get a ‘Template insert error: bad outliner data, need to re-index to fix’. It isn’t 100% repeatable, but happening multiple times.
When I did a reindex, I lost a number of blocks on my daily journal page. Will look at GIT for versioning next. Template is:
- ### <% now %> TITLE
event:: [[meeting]]
project::
template:: Meeting
template-including-parent:: true
- **Attendees:** [[MY NAME]],
- #### Notes:
I got it to work (accidentally)) by adding a tags:: #something to the first line of the template block. I have no idea whatsoever why it works like that though.
Can you provide an example please as I’m unsure I understand? I already have a property as the first line of the template under the block heading. Is it the tags property only?
: It really works, it’s enough to add the tag #somethig for the error to disappear. I don’t like that when I use the template that tag will appear on my daily page, but it can be deleted or one can get used to it.
## [[🏠 Organizando mi hogar en Lima]]
tags:: #Página
template:: Organizando mi depa
I’ve found out it happens if the header of the block contains the name of the template, like I had
## Nome malattia
template:: malattia
and it was creating a recurring ¨malattia¨ children of a ‘malattia’ parent and so on. I see also @DelfinPino had part of the template name in the template title, and @Shx1777 had a “meeting” property inside a “meeting” template, I wander wether that’s what’s causing the issue