Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello!
I'm hoping someone can shed some light on this and help me resolve it.
Environment: PBI service, PPU workspace
Dataflows (simplified):
1) load excel file from sharepoint
2) some transformations using the dataflow 1 as a 'linked table'
3) final dataflow using transformed table from 2 as a 'linked table'
Error comes when trying to refresh 1) (or 2). Apparently the error appears in the last step (as tables are linked refreshing one immediately refreshes the rest of the chain).:
"Error: Data Source Error : DataSource.Error: Microsoft SQL: Cannot resolve collation conflict between "Latin1_General_100_CI_AS_KS_WS_SC" and "Latin1_General_100_BIN2_UTF8" in add operator for DISTINCT operation.. RootActivityId = c3fa9030-a484-4e6d-8878-e44fbed51080.Param1 = DataSource.Error: Microsoft SQL: Cannot resolve collation conflict between "Latin1_General_100_CI_AS_KS_WS_SC" and "Latin1_General_100_BIN2_UTF8" in add operator for DISTINCT operation. Request ID: cb66b944-c606-93bc-4c20-71db297e7a34."
The m code for dataflow 3:
Solved! Go to Solution.
Update for the community:
It ended up having to do with some kind of implicit data type casting before the unpivot step. The data tupes coming in from the linked table look perfrectly fine. But then the unpivot step fails. I simply tried to do a 'detect data type' step before the unpivot!
Solved. Not sure what's going on but linked tables (from other data flows) somehow can give some challenges here and there.
Update for the community:
It ended up having to do with some kind of implicit data type casting before the unpivot step. The data tupes coming in from the linked table look perfrectly fine. But then the unpivot step fails. I simply tried to do a 'detect data type' step before the unpivot!
Solved. Not sure what's going on but linked tables (from other data flows) somehow can give some challenges here and there.
Since this is a SQL error it means that at least some of your Power Query steps are folding. Right click each step, click "View Native Query" and then run that SQL in the data source. That will tell you why the collation conflict happens.
Out of curiosity - why would you have such very different collations in your SQL Server?
Hi lbendlin - it doesn't work like that for me unfortunately. When I right click the steps I don't see that option: there is 'View data source query' and 'View query plan'. The first one is greyed out in every step. The second seems to provide just a visual representation of the query steps.
Edit: to your question on running the sql query? if I could find it, I also wouldn't know how to do that as I think it is something PBI/power query does in the background with the dataflows. Maybe that to some extent uses a sql instance, no idea... I wouldn't know how to run that though...
And I don't understand the question about collation. I just need those steps to get to my final output.
Please note I'm working online with data flows.
As I'm using linked tables guess that's what's causing some query folding (compute engine is set to the standard setting).
You should be able to take the Power Query code from the dataflow and duplicate it in the Power Query editor of the Power BI Desktop. Makes troubleshooting easier.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
22 | |
16 | |
10 | |
8 | |
8 |
User | Count |
---|---|
37 | |
26 | |
16 | |
14 | |
13 |