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 / Patch Function not wor...
Power Apps
Unanswered

Patch Function not working in iOS: Iphone

(1) ShareShare
ReportReport
Posted on by 31
Notify(
   DateTimeValue("2025-02-26", "en-US"),
   NotificationType.Information
);
 /*  
Patch(
    salestrip_masters,
    Defaults(salestrip_masters), // Ensure you're adding a new record
    {
        ordergroup: "Grouping 1",
        order_from: Value(1330012),
        order_to: Value(1330013),
        salestrip_amount: Value(200),
        accounts_currencyint: "USD",
        salestrip_host: "Sam Surin",
        total_normal_count: Value(2),
        total_alt_count: Value(0),
        salestrip_notes: "Test",
        salesperson_name: "Sam surin salesteam",
        salestrip_name: "VG ORDER 2025",
        salestripyear: "2025" // Ensure it's a number
    }
);
*/
Concurrent(
    Patch(salestrip_masters, Defaults(salestrip_masters), { salestrip_name: "VG ORDER 2025" }),
    Patch(salestrip_masters, Defaults(salestrip_masters), {salestrip_name: "VG ORDER 2025", salestrip_amount: Value(200) }),
    Patch(salestrip_masters, Defaults(salestrip_masters), {salestrip_name: "VG ORDER 2025", salesperson_name: "Salesperson" })
)
It is working in Android but not in ios

First I tried the Patch function and then the concurrent one. None of them are working. And it only gives "An unknown error occured." Please help, this app is stuck in development need to add it in production.
Categories:
I have the same question (0)
  • Gabriel G. Profile Picture
    831 Moderator on at
    And what about « salestrip_masters » ? Is it a Dataverse table ? My feeling is, Patch is not the problem, but let’s see what’s wrong :).
     
    I suggest you to do your Patch inside a IfError block and catch the core error message.

    IfError(
    Patch(salestrip_masters,Defaults(salestrip_masters), {salestrip_name: "VG ORDER 2025" }),
    Notify("Message core message: " & FirstError.Message, NotificationType.Error),
    Notify("Success!", NotificationType.Success)
    )
     
    Then retry your app, you should get a significative error message instead of « unknown error ». You can update us if you get newer informations!
     
    I hope it helps!
     
     
  • oseverma9 Profile Picture
    31 on at
    1. iOS
    Yes, the red text box shows the First(Error(salestrip_masters)).Message only. It only shows "An unknown error occured." 
     
    This is only happening in iOS.
     
    2.Android
    In Android, Patch works. 
     
    3.WebApp
    In Browser also, Patch works
  • oseverma9 Profile Picture
    31 on at

    It shows this when I run the formula you suggested.

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,055

#2
Valantis Profile Picture

Valantis 666

#2
11manish Profile Picture

11manish 666

Last 30 days Overall leaderboard