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.