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 / App not patching field...
Power Apps
Unanswered

App not patching field to sharepoint list

(0) ShareShare
ReportReport
Posted on by

Hello,

I have an app which collects some pieces of information and then concurrently patches it over to two sharepoint lists. The formula is as follows:

 

 

Concurrent(
 If(
 tglDefuelRequest,
 Patch(
 FuelResources,
 LookUp(FuelResources, ID = Max(Filter(FuelResources, Title = "Reclaim", Location.Value = varLocation), ID)),
 {
 Fuel: Value(lblFuelRemaining.Text)
 }
 ),
 Patch(
 FuelResources,
 LookUp(FuelResources, ID = Max(Filter(FuelResources, Title = lblResource.Selected.Value, Location.Value = varLocation), ID)),
 {
 Fuel: Value(lblFuelRemaining.Text),
 CurrentMeter: Value(entMeterOut.Text)
 }
 )
),
Patch(
 varLocation,
 Defaults(varLocation),
 {
 Vehicle: entTailNumber.Text,
 Resource: entResource.Selected.Value,
 Initials: entInitials.Text,
 Used: Value(entFuelUsed.Text),
 MeterIn: Value(entMeterIn.Text),
 DiscrepancyReason: entDiscrepancy.Text,
 Defuel: If(entDefuelRequest, true, false),
 MeterOut: Value(entMeterOut.Text)
 }
)
);

 


What's weird is everything, every single time, in the second patch going to the list 'varLocation' gets posted with no problem.

The first patch to 'FuelResources' also works but not 100% of the time:

 

 {
 Fuel: Value(lblFuelRemaining.Text),
 CurrentMeter: Value(entMeterOut.Text)
 }

 

CurrentMeter will get posted with any issue, but Fuel: for some reason doesn't. Like so:

melovecookies_0-1695319706055.png

I even tried making a second column as text only instead of a number to see if it was an issue with sharepoint not accepting the datatype but even that sometimes doesn't always get posted either.


The formula for lblFuelRemaining is as follows:

 

If(
 tglDefuelRequest,
 Round(Value(LookUp(FuelResources, ID = Max(Filter(FuelResources, Title = "Reclaim", Location.Value = varLocation), ID), Fuel) + Abs(lblFuelUsed.Text)), 1),
 Round(Value(LookUp(FuelResources, ID = Max(Filter(FuelResources, Title = lblResource.Selected.Value), ID), Fuel) - entFuelUsed.Text),1)
)

 

It basically looks up what the current volume is in the truck, subtracts the amount of fuel dispensed from that and then displays the value to the user. 

As far as I know (at least nobody has reported it) no errors are displayed during the patching process. So I'm not really sure what's going on and why that one single field doesn't get posted while everything else does.

Any help will be greatly appreciated! Thank you!

Categories:
I have the same question (0)

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 June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 316 Most Valuable Professional

#2
11manish Profile Picture

11manish 242

#3
Valantis Profile Picture

Valantis 198

Last 30 days Overall leaderboard