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 / Issue Inserting Data i...
Power Apps
Answered

Issue Inserting Data into PostgreSQL Datasource

(0) ShareShare
ReportReport
Posted on by 11
Hi, I'm looking to create a PowerApp using PostgreSQL as a datasource. I'm looking to try something really basic where I can add, edit, and delete data from inside PowerApps. We are already paying for a premium license and I've attempted to use the following:
 
Patch('camera_system.System',
    Defaults('camera_system.System'),
    {
        System_Components_Number: Int(txt_CompNum.Text),
        System_Name: txt_SysName.Text,
        System_Status:txt_SysStat.Text
    }
)
 
However, there is an error message 'The function 'Patch' has some invalid arguments.' but fails to point out where the issue is. Could I get some help on this? I've logged in with the super admin credentials so no read/write permissions are missing as I can retrieve a table of contents, but no luck!
 
Thanks,
Liam
I have the same question (0)
  • Sivaksk147 Profile Picture
    10 on at
    can you share the what error are you getting ? 
     
    i presume you have the gateway configured and logged in with same credetails ? and able to see the see the tables from power apps application ?
     
     
  • LL-07111511-0 Profile Picture
    11 on at
    Hi Sivaksk147,
     
    Thanks for replying. I've got the following error:
     
    'The function 'Patch' has some invalid arguments.'
     
    I can confirm I've been able to retrieve data:
     
    Many thanks,
    Liam
  • Verified answer
    LL-07111511-0 Profile Picture
    11 on at
    A fix for this problem, was definitely a rookie mistake, but there wasn't a primary key set on PGAdmin 4. After enabling the Primary Key, there was no issue with Patching.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 93 Most Valuable Professional

#2
Haque Profile Picture

Haque 81

#3
Valantis Profile Picture

Valantis 49

Last 30 days Overall leaderboard