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 / 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

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard