cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Offline issue

Hi All,

 

 I am creating an powerapps for offline. I have one button which takes some input from user and save into  JourneyCollection3. And send data to cds when the device has internet connection.

I am facing an issue for following flow- disconnects internet , open the offline app, take some data in offline mode from user and then come online and click on button which sends data to CDS. It throws an error saying "Value must be a data entity record"

But this is working- internet connection is present, opens an app, then disconnects internet , take some data in offline mode from user and then come online and click on button which sends data to CDS.

I have below code on app Onstart-
Set(varGIF,true);
//delete above

LoadData(
JourneyColletion,
"Saveitemstokeep",
true
);
LoadData(
JourneyColletion2,
"Saveitemstokeep2",
true
);
LoadData(
JourneyCollection3,
"Saveitemstokeep3",
true
);
//put code here
If(
Connection.Connected,//Route
ClearCollect(
RouteCollection,
Routes
);
SaveData(
RouteCollection,
"Saveitemstokeeproutelookup"
),
LoadData(
RouteCollection,
"Saveitemstokeeproutelookup",
true
);

);
If(
Connection.Connected,//Bus
ClearCollect(
BusCollection,
Buses
);
SaveData(
BusCollection,
"Saveitemstokeepbus"
),
LoadData(
BusCollection,
"Saveitemstokeepbus",
true
);

);
Set(varGIF,false)

 

Any help expert @WarrenBelz ?

1 ACCEPTED SOLUTION

Accepted Solutions
WarrenBelz
Super User III
Super User III

Hi @Anonymous ,

I will give you one piece of advice which others may disagree with, but if you are trying to automate the on-line/off-line switch over, the sorts of issues you are facing will arise. Shane Young has a good video on his process.

I have a couple of off-line capable apps and all user uploads of offline data are manual, with the user checking they have good signal at the time.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

 

View solution in original post

1 REPLY 1
WarrenBelz
Super User III
Super User III

Hi @Anonymous ,

I will give you one piece of advice which others may disagree with, but if you are trying to automate the on-line/off-line switch over, the sorts of issues you are facing will arise. Shane Young has a good video on his process.

I have a couple of off-line capable apps and all user uploads of offline data are manual, with the user checking they have good signal at the time.

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (2,726)