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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Content-Range header m...
Power Automate
Unanswered

Content-Range header missing error in HTTP request but it isn't

(0) ShareShare
ReportReport
Posted on by 8

Hi, 

I'm attempting to create a flow that uses Universal Print, i get to the point of getting the document upload url, i then do a put HTTP request within power automate with the Content-Range and Content-Type headers set. However it gives an error back saying that the Content-Range header is missing, even though you can see it in the request headers. I have tried this exact same thing with postman and it works fine so it's not a problem with the HTTP request generally but something with power automate. I've attached an image of the error. 

powerautomateerror.png

 

Categories:
I have the same question (0)
  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @MediafieldsWeb 

     

    This post could help

     

    admin on rest - Content-Range missing header - Stack Overflow

     

    Thanks

  • MediafieldsWeb Profile Picture
    8 on at

    No doesn't really help. I know exactly what the content range is meant to look like. I've done the same HTTP request on Postman and it works fine. I've inputted it the same way and in the output showing the request in the flow test it is formatted correctly but power automate must not me sending it right. 

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @MediafieldsWeb 

     

    When you run the Postman run the fiddler on side by side. Have a look in the header/body request. Postman might be binding something default to get it correctly. 

  • MediafieldsWeb Profile Picture
    8 on at

    For an update on this, i've still not been able to get it to work. However i did point the request to a dummy server i set up, and i can see that for some reason Power Automate HTTP request sends all the headers except the "Content-Range" header, which it misses out. Don't know if this is a bug , but still need some help with this. 

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @MediafieldsWeb 

     

    So you have set the header Content-Range in your HTTP request from PowerAutomate?

  • MediafieldsWeb Profile Picture
    8 on at

    Yes it's set in the request, and it shows in the error as being in the headers which you can see in the screenshot but the server doesn't seem to recieve it. 

  • abm abm Profile Picture
    32,865 Most Valuable Professional on at

    Hi @MediafieldsWeb 

     

    Not sure I could help you in this further. Hopefully someone from the community could response to it.

     

    Thanks

  • Bas12 Profile Picture
    12 on at

    Hi @MediafieldsWeb ,

    I’m facing the same problem; I’ve inserted a header in a HTTP request in Power Automate, but it seems to get lost on the way because the flow results in a “header is missing” error. I’ve done the exact same request using VBA, the same header is being received and it works. I’m very curious about if you were able to fix the problem?

     

    For those who want to help; here is more information about the failed request.

     

    Bas12_0-1638609362919.png

    (“kopteksten” is Dutch voor “headers”)

     

    The unedited input for the flow in Power Automate is:

        "uri": https://api.bag.acceptatie.kadaster.nl/lvbag/individuelebevragingen/v2/adressenuitgebreid?postcode=2594AN&huisnummer=265&exacteMatch=true,

        "method": "GET",

        "headers": {

            "X-Api-Key": "xxxxxxxxxxx",

            "Accept-Crs": "epsg:28992"

     

    The error in the output from the flow in Power Automate is:

      "status": 412,

      "title": "Gewenste coördinatenstelsel voor geometrie moet worden opgegeven.",

      "type": "https://tools.ietf.org/html/rfc7232#section-4.2",

      "detail": "Precondition failed.",

      "instance": "https://api.bag.acceptatie.kadaster.nl/lvbag/individuelebevragingen/v2/adressenuitgebreid?postcode=2594AN&huisnummer=265&exacteMatch=true",

      "code": "acceptCrsMissing"

     

    This is puzzling because the header ‘Accept-Crs’ was added in the request.

     

    When I use requestcatcher.com I can see that only the ‘Accept-Crs’ header isn’t being send by Power Automate. Could there be some kind of validation of standard accepted ‘accept’ and ‘content’ headers? And is it possible to bypass this mechanism?

  • VictorIvanidze Profile Picture
    13,073 on at

    Hello @Bas12,

     

    try to use another action: "Send an HTTP request"  from "Office 365 Groups" connector.

  • Bas12 Profile Picture
    12 on at

    Hello @VictorIvanidze,

     

    Thanks a lot for your advice! I've tried it right away. Unfortunately I get the following error/response:

     

    URI path is not a valid Graph endpoint, path is neither absolute nor relative or resource is not one of the supported (me, users, groups, sites, search, planner, teams, chats)

     

    It seems that the suggested alternative connector can only be used in combination with Office365 products?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 538 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 405 Moderator

#3
abm abm Profile Picture

abm abm 252 Most Valuable Professional

Last 30 days Overall leaderboard