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 / 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 Super User 2025 Season 2 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

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