Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Error Handling
Unanswered

Catching Error "Network request can fail when the app is in the background"

(1) ShareShare
ReportReport
Posted on by 2
Hi to All
 
First of all, thank you for the help that this community provides us.
 
I'm trying to update an app so that when the phone is locked (background mode) the error is captured and a variable is activated.
 
The app shows me 2 types of error:
 
  • Network request can fail when the app is in the background
  • Error when trying to retrieve data from the network (I think this error corresponds to error type 23 (Error kind)).
I would like to be able to capture the 2 possibilities with the error code instead of the text.
 
I'm trying with this code, and a while ago it worked for me but now it doesn't (Maybe power apps platform update ???)
 
If((FirstError.Message = "Error when trying to retrieve data from the network" && FirstError.Source = "Confirmation Button Yes_DownLoad.OnSelect"),SaveData(ClearCollect(DownLoadInterrupted, true), "DownLoadInterrupted"), true);
 
Thanks in advance.
Regards
Daniel

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 Winners! 🌸

Congratulations to all our community participants!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard > Power Apps - Error Handling

#1
stampcoin Profile Picture

stampcoin 73

#2
DS-11051211-0 Profile Picture

DS-11051211-0 20

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 9

Overall leaderboard

Featured topics