Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Unanswered

Getting Bad Gateway error when trying to update record

(0) ShareShare
ReportReport
Posted on by 12

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:
  • Heba Profile Picture
    7 on at
    Re: Getting Bad Gateway error when trying to update record

    Thank you for the response

  • MikeGutty Profile Picture
    12 on at
    Re: Getting Bad Gateway error when trying to update record

    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
    Re: Getting Bad Gateway error when trying to update record

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

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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard