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 / Dataverse business req...
Power Apps
Answered

Dataverse business required field not enforced with patch from canvas app

(1) ShareShare
ReportReport
Posted on by 881 Super User 2026 Season 1
Hello!
 
I will likely be adding app level field validations before patching but I'm perplexed why Dataverse records are created with seemingly empty business required fields when patching from my canvas app.
I think the Form control and DataCards would have handled this better but that is not the direction I went for this POC.
I also have field property Required set to true and that does not enforce them either.
 
I commented out one of the business required patched fields and then it throws a database error as expected.
 
What is this behavior?
What did I set up incorrectly?
 
Appreciate the help!
 
 
 
 
 
 
Categories:
I have the same question (0)
  • Verified answer
    venturemavenwill Profile Picture
    1,198 Super User 2026 Season 1 on at
    I think this is essentially like sending out a HTTP request in Power Automate that doesn't contain the required field. 
    Because the payload doesn't include the field at all the validation logic also doesn't kick in since the api doesn't even try to update the field.
    It's the most likely explaination I have so far after working with Dataverse for so long. 
     
    As you said, if I want to ensure users follow the table level validation, I always just use a form. 
  • Cgangweg01 Profile Picture
    881 Super User 2026 Season 1 on at
     
    Below is a %100 CoPilot response to prompt on this topic without edit:
     

    In Power Apps, when using the Patch function in a Canvas app to create or update records in Dataverse, business required fields defined in Dataverse are not automatically enforced. This behavior can be surprising, but it stems from how validation works between Canvas apps and Dataverse.

     

    Here's why this happens:

     

    1. Canvas App Patch Bypasses Form-Level Validation

     

    Canvas apps do not use the same form-based model as Model-driven apps. When you use Patch, you're directly interacting with the Dataverse table via the API, and Dataverse does not enforce business required fields at the API level unless explicitly configured.

     

    2. Business Required ≠ Database Required

     

    In Dataverse:

     

    • Business Required means the field must be filled in the UI (e.g., in a Model-driven app form).

    • Required at the database level (i.e., non-nullable columns) means the field must be filled regardless of the interface.


    •  
     

    So if a field is only marked as Business Required (not database-required), Dataverse allows nulls via API calls like Patch.

     

    3. Patch Only Fails on Database Constraints

     

    If a field is required at the database level, Patch will fail with an error if the field is missing. But for Business Required fields, it will succeed unless you manually enforce the requirement in your Canvas app logic.

     
     

    How to enforce Business Required fields in Canvas apps

     

    To ensure users fill in required fields before patching:

     

    • Use form validation in your Canvas app.

    • Check for empty values before calling Patch, e.g.:


    •  
     

     

    If(
        IsBlank(txtName.Text),
        Notify("Name is required", NotificationType.Error),
        Patch(MyTable, Defaults(MyTable), { Name: txtName.Text })
    )

     

     

    • Alternatively, use Dataverse business rules or Power Automate flows to validate after submission.


    •  
     
     

    Would you like help writing a validation formula for a specific field or table in your app?

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