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 / Missing column names i...
Power Automate
Answered

Missing column names in Write to Excel worksheet from SQL data in PAD

(0) ShareShare
ReportReport
Posted on by 2

Hi Folks,

 

When I am trying to write the excel file from SQL query execute step in Power Automate desktop, column headers/names are missing. It is inserting the data from first row. I am performing these actions. Can anyone guide me how to add column names in Excel sheet.

 

rsinha_0-1707161173614.png

 

  • ryule Profile Picture
    929 Super User 2024 Season 1 on at

    Maybe I'm not fully understanding, but shouldn't the Excel file already have the column names? Or could you add them to the sheet before the "Write to Excel worksheet" action you already have?

  • Verified answer
    Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    The column names are not part of the data in your data table. You need to write them separately. If you want to do that, write %QueryResult.ColumnHeadersRow% into the first row in your Excel via a separate Write to Excel worksheet action. Then write the %QueryResult% into the second row.

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 423

#2
11manish Profile Picture

11manish 308 Super User 2026 Season 2

#3
M Bilal Khan Profile Picture

M Bilal Khan 177

Last 30 days Overall leaderboard