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 / Network error when com...
Power Apps
Unanswered

Network error when committing app changes to Postgresql

(1) ShareShare
ReportReport
Posted on by 4

Hi, I'm fairly new to power apps and I'm struggling to get the app to commit to the database

I've used the auto generated 3 page app using the PostgreSQL connector.

 

It pulls the data, searches and everything, just when I make changes and try to push them to the database, I get a network error

I'm using on prem hosted PostGIS / PostgreSQL database and a data gateway on my local machine with npgsql 4.0.1 installed (GAC Enabled)

 

Here is a list of the errors:

laurieH_0-1719908098365.png

 

Here is the response from the initial patch row (line 5)

 

{
  "duration": 4242.5,
  "size": 569,
  "status": 400,
  "headers": {
    "Cache-Control": "no-cache,no-store",
    "Content-Length": 569,
    "Content-Type": "application/json",
    "Date": "Tue, 02 Jul 2024 08:14:25 GMT",
    "expires": -1,
    "pragma": "no-cache",
    "strict-transport-security": "max-age=31536000; includeSubDomains",
    "timing-allow-origin": "*",
    "x-content-type-options": "nosniff",
    "x-frame-options": "DENY",
    "x-ms-apihub-cached-response": false,
    "x-ms-apihub-obo": false,
    "x-ms-connection-gateway-object-id": "60702e10-7ef6-44f1-ae2d-3eaae222e5b7",
    "x-ms-environment-id": "f13fae7c-53e3-e29d-be8c-f29853ac77ad",
    "x-ms-request-id": "4c2419cf-e406-426a-a555-f834dfccdbd5",
    "x-ms-user-agent": "PowerApps/3.24063.22 (Web AuthoringTool; AppName=637e7d07-7b99-4529-95af-7b007b3b4697)",
    "x-ms-client-request-id": "4c2419cf-e406-426a-a555-f834dfccdbd5"
  },
  "body": {
    "status": 400,
    "message": "PostgreSQL: 42704: unrecognized configuration parameter \"my_trigger_disabled\"\r\n     inner exception: PostgreSQL: 42704: unrecognized configuration parameter \"my_trigger_disabled\"\r\nclientRequestId: 4c2419cf-e406-426a-a555-f834dfccdbd5",
    "error": {
      "message": "PostgreSQL: 42704: unrecognized configuration parameter \"my_trigger_disabled\"\r\n     inner exception: PostgreSQL: 42704: unrecognized configuration parameter \"my_trigger_disabled\""
    },
    "source": "postgresql-ukw.azconn-ukw-001.p.azurewebsites.net"
  },
  "responseType": "text"
}

 

I'm not sure where the parameter [my_trigger_disabled] is coming from and don't know how to troubleshoot this, any help would be greatly appreciated 🙂

 

 

Categories:
I have the same question (0)
  • developingteal Profile Picture
    392 on at

    In my experience, you can't use triggers at all in your db when working with powerapps patch(). I am not sure if you have any triggers, but double check and remove them all if you can. Pretty much the only way I have been able to address trigger problems is deleting them completely from the database outside of power apps. 

  • laurieH Profile Picture
    4 on at

    Hmmm, I'm confused, if power apps isn't manipulating data relating to the trigger, how would it know that its there?

     

    I've done a search on the database for my_trigger_disabled and there are no triggers or trigger functions with that name, seems really strange. the operation I'm doing shouldn't fire any trigger

  • developingteal Profile Picture
    392 on at

    Yeah even if it shouldn't fire a trigger, having any triggers won't run. I don't know the technical reason why, and it is really annoying, but it won't work unless you remove them.

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 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard