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 Automate / "On Power BI Button Cl...
Power Automate
Suggested Answer

"On Power BI Button Clicked" process step error-outputs Null

(0) ShareShare
ReportReport
Posted on by 2
I have a Power BI file with a download button to save the data to a CSV. Yes, I know you can click the "More Options" on the visual but I want this to be more user friendly.
 
I have the desired columns in the Visualization well (see second screen shot).
 
When I run the flow, I get this error:  The 'from' property value in the 'table' action inputs is of type 'Null'. The value must be of type 'Array'.
 
 
Categories:
I have the same question (0)
  • lbendlin Profile Picture
    8,655 Super User 2026 Season 1 on at
    You have accidentally switched to the "New Designer".  That will break the Power BI integration.  Revert back to the legacy designer and - if necessary - remove and re-add the trigger.
  • Suggested answer
    Riyaz_riz11 Profile Picture
    4,116 Super User 2026 Season 1 on at
    HI,

    Make sure your Power BI button is configured to pass the table data

    In Power BI Desktop:

    1. Select the Button.

    2. Go to the Action pane.

    3. Under Type, confirm:

       Power Automate.

    4. Under Data, make sure:

      • You have a table or visual selected in the Data dropdown.

      • Fields to pass are selected (columns).

     If you don’t select fields to pass, the trigger gets {}.

     Use the correct dynamic content

    In your flow:

    • Instead of using Body or rows blindly, inspect the trigger outputs after a test run:

      • Click Show raw outputs.

      • Look for where your array is actually coming in.

    • If you see rows, your Create CSV Table should be configured:

      • From: rows

     Example of the correct setup:

    Trigger:

    On Power BI button clicked

    Create CSV Table:

    • From: rows (or triggerBody()?['rows'] in expressions)

    Defensive check before creating the CSV

    Even if you fix the data context, sometimes users click the button with no rows selected.

     To prevent the null error, add a Condition:

    Condition:

    length(triggerBody()?['rows']) is greater than 0

    If Yes:

    • Create CSV Table

       If No:

    • Send a notification or do nothing

     Example expression in the Condition:

    length(triggerBody()?['rows'])

    Test with sample data

    Before finalizing:

    1. In Power BI Desktop, select a few rows in the visual.

    2. Click the button.

    3. Go back to Flow Run History:

      • Verify the rows array has data.

    If I have answered your question, please mark it as the preferred solution ✅ . If you like my response, please give it a Thumbs Up 👍.
    Regards,
    Riyaz

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

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 550

#2
Valantis Profile Picture

Valantis 390

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard