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(...)withFirstError.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 & SerialNumberfields 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!

Report
All responses (
Answers (