Error during analysis: "The end tag </1> does not have a matching start tag."

This error also occurs on Task "Create project tm".

Source file type: xml (Schema ST4).

I used the Sooper_Dooper_TMX_X_Attribute_Fixer as recommended in this Knowledge Base article. I then created a new TM based on the old one and imported the fixed tmx. This did not solve the issue though.

I thought maybe the problem is with the already created project tm, so I removed this manually from the project, and tried running the task again - no deal.

I did a quality check on the target sdlxliff files - no problem.

I then wrote my own tmx tag checker to find the culprit like this:

 

var allSegsWithTags = tmx.SelectNodes("//seg[ept]");
foreach (XmlNode tagSeg in allSegsWithTags)
{
    var endTags = tagSeg.SelectNodes("ept");
    foreach (XmlNode ept in endTags)
    {
        var tagNum = ept.Attributes.GetNamedItem("i").Value;
        var bpt = tagSeg.SelectSingleNode($"bpt[@i='{tagNum}']");
        if (bpt == null) //end tag without starting tag
        {
            using (var sw = new StreamWriter(logFile, true))
            {
                sw.WriteLine(tagSeg.InnerXml);
            }
        }
    }
}

 

Code ran without errors - and without finding a single erroneous segment!

tl;dr: I cannot get rid of this error. Any ideas what causes it?

 

Best,

Andreas