cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
iwonder
Post Prodigy
Post Prodigy

Black Screen OnSelect

Thank you for taking the time to read my question.

 

I have an app that saves data to a SharePoint list. It was working until yesterday. Now when we try to save the data, the data is saved but the app screen goes black and the ant trail at the top keeps going over and over and we have to close the PowerApps Player(?) on our PC's. It does the same thing if the app is launched in a web browser. I turned on monitoring and launched the app from the monitor. No errors reported but the screen there too went gray.

 

I also tried republishing the app, but same issue.

 

Why is this happening and how do I fix it?

 

BlackScreen.png

 

1 ACCEPTED SOLUTION

Accepted Solutions

@iwonder Go to the PA Admin Centre

CNT_0-1621973056824.png

Select Help + Support and then New Support Request

CNT_1-1621973176801.png

 

Please remember to give a 👍 and accept the solution as it will help others in the future.

 

View solution in original post

6 REPLIES 6
CNT
Super User
Super User

@iwonder MS was famous for Blue Screens now Black Screen!

Could you share the code that gets executed just before this happens.

Hi @CNT 

 

Here is the code. It was working last week.

 

If(
    IsEmpty(
        Errors(
            Collect(
                MixingRecord,
                {
                    Title: SelectedFacility.Text,
                    MixingLine: SelectedLine.Text,
                    LotNumber: tiLotNumMix.Text,
                    ProductCode: tiProdCodeMix.Text,
                    ProductName: tiProductNameMix.Text,
                    CustomerName: tiCustNameMix.Text,
                    Tonnes: Value(tiTonnesMix.Text),
                    StartTime: DateTimeValue(
                        Concatenate(
                            Text(dpStartDateMix.SelectedDate),
                            " ",
                            If(Value(ddStartHourMix.SelectedText.Value) > 11,Text(Value(ddStartHourMix.SelectedText.Value) - 12),ddStartHourMix.SelectedText.Value),
                            ":",
                            ddStartMinuteMix.SelectedText.Value,
                            If(Value(ddStartHourMix.SelectedText.Value) > 11," PM"," AM")
                        )
                    ),
                    StopTime: DateTimeValue(
                        Concatenate(
                            Text(dpStopDateMix.SelectedDate),
                            " ",
                            If(Value(ddStopHourMix.SelectedText.Value) > 11,Text(Value(ddStopHourMix.SelectedText.Value) - 12),ddStopHourMix.SelectedText.Value),
                            ":",
                            ddStopMinuteMix.SelectedText.Value,
                            If(Value(ddStopHourMix.SelectedText.Value) > 11," PM"," AM")
                        )
                    ),
                    RunTime: tiRunTimeMix.Text,
                    PorkMealYN: togPorkMealYNMix.Value,
                    AutoFlushYN: togAutoFlushYNMix.Value,
                    PrePBinNumber: tiPrePBinMix.Text,
                    LoadOutBinNumber: tiLoadoutBinMix.Text,
                    ReportDate: DateTimeValue(
                        Text(
                            Now(),
                            "[$-en-US]yyyy-mm-dd hh:mm:ss AM/PM"
                        )
                    ),
                    OperatorInitials: tiOpInitialsMix.Text,
                    MixingComments: tiCommentsMix.Text,
                    Medication: Text(
                        Concat(
                            Filter(
                                colMixingMed,
                                Facility = SelectedFacility.Text,
                                Line = SelectedLine.Text
                            ),
                            Med & ","
                        )
                    ),
                    TimeZoneOffset:-TimeZoneOffset(Now())
                }
            )
        )
    ),
    Notify(
        "Pelleting Record Saved",
        NotificationType.Success
    ),
    Notify(
        "Save Record action failed.",
        NotificationType.Error
    )
);
If(
    IsEmpty(Errors(MixingRecord)),
    RemoveIf(
        colMixingRecords,
        Facility = SelectedFacility.Text,
        Line = SelectedLine.Text
    )
);
If(
    IsEmpty(Errors(MixingRecord)),
    RemoveIf(
        colMixingMed,
        Facility = SelectedFacility.Text,
        Line = SelectedLine.Text
    )
);
If(
    IsEmpty(Errors(MixingRecord)),
    Collect(
        colMixingRecords,
        {
            Facility: SelectedFacility.Text,
            Line: SelectedLine.Text
        }
    )
);

 

Thanks

Update:

 

I took the code above and put it on a temp button and it all works fine.

 

Could the icon that I have the code linked to at the OnSelect action be corrupt?

 

Update 2: I took the code on the button and added a new Save icon (where the code is linked to: OnSelect) and when I click the button, the code works, when I click the new Save icon, I get the black screen again.

 

So it's something with the icon I think

 

ButtonWorks.png

 

Thanks

@iwonder That's really strange. I tried a Patch both from Button and an Icon and I didn't get the Black Screen. Looks like something is corrupted in your App. I would suggest to raise a ticket with MS as they can go through the Network Trace etc., to find what's really happening.

Hope that helps!

Thanks @CNT 

 

Where do I log a ticket with MS? I've never done that before.

@iwonder Go to the PA Admin Centre

CNT_0-1621973056824.png

Select Help + Support and then New Support Request

CNT_1-1621973176801.png

 

Please remember to give a 👍 and accept the solution as it will help others in the future.

 

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (1,189)