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

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Catching Error "Networ...
Power Apps
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
Categories:
I have the same question (0)

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 248 Most Valuable Professional

#2
Kalathiya Profile Picture

Kalathiya 209 Super User 2026 Season 1

#3
VASANTH KUMAR BALMADI Profile Picture

VASANTH KUMAR BALMADI 195

Last 30 days Overall leaderboard