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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Mai_Tran
Regular Visitor

Expression.Error: The field of the record wasn't found

Hi guys

 

I have problem when deleting column in Power Query.

Here are my columns in table 

Mai_Tran_0-1728625651421.png

 

"Index" column is created by adding index column button in PQ. Now I want to delete it but each time I try to delete column by using function = Table.RemoveColumns(#"Sorted Rows",{"Index"})

 

It keeps notifying me that 

 

Expression.Error: The field 'Index' of the record wasn't found.
Details:
NGÀY=01-Jan-25
FLT_DATE=1
FLT_MONTH=1
FLT_YEAR=2025


When I try on deleting another columns, it is still ok. 

Could you guys tell me know what happens with this error notifying?

 

 

5 REPLIES 5
Anonymous
Not applicable

Hi @Mai_Tran ,

 

Please consider providing the full code, which you can find in the Advanced Editor. For private information such as data sources, you can mask them.

vcgaomsft_1-1728869020227.png

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution  to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Omid_Motamedise
Super User
Super User

Can you provide the whole code of your query?

If my answer helped solve your issue, please consider marking it as the accepted solution. It helps others in the community find answers faster—and keeps the community growing stronger!
You can also check out my YouTube channel for tutorials, tips, and real-world solutions in Power Query with the following link
https://youtube.com/@omidbi?si=96Bo-ZsSwOx0Z36h
Anonymous
Not applicable

You can just right click on the column and right click, select delete.

But I'm guessing you are referring to the wrong step in your function, as the error is telling you what fields are in the record as of the #"Sorted Rows" step, which doesn't match what we are looking at.

 

--Nate

I have try right-click but it doesn't work at all. Every other columns can be deleted except this column. So I don't think that I refer to wrong step 

uzuntasgokberk
Super User
Super User

Hello @Mai_Tran,

 

Have you tried to delete the step in advance editor and apply it?

 

Kind Regards,
Gökberk Uzuntaş

📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!

🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors