Power Apps OnError to capture, suppress, and report all errors

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ต.ค. 2024

ความคิดเห็น • 59

  • @brendanbowen7097
    @brendanbowen7097 2 ปีที่แล้ว +5

    You're like...a mind reader, Shane. I was facing the challenge with one my large apps where I was a getting an error can't divide by zero; no idea what control was producing it. And then your video comes and that OnError under the App with FirstMessage record...mindblown. Thank you!

    • @ShanesCows
      @ShanesCows  2 ปีที่แล้ว

      Awesome Brendan. I had Chewy keeping an eye on you for you what you needed. :)

  • @MichaelDeBlasis1369
    @MichaelDeBlasis1369 4 หลายเดือนก่อน +1

    Another very informative video. I was about to ask how do you find where random error message are coming from but I see that the on error property in combination with Notify will give the location in the notification message. Done and Done. That was starting to bug me. PUN!

    • @ShanesCows
      @ShanesCows  4 หลายเดือนก่อน

      Glad to help!

  • @xXYourShadowDaniXx
    @xXYourShadowDaniXx 12 วันที่ผ่านมา +1

    This is great and I think this information is what I needed to switch off of using Forms, I don't like that they can auto-layout etc if fields get added/removed etc.

    • @ShanesCows
      @ShanesCows  9 วันที่ผ่านมา

      Always happy to help someone leave forms. 😎

  • @megancusey6678
    @megancusey6678 ปีที่แล้ว +1

    I've been looking for documentation on what information is available on the AllErrors or FirstError record? Perhaps you have that information?

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Sorry Megan I don't have any cheat sheet for it.

  • @sargunsohal1773
    @sargunsohal1773 3 หลายเดือนก่อน +1

    Thanks Shane! This really saved me. Was exactly what I was looking for

    • @ShanesCows
      @ShanesCows  3 หลายเดือนก่อน

      Great to hear!

  • @shellybarrett2960
    @shellybarrett2960 2 ปีที่แล้ว +2

    So I implemented logging in my app. My data source is SQL. Once I implemented this, when a user was editing a form, some fields on the form that the user had filled out, the data was erased. When I removed the error preview feature, the data stayed. I still have the Code evaluating my errors table to see if it is blank on submission after my patch.
    Have you seen this issue?

    • @ShanesCows
      @ShanesCows  2 ปีที่แล้ว

      Hi Shelly, I have not. :(

  • @upgradeaerialphotos
    @upgradeaerialphotos 2 ปีที่แล้ว +2

    Great video Shane and very needed! Question, would patching to a Sharepoint list for errors be more or less efficient than patching to SQL?

    • @ShanesCows
      @ShanesCows  2 ปีที่แล้ว +1

      Sql is probably better but to use sql as a datasource requires premium license. If you have that DataVerse is probably the best option. 😎

  • @VinayKumar-ky8wh
    @VinayKumar-ky8wh ปีที่แล้ว +1

    Hello Shane Young. Can we record the Allerrors into SharePoint List

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Yes, using Patch.

    • @VinayKumar-ky8wh
      @VinayKumar-ky8wh ปีที่แล้ว

      What are the chances for Multiple errors?. can you please help me with some test cases for creating multiple errors

  • @srinidhi9998
    @srinidhi9998 ปีที่แล้ว +1

    Ohh Its really Angry! Its mad😆😆

  • @UnbelievablyIllinois
    @UnbelievablyIllinois ปีที่แล้ว +1

    Does anyone else say "Heeeeeerrrrs our intro" with Shane? Please let me know that I am not alone.

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Thousands of people are with you Brandon. 🤪 In person when people meet me for the first time that is a very common lead off. 😎

    • @UnbelievablyIllinois
      @UnbelievablyIllinois ปีที่แล้ว

      @@ShanesCows Thank goodness I am not alone.

  • @shingomcleod
    @shingomcleod ปีที่แล้ว +1

    Hi Shane, I think I'm having issues with users ignoring the 'there's a new version of this app available, please refresh...' banner. What are your thoughts on storing the latest version in a SharePoint list, then OnStart: compare the SP stored version to the one hardcoded in the app, and if they are not the same prevent users from doing anything, unless the two match? Or is there a better way?

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว +1

      th-cam.com/video/Z-5OMRy7G_M/w-d-xo.html I have a video that show basically what you described. 😀 I think that is a great way to go.

  • @Bekesam
    @Bekesam 11 หลายเดือนก่อน +1

    Oh Wow!! I wish I had seen this before, but glad to come across this. Thank you very much for posting Shane!!!!

    • @ShanesCows
      @ShanesCows  11 หลายเดือนก่อน

      Happy to help 🤩🤩

  • @PowerAppsEric
    @PowerAppsEric 2 ปีที่แล้ว +1

    Is that the intended behavior for the Set(x,Patch(...)) errors, or a bug? Seems un-PowerApps-ish.

    • @ShanesCows
      @ShanesCows  2 ปีที่แล้ว

      Fair question, I haven't had time to ask them yet but I have it on my list.

  • @robinroy3300
    @robinroy3300 2 ปีที่แล้ว +1

    Really useful. Can we utilize trace in onerrror property to send each error to Azure app insights?

    • @ShanesCows
      @ShanesCows  2 ปีที่แล้ว

      Yep, that would a great idea Robin :)

  • @azharsyed6461
    @azharsyed6461 2 ปีที่แล้ว +1

    Make a video Using Dataflow how to add data to Dataverse Table when a new file is uploaded Model Driven App

  • @martinc3907
    @martinc3907 11 หลายเดือนก่อน

    My problem is that in production one SQL table is not getting patched. However, in my development environment it works perfectly. Development environment has a copy of the production tables but both production and development environments use the same lookups in the production environment. I'm using the set statement, so it looks like the situation where Power Apps handles the error but does not notify that the patch failed.

    • @martinc3907
      @martinc3907 6 หลายเดือนก่อน

      Sorted that error out but now getting a bizarre error on another app I developed. I have a date table from which I retrieve a diary number this is then used to filter a much larger table. I used the date as int solution to overcome delegation issues with filtering the date table with the date picker.
      This works fine I then used the diary number returned from the first table to filter a much larger table.
      However, I am now experiencing a bizarre problem. Every second time I use the date picker; it returns no data in the larger table. For example, start the app and pick 4/1 I get data pick 5/1, and no data is returned. Pick 3/1 data returned pick 4/1 no data returned but then pick 5/1 data returned. Using SQL as the data source.
      Shane your video on setting up an error log will be very useful in hopefully working out why this is happening.

  • @robbolles4742
    @robbolles4742 ปีที่แล้ว +1

    Thank you again Shane, Exactly the info I was looking for.

  • @Paul___L
    @Paul___L ปีที่แล้ว

    Love this Shane! I've got a new page with galleries which change template size on the count of items.... Division by 0 errors all over the place as it takes a second to load... Probably should pre load, but... I am where I am and this looks great!
    Think I'd add it to add to a list via automate and then flag to me on teams of its a new fault, not previously in the app.
    Thanks for the building blocks!

  • @Tiago22049316
    @Tiago22049316 2 ปีที่แล้ว +1

    Great video Shane!
    Have u any video about concat errors from gallery before patch to sharepoint list? or something like that?
    Thank you in advance

    • @ShanesCows
      @ShanesCows  2 ปีที่แล้ว

      I don't exactly follow. Can you give me more details about what you want to see?

    • @Tiago22049316
      @Tiago22049316 2 ปีที่แล้ว

      @@ShanesCows I mean, I have some questions in different rows in Gallery, for example: 1st have an combobox that can't be empty, 2nd have an txtbox that need be filled with numbers... How can I block the user to patch and show him all errors? Do you Have a way to show me? Thank you

  • @jayveebarretto9309
    @jayveebarretto9309 2 ปีที่แล้ว

    Thank you for this informative video, Shayne! This can help us to debug any error that is not showing on the end-user.
    Just curious if this OnError includes problem on network or internet?
    Many thanks!

  • @raindenverraindenver717
    @raindenverraindenver717 2 ปีที่แล้ว +1

    Good explanation! But I wonder and did not find ANY information about concurrent patch or form submission for SQL server data. How to handle changes made by other users? ((

    • @ShanesCows
      @ShanesCows  2 ปีที่แล้ว

      Are you looking for locking? So 2 people can't edit the same record in SQL? Or something different. Sorry, not sure what your challenge is. :)

    • @raindenverraindenver717
      @raindenverraindenver717 2 ปีที่แล้ว +1

      @@ShanesCows Thanks for quick respond !) Yes. One user changed data while other users see unchanged (old data) without refreshing Datasource. Yes it about locking record (optimistic or pessimistic). You can open your any test app in two copies and in one change any data. Without refreshing second app do no see changes . The data source should be SP List or SQL db.

    • @ShanesCows
      @ShanesCows  2 ปีที่แล้ว +1

      You will have to create logic to handle that. You can use the Refresh function on a timer to periodically refresh the data in the app. Or use my check for duplicates logic to check for changes before locking a record. Power Apps isn't going to do anything for you automatically, you will have to code it. 😑 th-cam.com/video/Ap3_Ea9H8b0/w-d-xo.html

  • @amberdrebaum6491
    @amberdrebaum6491 2 ปีที่แล้ว

    Thank you for your help! Was curious if instead of Patch to SP list can you also send to Power Automate?

  • @kingsleyudeagha
    @kingsleyudeagha 2 ปีที่แล้ว

    Can we access Error.Message outside the notify scope ?

  • @SergioItashop
    @SergioItashop 2 ปีที่แล้ว

    Hi Shane Young. How To Customize this message "No item to display" ?

  • @joaobadaro8439
    @joaobadaro8439 ปีที่แล้ว +1

    The god of Power apps, thank you Shane!

    • @ShanesCows
      @ShanesCows  ปีที่แล้ว

      Glad that it helped you 🤩

  • @oluwatobiyusuf
    @oluwatobiyusuf 2 ปีที่แล้ว +1

    Yes, I enjoyed it. Thank you Shane

    • @ShanesCows
      @ShanesCows  2 ปีที่แล้ว

      You watched a lot of videos today. Thanks for the nice comments. 😎

  • @ArunKumar-ov1tw
    @ArunKumar-ov1tw ปีที่แล้ว +1

    Great session. Thanks a lot 👏

  • @diogo9610
    @diogo9610 8 หลายเดือนก่อน

    Thank you Shane, learned a lot

  • @nazuu
    @nazuu 2 ปีที่แล้ว +1

    Great knowledge.

  • @paolovr1970
    @paolovr1970 2 ปีที่แล้ว +1

    Thanks Shane 🙏🙏🙏

    • @ShanesCows
      @ShanesCows  2 ปีที่แล้ว

      Happy to help 🥰