“The selected file doesn’t contain template elements” error in Microsoft Flow

This article was originally published on May 6, 2019. Product interfaces and features may have changed. Some original images are not yet available.

Original image unavailable.

I recently tried to use the “Populate a Microsoft Word template” step in Microsoft Flow (currently in preview) to insert text into content controls, but ran into the error above.

The selected file doesn’t contain template elements.

The issue was that my content controls in the template were of rich text format and date. This preview step currently only supports plain text, combo box, and dropdown content controls.

Original image unavailable.
Plain text, combo box, and drop down are the only supported content controls as of the publishing of this post.

So for all of your text fields, make sure you use the correct (plain text) control:

Original image unavailable.

Once I replaced my rich text content controls with plain text, the content controls showed up in Flow as options for populating:

Original image unavailable.

To keep this organized, I recommend giving each content control a title (in its properties) so you can easily identify each field when in Flow (select content control, then “Properties” from developer tab).

Original image unavailable.
Original image unavailable.
Remember, you’ll only see supported content type fields in Flow. Even if you have a date content control, you won’t be able to populate it using Flow.

Preserved with its original publication date. Original archived version.