cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Denis1
Frequent Visitor

Populate word template - can't find template elements

Hello all, 

 

I have an issue with the following action "Populate a microsoft word template".

I've done what's indicated here:

https://flow.microsoft.com/en-us/blog/generate-word-documents-in-your-flows/

And here:

https://powerusers.microsoft.com/t5/Building-Flows/Word-Online-Business-Connector-Populate-a-Microso...

 

But I get the same strange error message when selecting the word file:

 

 

The selected file doesn't contain template elements.

clientRequestId: "............. "

 

 It actually worked once with a simple test word file and only one control and then never again... 

 

 

The file is stored on OneDrive (Business). 

 

Thanks, 

 

 

Denis

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi @Denis1,

 

Could you share a screenshot of your flow?

I have made some tests on my side, the issue could not be reproduced by me.

First, I added content control in Word document, insert multiple Plain Text content controls in the document.

Then started a flow likes below, which is working properly.

1.PNG2.PNG

Could you please try again with it?

Please check the doc on how to add content controls for a reference:

https://support.office.com/en-us/article/about-content-controls-283b1e29-0b77-4781-b236-2d02c1cce1c2

  

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

11 REPLIES 11
v-yamao-msft
Community Support
Community Support

Hi @Denis1,

 

Could you share a screenshot of your flow?

I have made some tests on my side, the issue could not be reproduced by me.

First, I added content control in Word document, insert multiple Plain Text content controls in the document.

Then started a flow likes below, which is working properly.

1.PNG2.PNG

Could you please try again with it?

Please check the doc on how to add content controls for a reference:

https://support.office.com/en-us/article/about-content-controls-283b1e29-0b77-4781-b236-2d02c1cce1c2

  

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hello @v-yamao-msft,

 

the issue was that I was not using the plain text controller. thanks for this help !

 

 

Best, 

 

Denis

 

clinton
Helper I
Helper I

I was using rich text - this seems as though this is not supported yet.

 

plain text works.

 

haven't tried the other contoller types yet

Same problem, but if you want insert <cr> the plain text control doesn't work

You can create your template with plain text elements, then fomat the text in word - this seems to work

Guru98
Regular Visitor

Thanks, but i think i don't understand your answer.

I haven't control on the text inserted, this means that i haven't idea how many CR are in the text

Could you please clarify.

Thanks a lot

Ok I misunderstood your question, yeah passing cr into your plain text field won't work...

I suspect you would have to do this at tempalte level and have multiple elements for plain text

danmitchell36
Resolver II
Resolver II

@Denis1 ,

 

You need to make sure to add the content controls in the document.

 

See this blog below: 

 

https://www.dmcinfo.com/latest-thinking/blog/id/9838/overview-of-microsoft-flows-new-word-online-con...

Krs1
New Member

Even more frustratingly Microsoft doesn't appear to support adding plain content controls via Word for Mac. I cannot use this feature.


ragould
New Member

After careful step by step analysis of what was causing the issue for me I discovered that hyperlinks in the text of the document were the cause. Apparently the parser used in PowerAutomate Flows cannot deal with hyperlinks anywhere in the document and crash causing the error.   I remove the "link" in the link text and it read the file fine and found the text fields.

Jiral
Frequent Visitor

Bonjour,

J'ai un problème pour générer un modèle Word.

Je crée un fichier dans OneDrive Enterprise et j'obtiens ce fichier pour remplir mon modèle de document Word mais je ne peux pas remplir le Dynamic File Schema.

illustrate my problemillustrate my problem

 

 

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (1,695)