Forum Discussion
How to remove error rows ? Remove error option not working
- Anonymous7 years ago
Hi lavdeep,
This one stumped me for a while I was. I would transform data to eliminate errors and it just didn't take. Eventually this is how I solved it:
1) Make sure you are in the Power Query Editor
2) Go to the "Transform" tab
3) Select the column you want to modify
4) Look for "Replace Values", and more importantly, the little down arrow next to it. It's in the sub-section titled "Any Column"
5) Click the down arrow next to "Replace Values" and you'll see another option, "Replace Errors"
If you click that it should produce a dialogue which allows you to replace any errors in that column (or columns, if you select multiple) with a value of your choosing.
I appreciate this solution, however, unfortunately it is still not solving my problem. I have a row deep in the dataset (row 3239, far beyond the 1000 row preview) that gives an error across all columns. The error shows the following:
Expression.Error: We cannot convert the value "University of Arizon..." to type Table.
Details:
Value=University of Arizona
Type=[Type]
I have tried removing rows with errors, replacing rows with errors, and even deleting individual columns until theres nothing left. I believe this is truly a defective row and want to get rid of it entirely but nothing is working. Any other suggestions? Could I write a conditional to remove any rows that contain "University of Arizona"?