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 Automate
Unanswered

SQL Join Statement

(0) ShareShare
ReportReport
Posted on by 2

Dear Team,

 

We are trying to create a flow using PAD, in this flow, we are reading excel file via SQL connection. We have requirement to use a left join and a full join in "Execute SQL Command" actions, but in both statements we are getting errors. Any suggestions, inputs or help will be highly appreciated. 

 

Few Questions 

1. There is no syntax error in either statements but still failing.

2. In left join, if there are 100% matches between 2 table, then the join is working fine. But if there are different set of data in 2 tables, it is throwing type mismatch error. Why is type mismatch happening for disjoint data set but not for identical data sets.

 

 

rohitgrg_0-1629399567140.png

rohitgrg_1-1629399633432.png

 

Thanks,

Rohit 

 

I have the same question (0)
  • NikosMoutzou Profile Picture
    Microsoft Employee on at

    Hello @rohitgrg !

    Could you please check whether the SQL statement with the left join generates any error when is not executed in Power Automate Desktop (in order to ensure that error is not related to the SQL statement itself but to Power Automate Desktop specifically)?

  • rohitgrg Profile Picture
    2 on at

    @NikosMoutzou Thanks for your inputs. Left join issue is resolved as there was some type mismatch in source excel file. But full join is still giving same error. I am not an expert in SQL but the statement seems correct for full join. Also can you please suggest how can we get headers for the sql output while fetching data from excel.

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 Automate

#1
David_MA Profile Picture

David_MA 312 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 154 Super User 2026 Season 2

#3
trice602 Profile Picture

trice602 143 Super User 2026 Season 2

Last 30 days Overall leaderboard