Skip to main content
Community site session details

Community site session details

Session Id : xGLjZNhn7t0DxohuBfrm3b
Power Automate - Building Flows
Answered

406 NotAcceptable

Like (0) ShareShare
ReportReport
Posted on 28 Jan 2019 18:21:22 by 36

Hi,

I created a custom connector to an extrenal CRM system and I wan't to via their api pull all the customers. I have been able to do this in postman and in the custom connector when testing (I'm using an API key). 

 

I'm not sure what I'm doing wrong in flow but I get this in flow, I assume something maybe I should be sending that I'm not? I can't see what though as the test in powerapps works (i even get the customers returned there) on the connector page.

flowerror.PNG

  • _romi Profile Picture
    4 on 12 Mar 2024 at 06:36:44
    Re: 406 NotAcceptable

    Can you please give me more details. I am unable to make it work.

  • Community Power Platform Member Profile Picture
    on 03 Oct 2022 at 18:02:55
    Re: 406 NotAcceptable

    @RyanMesser I am having the same issue you described here, but I do not follow how you resolved it.

     

    Can you please provide some details to a PowerApps rookie?

     

    Thanks

     

  • tonmcg Profile Picture
    7 on 29 Jan 2019 at 14:08:24
    Re: 406 NotAcceptable
    That's good to know. Glad you solved it.

    Quick question: since Flow routes requests through Azure, how do monitor and debug network traffic?
  • tonmcg Profile Picture
    7 on 29 Jan 2019 at 13:56:38
    Re: 406 NotAcceptable
    That's good to know. Glad you solved it.

    Quick question: since Flow routes requests through Azure, how do monitor and debug network traffic?
  • Verified answer
    RyanMesser Profile Picture
    36 on 28 Jan 2019 at 23:44:20
    Re: 406 NotAcceptable

    Thanks for the response, 

     

    Yes I knew due to getting 406 that in the Flow  it isn't liking something i was sending. I had a suspicion that it was the Content-Type as it should be sent application/json. 


    For some reason although not required in the Power Apps test section or postman I had to add in the header

    Accept application/json (I was already sending Content-Type application/json) but I noticed on the response intially the content type was text/html which isn't correct.


    So for clarity I had to add accept: application/json to the header for it to work. 

     

    Thanks

     

    Ryan

     

     

  • tonmcg Profile Picture
    7 on 28 Jan 2019 at 23:15:07
    Re: 406 NotAcceptable
    According to MDN (https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/406), this is an error produced by the server when the response it's trying to send doesn't conform to the format defined by one of your request headers. Put another way, your request asked for the response to be in British English but the server responded in Australian English. This isn't allowed.

    According to MDN:

    If a server returns such an error status, the body of the [error] message should contain the list of the available representations of the resources, allowing the user to choose among them.

    The error message you received should contain a clue about the format of the response the server tried to send and the format your request told it to send.

    The format defined in one or more of the following headers should match in both the request and the response:
    Accept
    Accept-Charset
    Accept-Encoding
    Accept-Language

    Tony

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 497 Super User 2025 Season 2

#2
David_MA Profile Picture

David_MA 436 Super User 2025 Season 2

#3
Riyaz_riz11 Profile Picture

Riyaz_riz11 244 Super User 2025 Season 2

Loading complete