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 / How to prevent an erro...
Power Apps
Unanswered

How to prevent an error message when a Graph API call is not run

(0) ShareShare
ReportReport
Posted on by 364

Hi all, 

 

I was not entirely sure where to post this. I have an app that records data into Dataverse, but also saves multiple documents to a SharePoint document library using a Microsoft Graph API call. 

 

My issue is: I use a ForAll function to see if the name of a document is already in my document library, 

Aurora_1-1687175633313.png

but when a document is not uploaded the app spits out an error message: 

Aurora_2-1687176082381.png

 

The app is currently working the way I would like it to, the issue is Soley the fact that the users see the error message. In all of my testing, the ForAll function works for preventing duplicate documents from being uploaded and even submits new ones regardless of that error message. 

 

If anyone knows of a way to prevent the error from occurring, or another way to prevent duplicates in my SharePoint document library, I would greatly appreciate it.

 

Categories:
I have the same question (0)
  • cdwhite Profile Picture
    1,069 Most Valuable Professional on at

    You might be able to use IfError to either change or suppress the error so it doesn't show

  • Aurora Profile Picture
    364 on at

    I have tried:

     

    Aurora_0-1687206306200.png

    and it does remove the error, but the issue now is that it spits out the "NCMR Updated" message for every attachment. I have tried to put the IfError formula on the outside of my ForAll function, but then the formula does not appear to add new attachments to my document library. 

     

    I will keep trying to make this work but will still happily take ideas if anyone has any. 

     

    Thanks for the time!

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 547

#2
WarrenBelz Profile Picture

WarrenBelz 444 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 322

Last 30 days Overall leaderboard