{"id":21009,"date":"2022-08-15T12:51:07","date_gmt":"2022-08-15T19:51:07","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/power-fx-error-handling-graduates-to-preview\/"},"modified":"2022-08-15T12:51:07","modified_gmt":"2022-08-15T19:51:07","slug":"power-fx-error-handling-graduates-to-preview","status":"publish","type":"power-apps","link":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/power-fx-error-handling-graduates-to-preview\/","title":{"rendered":"Power Fx: Error handling graduates to preview"},"content":{"rendered":"\n
We are thrilled to announce that the long-time experimental feature Formula-level error handling<\/strong> has moved forward to preview. As a result, you and your end users will enjoy higher reliability and more transparency about what is happening in your apps.<\/p>\n\n\n It’s a huge step. Adding error handling to an existing language turned out to be a very tall order, touching almost everything, from data types, to functions, to the runtime. Thank you for all of your support, feedback, and patience as we got this done.<\/p>\n\n\n What does it mean for you? <\/p>\n\n\n Error handling is a big change in behavior. By entering preview, we are signaling that we believe we are done, that we anticipate no further significant changes from here. Many of you already use error handling in production and this move to preview should only embolden more of you to do so. If significant changes are needed from here, we will treat them as a separate feature.<\/p>\n\n\n We are rolling this out slowly as it is such a big change. All of you will soon see that the Formula-level error handling<\/strong> switch has moved from experimental to preview in the settings (as of version 3.22082). It will still be default to off for most tenants. Over the coming weeks we will slowly change the default for new apps only to on across the tenants. Makers can still disable this feature and will be able to do so for a long time.<\/p>\n\n\n I say again: we are changing the default for new apps only<\/strong>. Existing apps will continue running as they always have. We have no plans at this time to turn this on for existing apps, and as this is such a big change, we may never do this and make this a permanently available switch. Your feedback will guide us.<\/p>\n\n\n The documentation for Error, IfError, IsError, IsErrorOrBlank<\/strong> functions<\/a> and the App.OnError<\/a><\/strong> property covers these changes. IfError<\/strong> and IsError<\/strong> are very similar to their Excel counterparts. We are also working on overview docs that will be released shortly.<\/p>\n\n\n But before that, let’s take a brief tour.<\/p>\n\n\n Let’s start with what Excel does, the inspiration for Power Fx. For an error like division by zero, Excel is very clear that something has gone wrong with a # error message that shows right in the cell. This error will propagate to other cell formulas if A1 is used in a formula: <\/p>\n\n