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 / Issue with PowerApps C...
Power Apps
Answered

Issue with PowerApps Collection. Was working and now it's not!!

(0) ShareShare
ReportReport
Posted on by 294

Hi,

I have a navigation bar with its items collected in the OnStart property of the application. I have not touched this navigation bar or its collection for months as it was working perfectly. Today, it's not. The navigation bar shows different items each time I run the OnStart command in the app. My connection is very good and not timing out. I've refreshed my Dataverse Tables to make sure the collection is capturing the latest data. Still the same issue.

Is there something new that's happened that I'm not aware of? Is this a known bug? I was planning on taking the app into production soon, and need to understand what is driving this error before I roll out. Any advice/suggestions/insights would be very highly appreciated.

BR

Karim

Categories:
  • PriyankaGeethik Profile Picture
    3,320 Super User 2024 Season 1 on at

    Hi @karimabdelrazek ,

     

    Could you please share the code you check if there is any modification required in the code ?

  • karimabdelrazek Profile Picture
    294 on at

    Hi @PriyankaGeethik ,

    I've taken the source code from the navigation component, because I'm also facing the same issue when populating the menu items in the component library.

    In the below code, IconIDinCol refers to an image ID that is stored in a Dataverse Table.

     

    Table(
    {
    IconName: "Home",
    IconIDinCol: "Icon-ID-0020",
    IconToolTipText:"Home",
    Screen:App.ActiveScreen
    },{
    IconName: "Setup",
    IconIDinCol: "Icon-ID-0026",
    IconToolTipText:"Setup",
    Screen:App.ActiveScreen
    },{
    IconName: "VM & CI",
    IconIDinCol: "Icon-ID-0027",
    IconToolTipText:"VM & CI",
    Screen:App.ActiveScreen
    },{
    IconName: "SM",
    IconIDinCol: "Icon-ID-0028",
    IconToolTipText:"SM",
    Screen:App.ActiveScreen
    },{
    IconName: "CD",
    IconIDinCol: "Icon-ID-0029",
    IconToolTipText:"CD",
    Screen:App.ActiveScreen
    },{
    IconName: "Comms",
    IconIDinCol: "Icon-ID-0030",
    IconToolTipText:"Comms",
    Screen:App.ActiveScreen
    },{
    IconName: "CA NW",
    IconIDinCol: "Icon-ID-0031",
    IconToolTipText:"CA NW",
    Screen:App.ActiveScreen
    },{
    IconName: "MRA&R",
    IconIDinCol: "Icon-ID-0032",
    IconToolTipText:"MRA&R",
    Screen:App.ActiveScreen
    }
    )

  • karimabdelrazek Profile Picture
    294 on at

    This is the code that captures the Dataverse table items and stores into the collection during the OnStart. Each Table contains the settings for different controls and screen elements (e.g. labels, dropdowns, buttons, etc.)

    Concurrent(
    Clear(col_IconImageBrandAttributes);
    Collect(
    col_IconImageBrandAttributes,
    IconIMAGEENTITY
    ),
    Clear(col_FontStyle);
    Collect(
    col_FontStyle,
    FontStyleENTITY
    ),
    Clear(col_ButtonStyle);
    Collect(
    col_ButtonStyle,
    ButtonsENTITY
    ),
    Clear(col_TextInputStyle);
    Collect(
    col_TextInputStyle,
    TextInputFieldENTITY
    ),
    Clear(col_ImageBrandAttributes);
    Collect(col_ImageBrandAttributes,ImageEntity),
    Clear(col_DropdownStyle);
    Collect(col_DropdownStyle,DropdownENTITY),
    Clear(col_DatePickerStyle);
    Collect(col_DatePickerStyle,DatePickerENTITY)
    )

  • Verified answer
    karimabdelrazek Profile Picture
    294 on at

    @PriyankaGeethik . I found the culprit. I was getting the IconImage.Full whereas I should have been retrieving the IconImage.Value

    Everything is back to normal. I'm still not sure why this became a problem all of a sudden whereas it's been working flawlessly for some months now. Still, any insights on what may have triggered this failure would be much appreciated.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 360 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 325

#3
Mohsin Ali Profile Picture

Mohsin Ali 232

Last 30 days Overall leaderboard