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
Hi Experts!
I am inexperiencing a bizarre error. A column name was changed in SQL Server. I am connecting to the table in PQ via the following:
Sql.Database("xx.x.x.xxx", "MyDB", [Query="SELECT * FROM [MyTable];", CreateNavigationProperties=false])
However, PQ is still reading in the original column name, and I have no idea why. I even tried to create a New Data source, and it still reads in the original column name, not the updated column name.
For additional context, the column that changed names was originally being removed from the Data Model in PQ with a Table.SelectColumns command. I don't know exactly when the column name was changed, but it was a while ago and PBI has been re-started countless times. Now, I need the column.
It is like PBI/PQ is stuck on some previous instance of SQL Server. Of course, when I query the table in SSMS, the current column is returned.
So, now, I am wondering is part of the problem due to the fact that I am querying the table directly versus a View? What is best practice?
Any help is greatly appreciated!
Solved! Go to Solution.
Hi,
Thanks for Greg_Deckler 's concern about the problem and i want to offer some more informaiton for user to refer to.
hello @WishAskedSooner , based on your description, you can click the refresh button in power query after changing the column name in data source.
And if you need to recreate the connector, you need to clear the data source permission data source serttings in power bi , then reconnect it.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Thanks for Greg_Deckler 's concern about the problem and i want to offer some more informaiton for user to refer to.
hello @WishAskedSooner , based on your description, you can click the refresh button in power query after changing the column name in data source.
And if you need to recreate the connector, you need to clear the data source permission data source serttings in power bi , then reconnect it.
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@WishAskedSooner How did you change the column name in SQL?
As you guessed, changing a column name in SQL Server is not a trivial exercise. It involves taking down all your keys, dropping the table, and re-creating it from scratch if doing it manually, or using a tool like SSDT. Why do you ask?
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 57 | |
| 38 | |
| 33 | |
| 19 | |
| 16 |
| User | Count |
|---|---|
| 68 | |
| 66 | |
| 41 | |
| 34 | |
| 25 |