Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Answered

PCF Dataset.Columns API return empty

(0) ShareShare
ReportReport
Posted on by 41

Hi team,

 

I created a PCF control along with Dataset type template, when I use Dataset.columns API to retrieve columns in Test Environment (Debug mode), it shows the column names array. But when I deployed this PCF control into a true Power Apps environment, it returns empty array.

Bug.PNG

 

The Dataset.records and Dataset.sortedRecordIds API works well as expected, just the Dataset.columns API not working as expected.

 

Best Regards,

Kris

  • Dai_Xin Profile Picture
    41 on at
    Re: PCF Dataset.Columns API return empty

    Hi @DianaBirkelbach ,

     

    That's great. Thanks for your sharing, it make sense to me. I also found a workaround for this bug - add columns input property for configuring dataset columns.

     

    Best Regards,

    Kris

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at
    Re: PCF Dataset.Columns API return empty

    Hi @Dai_Xin , 

    I've noticed the same about 10 days ago with all my Dataset PCFs.
    It's a bug. Microsoft published a workaround in the Platform know issues.

     https://admin.powerplatform.microsoft.com/knownissues/4164502

     

     

     

  • Dai_Xin Profile Picture
    41 on at
    Re: PCF Dataset.Columns API return empty

    Hi @Michaelfp ,

     

    Yes, also tried in different environments, same issue.

     

    Best Regards,

    Kris

  • MichaelFP Profile Picture
    1,831 Super User 2025 Season 1 on at
    Re: PCF Dataset.Columns API return empty

    If you deploy the control in other environment it show correct?

  • Dai_Xin Profile Picture
    41 on at
    Re: PCF Dataset.Columns API return empty

    Hi @Michaelfp ,

     

    Yes. Just as the screenshot I provided, the Dataset.records API could return proper values as expected except the Dataset.columns API

     

    Best regards,

    Kris

  • MichaelFP Profile Picture
    1,831 Super User 2025 Season 1 on at
    Re: PCF Dataset.Columns API return empty

    in you target environment did you enable PCF Components on canvas app?

    Michaelfp_0-1718105885161.png

    If my answer helped you, please give me a thumbs up (👍). If solve your question please mark as solution ✔️. This is help the community.

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

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

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 > Power Apps - Power Apps Pro Dev & ISV

#1
WarrenBelz Profile Picture

WarrenBelz 85 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 65 Super User 2025 Season 1

#3
mmbr1606 Profile Picture

mmbr1606 55 Super User 2025 Season 1

Overall leaderboard