Forum Discussion
Error on Scheduled Refresh: Table contains blank values
I have a dashboard scheduled to refresh daily, but each time I get an error that says:
"Column in Table contains blank values and this is not allowed for columns on the one side of many-to-one relatioship for coulmns that are used as the primary key of a table."
I went to this table and edited the query to Remove Blank Rows, but I still get the error every time I try to refresh the data.
Anyone have any suggestions or know what the problem is?
19 Replies
- vprady
Advocate I
I found on the PowerBI desktop application
1. Click on "Edit Queries"
Step 2 - Select the table that has the error.
Step 3 - Select column which gives the error and in drop down filter select "Remove Empty"
Click Close and Apply and Refresh again.
This solved my problem and addressed all my refresh errors through this.
Excuse for any typos or errors, this is first time i am posting a solution, I am usually on the other end, but for this realized there are many people like me. :smileyhappy:
- fenixen
Advocate II
EDIT: I recreated the calendar table in power bi desktop, built everything identical, works fine.
The difference is that the old one was converted from a excel file..
This did not work for me. I get the error on my calendar table and a autogenerated calendar doesn't have any blanks of course.
The report works just fine in power bi desktop, but when refreshing online in powerbi.com i get the error.. strange..
Error message: http://imgur.com/a/ZonnT
Data model: http://imgur.com/a/Kixyw
Just to really confirm to you guys that i don't have blanks: The calendar table has 366 rows, which is correct for a 2016 table.
I double checked that the "Many" side of the relationships dont have blanks either.
I even added the "remove empty" on the columns, even though there were no blanks. Same error.
Could it be some sort of location/locale bug in power bi on web? (norwegian)
- AnonymousNot applicable
I was getting the same error message - this solution worked for me.
Thank you!
- Greg_Deckler
Community Champion
Select the column that is part of the one-to-many relationship. Choose "Replace values". For the value to find, don't type anything. For the replacement value, type "BLANK" or something depending on data type. This will replace blank values in the column with whatever you put in. Then you should not have any real blanks.
- amitbansalNew Member
I am also facing same error when refreshing data, were you able to find any solution/workaround to the problem.
Kindly share.
As suggested I replaced blank values with BLANK but that did not solve anything,
- guisinFrequent Visitor
I was able to resolve the issue by :
1. Removing whatever the new calculated column you've created
2. Process All to refresh the Meta data of the DB
3. Re-create with no blank value
So basically just a glitch, in my opinion
- Devtr
Helper III
For some users, this might be helpful who are simply using an Excel table.
After entering data in the table and hitting the tab key will add another row.
Just delete that.
- dennisbraunFrequent Visitor
Thank you so much! That hint saved my day 🙂
- cwayne758
Helper IV
Experienced this this morning for some reason.
Try going to the table referenced in the Error message, then sort your columns in either ascending/descending order. Like me, you may find that your column does actually contain a blank. (!)
Hope that helps!
- alexbarNew Member
Hi,
Having the same issue, replaced all the blanks with "BLANK" string. Verified that there are no empty values.
However the scheduled refresh fails with the same error.
Have anyone found a solution/workaround?
Thanks,
Alex.
- khaled_csFrequent Visitor
I had the same issue I did process clear then recalc then full
and it works fine for me
because meta data has some old data so it does assume the empty value still there- erantdoFrequent Visitor
Hi, what do you mean by process clear?
- khaled_csFrequent VisitorWhen you connect to SQL server management studio analysis services instance , right click and process your data base , you have some options of type of process you want to apply
There you will find process clear
Remember I fixed my data import and made sure no blank values imported
Then I did apply process clear and recalculate
Try it and let me know
- yjiFrequent Visitor
Hi, if I use direct Oracle database connection to get table, my local laptop's PowerBi Desktop use SQL Server Analysis Services (see from Task Manager), local laptop don't have Analysis Service configured at before. I'm wondering where those matadata or table caches are located? Process Clear from where? local pc or remote database server?