web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Can't Populate a Micro...
Power Automate
Unanswered

Can't Populate a Microsoft Word Template with images

(0) ShareShare
ReportReport
Posted on by 4

Can't populate a Microsoft Word Template with Images. I keep getting an error message that it is missing the content-type header. I am getting file content using the "Get file content" action. Anyone have any insights?

 

Error details: 

Correlation Id: b777d397-9c67-4b23-8b7e-4e7827925f4c

Additional info:
{
"StatusCode": "415",
"Message": "",
"Body": {
"Message": "The request contains an entity body but no Content-Type header. The inferred media type 'application/octet-stream' is not supported for this resource.\r\nclientRequestId: c93278fe-ccb6-41c4-8382-04c7fa7360df,e3aac77e-5584-42a3-95e3-0476af01bd43"
},
"Headers": {
"Pragma": "no-cache",
"Cache-Control": "no-store, no-cache",
"Date": "Mon, 06 May 2024 16:22:29 GMT",
"Set-Cookie": "ARRAffinity=72f0058640e8d668f1d9eccaa21b54dfe769c845c67c66321653924dd77a2205;Path=/;HttpOnly;Secure;Domain=wordonlinebusiness-eus.azconn-eus-002.p.azurewebsites.net ARRAffinitySameSite=72f0058640e8d668f1d9eccaa21b54dfe769c845c67c66321653924dd77a2205;Path=/;HttpOnly;SameSite=None;Secure;Domain=wordonlinebusiness-eus.azconn-eus-002.p.azurewebsites.net",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"x-ms-islandgateway": "GA000001T",
"x-ms-gateway-clusters": "prdil106eus",
"mise-correlation-id": "23fe5895-40ae-4efe-8803-f9dfd4a604e2",
"x-ms-request-id": "c93278fe-ccb6-41c4-8382-04c7fa7360df,e3aac77e-5584-42a3-95e3-0476af01bd43",
"x-ms-user-agent": "PowerAutomateLocal/2.43.00195.24107",
"X-Content-Type-Options": "nosniff",
"X-Frame-Options": "DENY",
"timing-allow-origin": "*",
"x-ms-apihub-cached-response": "false",
"x-ms-apihub-obo": "false",
"x-ms-failure-cause": "Apim",
"x-ms-correlation-request-id": "e3aac77e-5584-42a3-95e3-0476af01bd43",
"x-ms-flow-mobile-ios-version": "1.3.0",
"x-ms-flow-routing-request-id": "EASTUS:20240506T162230Z:e3aac77e-5584-42a3-95e3-0476af01bd43",
"x-servicefabric": "NoRetry",
"x-ms-service-request-id": "5dde4c16-6817-426f-b361-2f1a43ddaf13",
"x-ms-correlation-id": "b777d397-9c67-4b23-8b7e-4e7827925f4c",
"x-ms-activity-vector": "00.01.00",
"Server-Timing": "x-ms-igw-upstream-headers;dur=1311.9,x-ms-igw-req-overhead;dur=0.8"
}
}

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Swiener2000 

     

    Would you kindly provide some screenshots of your desktop flow to help us better understand the issue you've reported?

     

  • Swiener2000 Profile Picture
    4 on at

    I am trying to populate word template with an image that I get using the "get file content" action. The flows works when I don't pass an image.

    Here are screenshots of my flow: 

    Swiener2000_1-1715087466336.png

     

    Swiener2000_0-1715087437897.png

     

  • Swiener2000 Profile Picture
    4 on at

    @Deenuji I attached the screenshots in other reply, do have any suggestions to fix this issue?

     

    Thanks

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Swiener2000 

    Let me give a shot tomorrow morning. Sorry for the delay.

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Swiener2000 

     

    It appears that the "Populate a Microsoft Word template" action in PAD does not support any media type. When attempting to pass binary data as media type, it results in the reported error. You can pass this feedback to MS.

     

    Here are some workarounds:

    1. Consider implementing a complete cloud flow for this use case.
    2. If there are dependencies with PAD, you can create a cloud flow with the trigger "When a HTTP request is received." Pass the file content from the desktop flow to the cloud flow, populate your template with images, and then return the response to PAD.

     

    Let me know if you need further clarification or assistance with these options.

     


    Thanks,
    Deenuji Loganathan 👩‍💻
    Automation Evangelist 🤖
    Follow me on LinkedIn 👥

    -------------------------------------------------------------------------------------------------------------
    If I've helped solve your query, kindly mark my response as the solution ✔ and give it a thumbs up!👍 Your feedback supports future seekers 🚀

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 432

#2
11manish Profile Picture

11manish 313 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 154

Last 30 days Overall leaderboard