cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
RobinNeven
Advisor

DataSource.Error - Error code 8632

Hello all,

 

I have a .pbix file using Direct Query to query an Azure SQL Database. Trying to create a date key in my Electricity and Gas Telemetry Data tables I am replacing values (1 to 01, 2 to 02 etc.) in the columns Month and Day (data types text), so as to eventually concatenate these columns and a year column to form a date key.

 

Replacing values works fine until I arrive at replacing 8 with 08, upon which the error as shown in attachment appears. Exactly the same happens for both Gas and Electricity and I can replace 8 with 08 for Month or Day only (instead of both at the same time), but after that I cannot replace any values anymore, almost as if there is some kind of quotum on this.

 

Can anyone help me out with what is happening here and how to solve it? Thank you very much in advance!

 

 

Kind regards,

 

Robin Neven


Power BI Error 8632.JPGError Code 8632

1 ACCEPTED SOLUTION

Accepted Solutions
v-haibl-msft Super Contributor
Super Contributor

Re: DataSource.Error - Error code 8632

@RobinNeven

 

The product team say that this is simply a limitation of the product today. Please try with following two possible workarounds.

 

1) Load the data as-is and use DAX to create a calculated column with the necessary transformation.

2) Create the mapping as a table on the SQL Server and use joins to do the transformation.

 

Best Regards,

Herbert

5 REPLIES 5
Moderator v-qiuyu-msft
Moderator

Re: DataSource.Error - Error code 8632

Hi @RobinNeven,

 

I can reproduce the issue on my side. And already reported internally, will keep you updated once I get any feedback.

 

Best Regards,
Qiuyun Yu

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-haibl-msft Super Contributor
Super Contributor

Re: DataSource.Error - Error code 8632

@RobinNeven

 

This error means that we're generating a query that SQL Server thinks is too complicated. One workaround is to do the steps locally. This can be done by going to the last step that works and then clicking the "fx" in the formula bar. That will insert a new custom step whose value is "= PreviousStepName". Change this to read "= Table.Buffer(PreviousStepName)" and press enter. Subsequent steps will be performed locally instead of on the server and will avoid the server limitation.

 

It would be helpful if you can enable and capture a trace of the error happening inside PBI Desktop. Go to the Diagnostics tab of the Options dialog and enable traces. After reproducing the error, send the files whose names start with "Microsoft.Mashup". (You can upload the file to online file service like OneDrive and share it)

 

If given a copy of your query, we may be able to suggest a different workaround.

 

Best Regards,

Herbert

 

RobinNeven
Advisor

Re: DataSource.Error - Error code 8632

Hello Herbert,

 

I forgot to mention in my original post that this is a Direct Query pbix and unfortunately your given solution does not work for DQ.

 

I am very much open to another workaround and have the 'Microsoft.Mashup' file ready on my OneDrive. What e-mail address can I share it to? I do not full comfortable just posting a link in this forum.

 

Thank you.

 

 

Regards,

Robin

v-haibl-msft Super Contributor
Super Contributor

Re: DataSource.Error - Error code 8632

@RobinNeven

 

Please refer to my PM.

 

Best Regards,

Herbert

v-haibl-msft Super Contributor
Super Contributor

Re: DataSource.Error - Error code 8632

@RobinNeven

 

The product team say that this is simply a limitation of the product today. Please try with following two possible workarounds.

 

1) Load the data as-is and use DAX to create a calculated column with the necessary transformation.

2) Create the mapping as a table on the SQL Server and use joins to do the transformation.

 

Best Regards,

Herbert