cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,925)