How to remove table based on mail merge tags

private class RemoveEmptyRowCallback : IFieldMergingCallback
{
    public void FieldMerging(FieldMergingArgs args)
    {
        if (args.FieldName == "QualTitle" && string.IsNullOrEmpty((string)args.FieldValue))
        {
            args.Field.Start.GetAncestor(NodeType.Row).Remove();
        }
    }

    public void ImageFieldMerging(ImageFieldMergingArgs args)
    {
        // Do nothing.
    }
}

Code works perfectly for the QualTitle, QualSubTitle, and Qualification, it successfully removes these 3 rows
but I don’t know why is it not working for SkillsAndCompetencies, it is throwing error "Object reference not set to an instance of object, args.Field.Start.GetAncestor returned null " however the structure is the same for both.
Doc is attached for reference
Test.docx (41.3 KB)

@SachinSingh The question is already answered in another your topic:
https://forum.aspose.com/t/how-to-remove-a-mail-merge-region-if-the-value-inside-the-region-is-null-or-empty-string/278724/3

@alexey.noskov This is not working can you please assist.

@SachinSingh Could you please attach your sample data source or create a simple console application that will allow us to reproduce the problem on our side? We will check the issue and provide you more information.