Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
ERing
Post Partisan
Post Partisan

Error when getting data using SQL statement from Snowflake?

I'm trying to bring data into my Power BI model from Snowflake using a SQL statement. I've entered the Server, Warehouse, and Database along with the SQL statement, but it keeps returning the error message below.

This is the SQL statement.

select os.*,oa.* FROM PRODUCTION.MARKETING.DIMENSONS_ORDERSSUMMARY OS
inner join PRODUCTION.MASTER_DIMENSIONS.DIMENSIONS_ORDERAPPOINTMENTS oa on oa.order_id=os.fk_order_id and oa.location_type=os.location where os.FK_ORDER_ID is not null and oa.status_=1

Can anyone help me understand what is causing this?

1.png

1 ACCEPTED SOLUTION
divyed
Super User
Super User

Hello @ERing ,

 

This is giving error while connecting. You are selecting everything from both the tables (os.* and oa.*) and most probably "Field ID " is present in both the table. I would suggest selecting required columns only with corresponding reference like oa.order_ID as Order_ID, os.location as Location etc.

I hope this helps . 

 

Did I solve your problem, if yes please mark this as solution.

 

Cheers

LinkedIn : https://www.linkedin.com/in/neeraj-kumar-62246b26/

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @ERing ,

 

Did divyed and danextian  suggestions solve your confusion, and if the problem has been solved, you can mark the standard answer in your reply to help other members find the answer faster. If not, please point it out.

 

Best Regards,

Neeko Tang

divyed
Super User
Super User

Hello @ERing ,

 

This is giving error while connecting. You are selecting everything from both the tables (os.* and oa.*) and most probably "Field ID " is present in both the table. I would suggest selecting required columns only with corresponding reference like oa.order_ID as Order_ID, os.location as Location etc.

I hope this helps . 

 

Did I solve your problem, if yes please mark this as solution.

 

Cheers

LinkedIn : https://www.linkedin.com/in/neeraj-kumar-62246b26/
danextian
Super User
Super User

That is normally the error if you're trying to create a column which name already exists? Are you building the query in the query editor from scratch  or just editing the source applied step?





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

I am using the "Get Data" option.

 

2.png

What I meant was is that an existing query and you're simply editing the connection or a totally new one without additional steps other than the source and navigation?





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.