Fix Power Automate Cannot Add SharePoint Images to Word Documents
Question details
The user is unable to insert JPG or PNG images from a SharePoint list into a Word document using a Power Automate flow.

- Product
- Microsoft Word / Power Automate
- Device & OS
- not provided
- Scenario
- Populating a Word document template with data and images dynamically retrieved from a SharePoint list using Microsoft Power Automate.
- Observed behavior
- The Power Automate flow rejects the image files during the population step, returning an error message stating that the image format is invalid.
Ensure you have the necessary site permissions to access the SharePoint list and read the underlying image files, and verify that your Word document template is saved in the modern .docx format.
Use Picture Content Controls and Pass File Content
To successfully populate images into a Word document, the template must use a specific Picture Content Control, and the flow must pass the actual file content instead of a URL or filename.
Power Automate cannot process raw image URLs or paths directly into a Word document template. It requires the template to have a dedicated container for the image, and it needs the binary file data (file content) to inject the image successfully.
Open your Word template. Go to File > Options > Customize Ribbon, check the 'Developer' box in the right column, and click OK.
Click exactly where you want the image to appear. Go to the Developer tab and click the 'Picture Content Control' icon. Click 'Properties' in the Developer ribbon and assign it a unique Title and Tag.
In your Power Automate flow, add the 'Get file content' action for SharePoint. Use the file identifier from your SharePoint list to fetch the actual image data.
In the 'Populate a Microsoft Word template' action, locate the field matching your Picture Content Control. Insert the 'File Content' dynamic content from the previous step into this field.

Try WPS Office for Your Document Needs
Dealing with complex Microsoft Power Automate flows and premium Word connectors can be tedious. WPS Office provides a free, lightweight, and highly compatible alternative for handling your daily document creation and image formatting needs without the hassle.
- 1. Download and Install WPS Office: Visit the official WPS website, download the free version, and install it on your device.
- 2. Open Your Document: Launch WPS Writer and open your .docx template or create a new document from scratch.
- 3. Manage Images Easily: Go to the Insert tab and click 'Picture' to seamlessly add, crop, and format images without needing complex automated flows.

Frequently Asked Questions
Why does Power Automate say my JPG or PNG is an invalid format?
This error frequently occurs when the flow attempts to pass the file's URL, path, or metadata to the Word template instead of the actual binary file content. Adding a 'Get file content' action and passing its output resolves this issue.
Do I need a premium Power Automate license to populate Word documents?
Yes, the 'Populate a Microsoft Word template' action is a premium connector in Power Automate. You will need an appropriate premium license or a pay-as-you-go environment to use it.
Can I use standard text controls for images in my Word template?
No, you must specifically insert a 'Picture Content Control' from the Developer tab in Word. Power Automate will only recognize fields formatted as image containers for picture insertion.




