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 / Canvas App Patch not c...
Power Apps
Answered

Canvas App Patch not creating record, and no error results

(0) ShareShare
ReportReport
Posted on by 3

I'm having several issues that cropped up during my latest published version, where features that worked before are simply not working.  For example, I am using Patch when a button's OnSelect to create a new record in my CDS database, and the record does not get created, and the Errors() function returns "empty/blank()".  When I run the app in the PowerApps designer, it works flawlessly, but after I publish the app.  I am clearing the browser cache to ensure that the latest version is running, and I am certain I have the latest version because I modified the text on my button before publishing, and the correct button text shows up.  This is only one of several errors that have crept into areas of the application that should be completely unrelated to the areas of the application I have been working on recently.

I've noticed that the most recently published version lists a PowerApps version of  3.19063.12.  However, when I run the published application and view the session details, it says I am running version 3.19061.8. See attached screenshots :

 

Any tips on what could be going on, with either the version issue, or with the Patch function call that is not returning any error

Categories:
I have the same question (0)
  • Verified answer
    v-xida-msft Profile Picture
    on at

    Hi @larmccoy ,

    Could you please share a bit more about the Patch formula within your app?

    Based on the issue that you mentioned, I have made a test on my side, and don't have the issue that you mentioned, the Patch function works well on my side.

     

    In addition, when I run app within my web browser, the PowerApps version is also 3.19061.8 as below:14.JPG

    Note: I think this issue may not be related to PowerApps version.

     

    Please consider re-create a new app based on your CDS Entity, then try your Patch formula again, check if the issue is solved. The standard format of Patch formula as below:

    Patch( /* <-- Add New record into your CDS Entity */
     'YourCDSEntity',
     Defaults('YourCDSEntity'),
     {
     Column1: "xxx",
     Column2: "xxx",
     ...
     }
    )
    Patch( /** <-- Modify an existing record /
     'YourCDSEntity',
     LookUp('YourCDSEntity', 'Primary Name' = "A specific value"), /* <-- Find the record you want to update */
     {
     Column1: "xxx",
     Column2: "xxx",
     ...
     }
    )

     

    In addition, if you want to add a new record into your CDS Entity, you could also consider use Collect function to achieve your needs instead of Patch function. The Collect function as below:

    Collect(
     'YourCDSEntity',
     {
     Column1: "xxx",
     Column2: "xxx",
     ....
     }
    )

    Please take a try with above solution, then check if the issue is solved.

     

    Also please consider run your app within other browsers or Mobile device, then check if the same issue still exists.

     

    Best regards,

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 320 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard