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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Tom_Y
Advocate II
Advocate II

Error when duplicate query

Anyone encounter the problem in power query editor when you right click and duplicate a query, and it says key already exisit.

When you click cancel, the whole power query still collapse and you have to unsave and close it.

 

It starts to happen today when version updated to Version: 2.144.679.0 64-bit (June 2025).

 

Instead, it still works when you copy all code from the query and paste it into a blank query.

1 ACCEPTED SOLUTION
pankajnamekar25
Super User
Super User

Hello @Tom_Y 

When you duplicate a query, Power BI shows an error like:

“Key already exists”

Then it freezes or crashes, forcing you to exit Power Query without saving changes.

 

Try this

 

Open the query you want to duplicate.

Go to Advanced Editor.

Copy all the M code.

 In Power Query, go to Home > New Source > Blank Query.

Open Advanced Editor of the new query and paste the code.

 

 

 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

View solution in original post

4 REPLIES 4
v-echaithra
Community Support
Community Support

Hi @Tom_Y ,

As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,
Chaithra.

v-echaithra
Community Support
Community Support

Hi @Tom_Y ,

We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,
Chaithra.

v-echaithra
Community Support
Community Support

Hi @Tom_Y ,

Thank you @pankajnamekar25  for giving your inputs.

We wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.

 

Regards,
Chaithra.

pankajnamekar25
Super User
Super User

Hello @Tom_Y 

When you duplicate a query, Power BI shows an error like:

“Key already exists”

Then it freezes or crashes, forcing you to exit Power Query without saving changes.

 

Try this

 

Open the query you want to duplicate.

Go to Advanced Editor.

Copy all the M code.

 In Power Query, go to Home > New Source > Blank Query.

Open Advanced Editor of the new query and paste the code.

 

 

 Pankaj Namekar | LinkedIn

If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.