Skip to main content

Notifications

Community site session details
Power Apps - Building Power Apps
Answered

“Getting Data” issue from first search, repeated requests ok

Like (0) ShareShare
ReportReport
Posted on 9 Oct 2021 09:56:25 by 15

Hi, I’ve got a strange issue with a form.

 

I’m scanning a QR code and searching the result to find an item in a SharePoint list. On another screen a gallery finds the item, shows some details about the list item. All of that works every time. On the same screen there is a form linked to show the gallery selected item and set to edit, which enables the user to update the list item.

 

The strange thing is, the form takes two attempts to work! First scan (I’ve also set up a manual test to rule out the QR code part), the screen is displayed and the gallery shows the item, but the form just says getting data, it doesn’t show any data. Go back, scan again and it works for that same item.

 

Any ideas? I’ve removed the form, the screen, reset up and the same thing happens.

 

Thanks.

  • Verified answer
    HB_UK_PL Profile Picture
    15 on 15 Oct 2021 at 08:26:21
    Re: “Getting Data” issue from first search, repeated requests ok

    I cracked this one myself in the end. I think there must be a bug of some sort as using the gallery selected option is hit and miss.

     

    In the end got the ID of the record from the QR search button, then passed that to the second screen and used that for the form. Seems a lot more reliable. Hopefully the more simple method of selected record will be improved.

  • HB_UK_PL Profile Picture
    15 on 10 Oct 2021 at 20:08:03
    Re: “Getting Data” issue from first search, repeated requests ok

    That’s the name of the gallery, and it’s a SharePoint list.

     

    thank you.

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 10 Oct 2021 at 18:42:58
    Re: “Getting Data” issue from first search, repeated requests ok

    @HB_UK_PL 

    Is 'Make-Up_Selected_Record_Gal' a variable or the actual name of the gallery? Is the Items property of that gallery a collection or the actual SharePoint list?

     

  • HB_UK_PL Profile Picture
    15 on 10 Oct 2021 at 15:57:08
    Re: “Getting Data” issue from first search, repeated requests ok

    Thanks for the suggestion.

    I was getting errors with the formula, so researched your idea, and came up with :

     

    LookUp(Production_Data,ID='Make-Up_Selected_Record_Gal'.Selected.ID)

    But it still takes two goes to get the data in the form to show..

    HB_UK_PL_0-1633881386022.png

     

    To further prove the idea, from a text box on the same screen I put the following, which works every time to show the selected item in the gallery:

     

    LookUp(Production_Data,ID='Make-Up_Selected_Record_Gal'.Selected.ID,'Serial Number')

     

     

     

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 10 Oct 2021 at 13:35:05
    Re: “Getting Data” issue from first search, repeated requests ok

    @HB_UK_PL 

    Try

    Lookup(Production_Data, ID=Makeup_Selected_Record_Gal.ID) as item for the form if Makeup_Selected_Record_Gal is the name of the gallery. Otherwise use the name of the gallery instead of Makeup_Selected_Record_Gal 

  • HB_UK_PL Profile Picture
    15 on 10 Oct 2021 at 10:21:35
    Re: “Getting Data” issue from first search, repeated requests ok

    'Make-Up_Selected_Record_Gal'.Selected

    HB_UK_PL_0-1633861243175.png

    Thanks 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 09 Oct 2021 at 15:49:32
    Re: “Getting Data” issue from first search, repeated requests ok

    @HB_UK_PL 

    What is the Item property of the form?

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on 09 Oct 2021 at 15:49:24
    Re: “Getting Data” issue from first search, repeated requests ok

    @HB_UK_PL 

    What is the Item property of the form?

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,743 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,079 Most Valuable Professional

Leaderboard
Loading started
Loading started