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 / Power Fx Patch silentl...
Power Apps
Unanswered

Power Fx Patch silently fails in custom page. No error returned, no record created.

(1) ShareShare
ReportReport
Posted on by 2

I'm building a custom page embedded in a model-driven app and trying to duplicate an Equipment record using Patch(Equipment, Defaults(Equipment), {...}). The page receives Param("recordId") from the command bar via Xrm.Navigation.navigateTo(...). In App.OnStart, I parse that into RecordId, then use a LookUp() to set RecordItem, which successfully resolves. Two test labels confirm that RecordItem.'Serial Number' & the current record are correctly passed in.

However, even a minimal Patch using hardcoded values (like 'Serial Number': "Test") fails silently — no error is thrown, and no record is created.


System Context:

  • Environment: Dataverse, GCC High
  • Table: Equipment
  • Custom page is triggered via JavaScript using Xrm.Navigation.navigateTo
  • User has appropriate security role (confirmed manually)

 

Already Tried:

  • Wrapping Patch in IfError(...) with FirstError.Details.HttpResponse (returns blank)
  • Using Coalesce(...) for all fields to avoid null issues
  • Testing Patch with a With(...) loop index (i) for serial number suffixing
  • Verifying RecordItem & SerialNumber fields resolve via test label
  • Testing minimal hardcoded Patch (3 fields, no lookups)
  • Manually creating a new record in the Equipment table (succeeds)

 

Any insight into why Patch would fail completely silently in a custom page context would be appreciated. Thank you!

NoErrorScreenshot.png
Categories:
I have the same question (0)
  • BhargavPatel Profile Picture
    660 Moderator on at
    @CU13051318-0 Can you share the fx you wrote for Patch( )?

    Also, although obvious, but I want to make sure you published the Model Driven App after publishing the Custom page.

    Here are some more things to try:
    1.  Try patching via a canvas app and hardcode the RecordId. If that fails, use the Live Monitor to find the error.
    2.  Repeat the same process for the Custom Page. and use the Live Monitor to check for error. 


       
     
     

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,041

#2
11manish Profile Picture

11manish 676

#3
Valantis Profile Picture

Valantis 655

Last 30 days Overall leaderboard