Skip to main content

Notifications

Announcements

No record found.

Dynamics 365 Community / Forums / Finance forum / DataEntity OData Call ...
Finance forum
Unanswered

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

Posted on by 30
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
    Martin Dráb 224,741 Super User 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
    Mahesh.0507 30 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
    Martin Dráb 224,741 Super User 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.)

Helpful resources

Quick Links

Can you answer this forum question?

You could make someone's day!

Community Newsletter - May 2024

Kudos to our community stars!

Community Spotlight of the Month

Kudos to Mohamed Amine Mahmoudi!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 283,663 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 224,741 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,146

Featured topics

Product updates

Dynamics 365 release plans