Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building 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:
  • Aurora Profile Picture
    364 on at
    Re: How to prevent an error message when a Graph API call is not run

    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!

  • cdwhite Profile Picture
    1,067 Most Valuable Professional on at
    Re: How to prevent an error message when a Graph API call is not run

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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,906 Most Valuable Professional

Leaderboard