web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

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,067 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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard