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 Automate
Unanswered

bad Gateway 502

(0) ShareShare
ReportReport
Posted on by

Hi Guys,

I'm trying to update custom fields in project online using MS Flow Send an http request.

The idea is to read Excel file containing actual costs from SAP and then update a SharePoint List which is Ok however when I send those costs to the project custom filds I get errors. (Status 502):

{
"error": {
"code": 502,
"source": "flow-apim-msmanaged-na-northcentralus-01.azure-apim.net",
"clientRequestId": "bf39b078-a9f8-451e-94b6-56d06452d5dc",
"message": "BadGateway",
"innerError": {
"status": 502,
"message": "{\"odata.error\":{\"code\":\"-1, System.Reflection.TargetInvocationException\",\"message\":{\"lang\":\"en-US\",\"value\":\"Exception has been thrown by the target of an invocation.\"}}}\r\nclientRequestId: bf39b078-a9f8-451e-94b6-56d06452d5dc\r\nserviceRequestId: 3e521b9f-d079-a000-252d-e5d6da0e0e99",
"source": "https://ffffffff.sharepoint.com/sites/pwa/_api/projectserver/Projects('cb7166db-6a63-e811-80de-00155d74671a')/Draft/UpdateCustomFields",
"errors": []
}
}
}

 

Here is my flow:

Any help on this error is appreciated.

Also, Can I update multiple custom fields in the same body and how to separate them?

Thanks

502Error_Modifier_votre_flux_Power_Automate.png

Categories:
I have the same question (0)
  • tfhegdbn Profile Picture
    149 on at

     

    Are there any reference documents provided?

     

  • MarkCharge Profile Picture
    2 on at

    I am also getting this error. Did you ever come up with a fix?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

    Fixed it by changing the ValueType to Edm.Double cause of decimals.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 247 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 164 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 138 Super User 2026 Season 2

Last 30 days Overall leaderboard