Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

DataEntity OData Call Returning 502 Bad Gateway Error in Application/Octet Format

(1) ShareShare
ReportReport
Posted on by 32
Hi all, 
 
I'm currently facing an issue with my Logic App when attempting to insert records via OData calls to a Data Entity in Dynamics 365 for Finance and Operations (D365FO).It's throwing a status code 502 & the JSON response content is returned in application/octet-stream format.
 
 
Upon decoding, it was an HTML code of a 502 Bad Gateway error pop-up box.
 
I need to understand Why is the response content encoded & returned in application/octet-stream instead of a string [Bad Gateway]?
 
Is there a way to configure the response headers in the D365FO environment to ensure that errors are returned in a string/text format rather than application/octet-stream?
 
 
 
 
 
Thanks !
 
 
 
  • Martin Dráb Profile Picture
    232,942 Most Valuable Professional on at
    DataEntity OData Call Returning 502 Bad Gateway Error in Application/Octet Format
    Another alternative is the Dataverse connector (with F&O data entities as virtual entities).
     
    Before trying to import anything, are you able to successfully list entities (/data/ endpoint)?
  • Mahesh.0507 Profile Picture
    32 on at
    DataEntity OData Call Returning 502 Bad Gateway Error in Application/Octet Format
    Hi Martin Dráb !

    Currently I'm not using any, this is a HTTP action. I've switched from F&O connectors to HTTP action OData calls due to rate limits.
  • Martin Dráb Profile Picture
    232,942 Most Valuable Professional on at
    DataEntity OData Call Returning 502 Bad Gateway Error in Application/Octet Format
    Which connector are you using in Logic Apps?
     
    (Moved from Dynamics AX forum.)

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,161 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,942 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans