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 / Error Handling Perform...
Power Apps
Unanswered

Error Handling Performance: Datasource Errors in Dataverse

(0) ShareShare
ReportReport
Posted on by 21

Hi All,

 

I have been trying to determine whether to use the "Errors" function, or the "Error" function in relation to which is most performance friendly. 

 

My question is whether the "Errors" table in the first link, is locally cached, or if it is meta data for the dataverse table, and I will essentially be pulling the whole dataverse table again?

 

If it is locally cached, then I can only assume that I could call "IsEmpty(Errors(DataSourceTable1))" faster than our current method, and as a result reduce the user wait time by only carrying out a patch within the app for failures when there is an error, add successful patch info to Audit Logs via PowerAutomate, and not have to collect the data manually during the patch function via context variables.

 

For reference, the current method is below.

 

  1.  Create context variable "audit log name" - (custom information, guid, etc)
  2. Create context variable "PatchError" - blank.
  3. Patch a new record to the audit log dataverse table, with a json formatted string named "$Request" of all the details we will be patching to our data source table - "DataSourceTable1". This will also contain some other details.
  4. This also initializes the "AuditRecord" context variable.
  5. Patch our actual data to "DataSourceTable1", which is a table in dataverse.
  6. This also initializes the "ctx_NewDataRecord" context variable as a record.
  7. IfError(ctx_NewDataRecord, .......)
  8. ...... Notify user
  9. .....Update "PatchError" context variable.
  10. .....Patch the "AuditRecord" context variable to the "Audit Log" dataverse table, using the collected data.
  11. Else patch successful
Categories:
  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    Error() is for throwing your own custom errors or for re-throwing a whole table of errors

    Errors() returns a table of errors for a datasource/record after an action is performed - this is scoped to the most recent data action and is cleared or overwritten by subsequent data actions

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard