cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
AlanCossey
Level: Powered On

Unexpected error when starting app offline

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.

1 ACCEPTED SOLUTION

Accepted Solutions
AlanCossey
Level: Powered On

Re: Unexpected error when starting app offline

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.

View solution in original post

3 REPLIES 3
dcohendumani
Level: Powered On

Re: Unexpected error when starting app offline

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
Level: Powered On

Re: Unexpected error when starting app offline

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

AlanCossey
Level: Powered On

Re: Unexpected error when starting app offline

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.

View solution in original post

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 69 members 3,647 guests
Please welcome our newest community members: