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 / Errors function not wo...
Power Apps
Unanswered

Errors function not working????

(0) ShareShare
ReportReport
Posted on by 270

Hi - I am attempting to use the errors function in PA.

 

I have a sharepoint list using the following command to PAtch updates t othe list. 

 

Patch('Secure Print Assessments',First(Filter('Secure Print Assessments', ID=CustomerGallery.Selected.ID)),GAForm.Updates))

 

This seems to work fine as I can update the record.  I do have some required fields in the SP List.  I have made them required in the SP List and also in set as True in the Data Card on the form.

 

I have created a label and added in the folowing as its Text

 

First(Errors('Secure Print Assessments',First(Filter('Secure Print Assessments', ID=CustomerGallery.Selected.ID)))).Message

 

My problem is that nothing shows in this label after doing the Patch - I have made sure there is nothing in the required field. I have set the borderColor to If(IsBlank(dcvOppID.Text),Red,RGBA(0, 150,214, 1)).  When it is empty it has a red border and a blue when it has an entry.

 

A couple of questions - does the Form.Updates option only look for changes? e,g, if it was already empty but I changed nothing would it see no changes and therefore not do the Patch?  I have tried adding an entry and saving it and then removing it but still no luck.

 

How does the errors table get populated? Can I access it anywhere to check it? I am assuming that the ErrorKind.MissingRequired should be triggered when I use Patch but there is no value - is this a correct assumption?

 

Any assistance is appreciated as I have followed the Errors documentation here https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-errors but cannot get it working.

 

I have also tried using the EditRecord as a Context field but I get errors if  I do not use ID=CustomerGallery.Selected.ID

Categories:
I have the same question (0)
  • v-xida-msft Profile Picture
    Microsoft Employee on at

    Hi @Gargoolgala,

     

    I have made a test and the issue is confirmed on my side. Even though, I set the Required property for some fields in my SharePoint list, when I enter empty value within the required column in my PowerApps app, the Patch() function that you provided works successfully without error. No error message is shown up within the Label control.

     

    I think the formula that you provided is correct, I have posted this issue to my product team, if this issue is solved, I would reply here.

     

    Best regards,

    Kris

  • Gargoolgala Profile Picture
    270 on at

    thanks for the confirmation - thought I was going insane 🙂

  • Gargoolgala Profile Picture
    270 on at

    I have also noticed a similar issue with the validate function - it does not throw an error if it is missing required fields.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi,

     

    Is there any update on this issue?

    I am also facing same issue.

    Thanks.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    This still seems to be not resolved, any updates?

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Any update just tried and patching would push thru even mandatory columns are blank

  • Vignesh135 Profile Picture
    2 on at

    Just a try!

    Please refer this link: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-errors 

     

    We can Notify by Onfailure of Forms

    Vignesh135_0-1694660059319.png

     

     

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard