How to use nested mail merge to loop the contents of different rows

It seems that the nested mail merge can only loop the content of one line, but the «g» on the picture is not on the same row, what should I do?
image.png (3.6 KB)

@AoUfGo

We have created a sample document like yours and it works at our end. We merged the first and last column of table in template document to make it work.

We suggest you please read the following article.
Limitations of Mail Merge with Regions

Could you please attach the following resources here for testing:

  • Your input Word document.
  • Please attach the output Word file that shows the undesired behavior.
  • Please attach the expected output Word file that shows the desired behavior.
  • Please create a simple application (source code without compilation errors) that helps us to reproduce your problem on our end and attach it here for testing.

As soon as you get these pieces of information ready, we will start investigation into your issue and provide you more information. Thanks for your cooperation.

PS: To attach these resources, please zip and upload them.