web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / SQL Datasource, column...
Power Apps
Unanswered

SQL Datasource, column data is not showing when "Disable explicit column selection" is off

(1) ShareShare
ReportReport
Posted on by 2
I have an issue with an existing app when "Disable explicit column selection" is off
 
I'm using a gallery that is based off a view in SQL.
And upon clicking a button in the gallery, it runs the function:  ClearCollect(SelectedActionLog,ThisItem);
However, the collection have columns where data is empty when "Disable explicit column selection" is off.
 
I see that this ""Disable explicit column selection" setting is retired. What does this mean for my app? and what is the work around?
Categories:
I have the same question (0)
  • Suggested answer
    Michael E. Gernaey Profile Picture
    53,335 Super User 2025 Season 2 on at
    Hi
     
    What permissions do they users have, as they go through the gateway?
     
    You may need to run those queries as either a) each user has the proper permissions or b) as a service account, where the users STILL need a license, but that you can simply have a Service Account do the queries so you only need to give them the required privs, which they do not have since that is off.
     
    That's what I would do
  • Suggested answer
    timl Profile Picture
    36,383 Super User 2025 Season 2 on at
    Explicit column selection is a performance feature . 
     
    With explicit column selection enabled, Power Apps will retrieve only the data that corresponds to columns that are actually shown in your gallery. 
     
    This is the reason why your call to ClearCollect, includes empty columns. 
     
    To resolve this, you can look up the record rather than reference ThisItem
     
    ClearCollect(SelectedActionLog,
                 LookUp(YourSQLView, PrimaryKeyCol=ThisItem.YourPrimaryKeyCol)
    );
     

    Alternatively, you can modify the Items property of your gallery and replace the reference to your SQL view to with a call to ShowColumns that explicitly specifies the columns that you want to retrieve.
     
    ShowColumns(YourSQLView, Column1, Column2, Column3, etc) 
     
     
     
     
     
     

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard