web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard