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 Platform Community / Forums / Power Apps / Getting Bad Gateway er...
Power Apps
Unanswered

Getting Bad Gateway error when trying to update record

(0) ShareShare
ReportReport
Posted on by 25

I am trying to update the status of an Order record using:-

 

Patch(
        '[dbo].[OrderJob]',
        LookUp(
            '[dbo].[OrderJob]',
            OrderJobId = SelectedJob.OrderJobId
        ),
        {
            JobStatusId: ddStatus.Selected.JobStatusId,
            LastUpdatedBy: User().FullName,
            LastUpdated: Now(),
            Comments: txtNotes.Text
        }
)

 

nothing happens but when I go back into edit mode for the code, the above code looks like it is erroring and I have this error message:

 

An error occurred on the server. Server Response: [dbo].[OrderJob] failed: BadGateway.

 

The OrderJob table has a Primary key which is OrderJobId.

 

I am at a total loss, have looked on Google but can find nothing that helps.

Categories:
I have the same question (0)
  • Heba Profile Picture
    7 on at

    Hello, I am facing the same issue. Have you figured out the solution?

  • MikeGutty Profile Picture
    25 on at

    Hi - my problem was caused internally, there had been some new firewall rules introduced because of a security issue

  • Heba Profile Picture
    7 on at

    Thank you for the response

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 366 Most Valuable Professional

#2
11manish Profile Picture

11manish 184

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 99 Super User 2026 Season 1

Last 30 days Overall leaderboard