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 / After Saving, screen g...
Power Apps
Unanswered

After Saving, screen goes gray...

(0) ShareShare
ReportReport
Posted on by 1,142

Thank you for taking the time to read my question.

 

I have a gallery with Text Inputs as a form. If the user starts, but does not complete the "form" they can use the back button and the values entered will be saved to a collection. If they then come back to the screen, the gallery Text Inputs are populated with the values from the collection and they can complete the fields. Once complete the save icon becomes usable and the data in the Text Inputs is Collected to a SharePoint List. Then if there are no errors, I clear the Collection of the partially completed record and start a new one so that the gallery has a record to show.

 

It was working but now when we save the screen just has the 3 dots moving left to right and the screen is a gray color and stays there. If I use the Monitor, I get no errors.

 

Any ideas on how to make this work again?

 

Thanks!

 

Here is my code for the save action:

If(
 IsEmpty(
 Errors(
 Collect(
 PelletingRecord,
 {
 Title: SelectedFacility.Text,
 PelletingLine: SelectedLine.Text,
 LotNumber: tiLotNumberPel.Text,
 TextureAndSize: Text(ddTextureAndSizePel.Selected.Value),
 ProductCode: tiProductCodePel.Text,
 ProductName: LookUp(
 Products,
 Title = tiProductCodePel.Text
 ).ProductName,
 CustomerName: tiCustomerNamePel.Text,
 Tonnes: Value(tiTonnesPel.Text),
 PrePBinNum: tiPrePBinNumPel.Text,
 LiquidsRequired: tiLiquidsRequiredPel.Text,
 LiquidsActual: tiLiquidsActualPel.Text,
 DownStreamKG: Value(tiDownStreamKGPel.Text),
 PorkMealYN: togPorkMealYNPel.Value,
 ManualDieFlushYN: togManualDieFlushYNPel.Value,
 SpeedHz: Value(tiSpeedHzPel.Text),
 ConditionerTempF: Value(tiConditionerTempPel.Text),
 PDIPercent: Value(tiPDIPel.Text),
 StartTime: DateTimeValue(
 Concatenate(
 Text(dpStartDatePel.SelectedDate),
 " ",
 If(
 Value(ddStartHourPel.SelectedText.Value) > 11,
 Text(Value(ddStartHourPel.SelectedText.Value) - 12),
 ddStartHourPel.SelectedText.Value
 ),
 ":",
 ddStartMinutePel.SelectedText.Value,
 If(
 Value(ddStartHourPel.SelectedText.Value) > 11,
 " PM",
 " AM"
 )
 )
 ),
 StopTime: DateTimeValue(
 Concatenate(
 Text(dpStopDatePel.SelectedDate),
 " ",
 If(
 Value(ddStopHourPel.SelectedText.Value) > 11,
 Text(Value(ddStopHourPel.SelectedText.Value) - 12),
 ddStopHourPel.SelectedText.Value
 ),
 ":",
 ddStopMinutePel.SelectedText.Value,
 If(
 Value(ddStopHourPel.SelectedText.Value) > 11,
 " PM",
 " AM"
 )
 )
 ),
 RunTime: lblRunTimePel.Text,
 LoadOutBinNumber: tiLoadoutBinPel.Text,
 PelletingComments: tiCommentsPel.Text,
 OperatorsInitials: tiOperatorInitialsPel.Text,
 Medication: Text(
 Concat(
 Filter(
 colPelMed,
 Facility = SelectedFacility.Text,
 Line = SelectedLine.Text
 ),
 Med & ","
 )
 ),
 ReportedDate: DateTimeValue(
 Text(
 Now(),
 "[$-en-US]yyyy-mm-dd hh:mm:ss AM/PM"
 )
 ),
 TimeZoneOffset: -TimeZoneOffset(Now()),
 Hardness: Value(tiHardnessPel.Text)
 }
 )
 )
 ),
 Notify(
 "Pelleting Record Saved",
 NotificationType.Success
 ),
 Notify(
 "Save Record action failed.",
 NotificationType.Error
 )
);
If(
 IsEmpty(Errors(PelletingRecord)),
 RemoveIf(
 colPelletRecords,
 Facility = SelectedFacility.Text,
 Line = SelectedLine.Text
 )
);
If(
 IsEmpty(Errors(PelletingRecord)),
 RemoveIf(
 colPelMed,
 Facility = SelectedFacility.Text,
 Line = SelectedLine.Text
 )
);
If(
 IsEmpty(Errors(PelletingRecord)),
 Collect(
 colPelletRecords,
 {
 Facility: SelectedFacility.Text,
 Line: SelectedLine.Text
 }
 )
);
Set(
 varProdNamePel,
 ""
);
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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 534

#2
WarrenBelz Profile Picture

WarrenBelz 416 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 306

Last 30 days Overall leaderboard