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.
The Dataset.records and Dataset.sortedRecordIds API works well as expected, just the Dataset.columns API not working as expected.
Best Regards,
Kris
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
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
If you deploy the control in other environment it show correct?
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
in you target environment did you enable PCF Components on canvas app?
If my answer helped you, please give me a thumbs up (👍). If solve your question please mark as solution ✔️. This is help the community.
WarrenBelz
85
Most Valuable Professional
Michael E. Gernaey
65
Super User 2025 Season 1
mmbr1606
55
Super User 2025 Season 1