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 / Unexpected error when ...
Power Apps
Answered

Unexpected error when starting app offline

(0) ShareShare
ReportReport
Posted on by 22

I have an app which uses data from a couple of tables in Azure SQL. In my OnStart I have the following:

If(
Connection.Connected,
ClearCollect(
cnLocalData,
'[dbo].[tblPersons]'
);
ClearCollect(
cnLocalParishes,
'[dbo].[tblBeneficeParishes]'
);
SaveData(
cnLocalData,
"ldLocalData"
);
SaveData(
cnLocalParishes,
"ldLocalParishesData"
),
LoadData(
cnLocalData,
"ldLocalData",
true
);
LoadData(
cnLocalParishes,
"ldLocalParishesData",
true
)
)

 

This runs fine when oneline, but when I start the app in Flight Mode on Android (a mobile using 7.0 or tablet using 6.0) I get the error message, "An unknown error occurred", but then the app seems to run OK.

 

Doe anyone have any idea what might be causing this.

Categories:
I have the same question (0)
  • dcohendumani Profile Picture
    2 on at

    I am having similar issues with other apps, I have an app that connects to Azure SQL and it times out when opening in the Designer and trying to open the form. This is a SharePoint list apps.

     

    Microsoft is there any issues today, started around 3pm EST today 11/29?

     

     

  • AlanCossey Profile Picture
    22 on at

    Hi, I don't think it is related to my problem. I've had this problem for several days.

  • Verified answer
    AlanCossey Profile Picture
    22 on at

    Good news! It was me, not PowerApps. I had a button where the OnVisible event was trying to do something with the online connection. A quick If(Connection.Connected... later and all is well.

  • theozapps Profile Picture
    104 on at

    I was experiencing this same issue, except I had no controls inadvertently calling my data sources.

    After pulling almost all my hair out, I finally found the issue: 

    Formula-level prefetching was turned on under Experimental Features.

    Turning that off fixed the issue for me (and subsequently saved me from going insane).

  • Crocus Profile Picture
    69 on at

    I too was about to go insane until I found this post, thanks so much for posting it! I wonder if this is a new thing, I swear it wasn't happening two weeks ago.

     

  • DwayneLord Profile Picture
    33 on at

    Thank you! I too was going crazy trying to figure this out. 3 hours wasted until I found this...

     

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard