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 / Collection columns emp...
Power Apps
Answered

Collection columns empty when importing from SQL

(0) ShareShare
ReportReport
Posted on by 74

When I import a table or view from a SQL server (on prem) Some of the columns in the collection are empty when using the designer.  But when I publish the app and run it, the data shows up.

This is driving me crazy because I have "If IsBlank" conditions in a gallery and they are always blank even though I know they are not.

Is this a systemic issue or isolated?

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,925 on at

    Can you show the "If IsBlank" formula?

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Capt_Ron Profile Picture
    74 on at

    The issue is not with the IsBlank function.

    Label Text field = If(IsBlank(ThisItem.Category),"No Category Chosen",ThisItem.Category)  (The column in the database would be NULL if there was no data)

     

    After I import the data into the collection and I go to View Collections I see the the collection and the 1st 5 records.  Most off the columns in the collection are empty even though the database has data in those columns.

     

    I did look in the Settings | Advanced Settings and saw that this was enabled:

    Explicit Column Selection

     

    So I am going to disable it and see if that fixes the issue.

  • eka24 Profile Picture
    20,925 on at

    To further clarify:

    1. You import from SQL to Collection

    2. Check collection, you confirmed that some columns are blank

    3. Now you want to use the formula
       If(IsBlank(ThisItem.Category),"No Category Chosen",ThisItem.Category)----Where do you want to use the Formula? Gallery or another collection?

    if you are using it in another collection, please state the formula

     

    If Gallery, then the formula is ok:

    Blank.JPG

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • Capt_Ron Profile Picture
    74 on at

    That is correct.

    The formula is in a label in a gallery.

  • Verified answer
    Capt_Ron Profile Picture
    74 on at

    Issue has been resolved.

     

    This behavior is caused by:

     Settings | Advanced Settings Explicit Column Selection being enabled.

     

    This feature only pulls in the columns you are using.  So if you are starting out, you get no columns.  I do not know how this got turned on.

    It is off and all my data is now showing up.

     

    Thanks

    Ron

  • eka24 Profile Picture
    20,925 on at

    As you can see on the screenshot i posted, it works. If you are having issues, take a screenshot of the Collection and the Gallery and post.

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 358 Most Valuable Professional

#2
11manish Profile Picture

11manish 214 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 185

Last 30 days Overall leaderboard