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 / ComboBox deletes few c...
Power Apps
Answered

ComboBox deletes few columns from my collection

(0) ShareShare
ReportReport
Posted on by 7
Hi all,

I've got quite a problem in my project. I'm getting data from Excel file to a collection - colExcelErrors.
 
--- code for getting data to colExcelErrors
ClearCollect(
        colExcelErrors,
        AddColumns(
            Filter(
                Query1,
                Country = Country
            ),
            DisplayProcess,
            Proces,
            DisplayError,
            Error
        )
    )
---
 
The columns are:
Enabled - boolean
Active_since - DateTime
Active_until - Datetime
Error - String
Error_ID - Number
Proces - String
Weight - Decimal
 
additionally I'm adding two columns (needed for logic outside of the problem) :
DisplayError - String - the same value as Error
DisplayProcess - String - the same value as Proces
 
Then I'm using Form and one of the DataCards has a ComboBox with 'Items' property set to the mentioned collection. DisplayFields is set to "DisplayError".

When I'm checking the collection in the Variables tab it has got all the columns that I need but when I check the record selected in the ComboBox it only has these columns:
Active_since
Active_until
DisplayError
Proces
Weight

The Weird part is that it doesn't have Error but has DisplayError, it's the other way around for Proces. It is always selecting these columns - I've tried to create a sub collection for filtering and nothing changed.

I will be grateful for any ideas :)

Best Regards,
Mateusz
I have the same question (0)
  • Verified answer
    11manish Profile Picture
    2,487 on at
    This is most likely not a problem with your collection. The collection appears to be correct.
     
    The issue is that ComboBox.Selected is returning a projected/optimized record containing only some fields, which is a known Power Apps behavior.
     
    The most reliable solution is to use a unique key (such as Error_ID) and perform a LookUp() back against colExcelErrors whenever you need the full record.
     
    This avoids relying on the schema returned by ComboBox.Selected.
  • Suggested answer
    CU19111450-0 Profile Picture
    7 on at
    Hi @11manish,

    Thanks a lot for the answer. You are correct and this was the issue. 

    Due to some additional logic I needed to create an If in the "Items" property of the ComboBox and it resulted in the "optimized" record being returned...

    In my case I created a 'joint' collection that had columns from both datasources and used this collection as a "unified" data source form the ComboBox - it also worked.

    It is a little unnerving that this is a problem, but well. Thanks again!

    Best Regards,
    Mateusz

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

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 430

#2
timl Profile Picture

timl 318 Super User 2026 Season 1

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard