Skip to main content

Notifications

Community site session details

Community site session details

Session Id : oGG6boUt3f/QHEkvj3rvuj
Power Automate - General Discussion
Answered

Repeating section in Word Template is not working

Like (0) ShareShare
ReportReport
Posted on 15 Jun 2023 15:35:04 by 1,259 Super User 2025 Season 1

I am trying to get the repeating section of a Word Template to work.  I'm not sure why it is not pulling the data correctly.  Instead it is only using the first record.  See the following information to see what is happening.


I believe this worked at one time and have recreated the section in the template and it still is only grabbing the first piece of information from the select array and duplicating as you will see below.

 

1.  There is a Select statement that gets the information that will be mapped to the repeating section of 

subsguts_0-1686842285946.png

 

2.  Here is the data it returns

subsguts_1-1686842532316.png

3.  Here is the place in the word template where it populates from the Output of this Select.  As you can see it show the two values that it will map as being different.

subsguts_0-1686843155754.png

5.  Here is the section of the Word template that will be populated:

subsguts_1-1686843223523.png

 

6.  Here is the section of the Word template that is populated, which repeats the first value in the Select array.  If I add more rows it repeats it for the number of rows there are, but it will not pull information as it looks like it is doing in the statement above.  In this example the second row should contain the Bill Area "TEST" shown above.

subsguts_4-1686842758322.png

 

NOTE:  At one point this worked and then it broke.  I've recreated this section multiple times and cannot get it to pull in more than the first row even though it appears that the flow is getting the values it needs.

 

I REALLY need someone to help me with this as I have been working on this for several days with no luck and no reference to how this can be resolved.

 

Thank you!

 

 

 

  • mart4 Profile Picture
    4 on 21 Mar 2024 at 13:21:26
    Re: Repeating section in Word Template is not working

    @subsguts you absolute star! I've lost hours and hours to this bug. Thank you so much.

  • anothersphere Profile Picture
    14 on 05 Mar 2024 at 05:41:28
    Re: Repeating section in Word Template is not working

    OMG! Thankyou so much. Yes, it looks like if you save your template in design mode (tags showing) the merge goes awry with the repeated section repeating row 1. If you save not in design mode (tags not showing) its all good.

    I was getting very panicked - I had said I could do it and then when refining the styling the wheels fell off!

  • Verified answer
    subsguts Profile Picture
    1,259 Super User 2025 Season 1 on 15 Jul 2023 at 19:34:08
    Re: Repeating section in Word Template is not working

    I figured out the problem.  If you save your template when you are in design mode then you'll get this type of behavior.  So you need to make sure you are not in design mode when you save it.  I duplicated fixing, breaking, fixing, breaking, etc. to prove this was indeed the case.  So earlier when someone said they recreated it and it worked that was most likely that they saved it after exiting the Design. 

    Hope this saves others many frustrating hours 🙂

  • Rhiassuring Profile Picture
    8,688 Super User 2025 Season 1 on 16 Jun 2023 at 05:52:35
    Re: Repeating section in Word Template is not working

    Hmm usually when you're setting up a repeating section, you'd only set up the first row, showing how you want it to repeat. In your screenshot, it looks like you have 2 rows that you've populated with the content. Are you expecting doubles of rows, or, was this unintentional?

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,668 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,004 Most Valuable Professional

Leaderboard
Loading started