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 / Patch an offline colle...
Power Apps
Unanswered

Patch an offline collection into a Dataverse table once connected to the internet.

(0) ShareShare
ReportReport
Posted on by 51

I am trying to patch an offline collection into my Dataverse table once connected to the internet. In power apps editor it does not show any errors, but in the phone app it does? The error on the phone app displays as "Network error when using Patch Function. The requested operation is invalid." Here is my patch code that I am using. Any help would be deeply appreciated. Thanks in advance.

 

ForAll(myOfflineFuelRecords,
 Patch(
 EquipmentDailyFuelLogs,
 Defaults(EquipmentDailyFuelLogs),
 {
 xxxxx_title: Title,
 xxxxx_assetphoto: AssetPhoto,
 xxxxx_dateandtime: DateAndTime,
 xxxxx_equipmentcategory: EquipmentCategory,
 xxxxx_equipmentdescription: EquipmentDescription,
 xxxxx_fueltype: FuelType,
 xxxxx_gallonsofcoolant: GallonsOfCoolant,
 xxxxx_gallonsofdef: GallonsOfDEF,
 xxxxx_gallonsoffuel: GallonsOfFuel,
 xxxxx_gallonsofhydoil: GallonsOfHydOil,
 xxxxx_gallonsofmotoroil: GallonsOfMotorOil,
 xxxxx_hoursmileage: HoursMileage,
 xxxxx_jobsitechoices: JobsiteChoices,
 xxxxx_loclatitude: locLatitude,
 xxxxx_loclongitude: locLongitude,
 xxxxx_otherjobsite: OtherJobsite,
 xxxxx_serialnovin: SerialNoVIN,
 xxxxx_servicetech: ServiceTech
 }
 )
);

 

Categories:
I have the same question (0)
  • skydivertak Profile Picture
    64 on at

    Have you solved this yet? I get a similar issue (except I'm saving from an offline Collection to SPO), but I am trying to use Lookup() instead of Defaults, in order to make sure that it is patching, rather than trying to create new records. 

    I run the app in the studio and get the same error, just on the Lookup() function. After the run (I am using the Alt-key to invoke my submit button, so I see the error show up in the code editor right away.)

  • Patrick-Stamper Profile Picture
    51 on at

    So, I ended up deleting the Dataverse Table, rebuilt it and connected the new table into my app, everything works fine now. Not really sure what the issue was. Send me your code and I will see if I can help you with your edit patch.

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 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 181 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 112 Super User 2026 Season 2

Last 30 days Overall leaderboard