Importing from PQ to PP not working when many columns in table (Excel 2010 32bits)

olivierhbh

Board Regular
Joined
Jun 22, 2015
Messages
136
Hello All,

I've been facing a new issue for a few days.
It's a bit related to an old problem Ozeroth solved for me back then (http://www.mrexcel.com/forum/power-...y-table-properties-show-fields-not-query.html)

Since then, I never had any problem, fetching data in PQ from SQL Server, setting the connection on default, clearing the SQL statement and importing the table into PP.

I recently started a new project and I've had this message since then:
Failed to retrieve data from "Table". Reason: Exception from HRESULT: 0x80040E57

This happens when importing the tables for the first time, and clicking on preview & filter.

After many attempts to solve the problem, I found out that if I reduce the number of columns, it works.
But the max number changes, sometimes it's 20, sometimes it's less than 10.
It's really out of my understanding...

I feel I'm doing something wrong since I never had this problem before. and my old files still work perfectly.

Any help would be greatly appreciated.

Olivier.
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
What does the task-manager say: Full RAM and CPU?

Table just might be too big. Reason for irregular behaviour (number of column) will probably lie in the fact that PQ always automatically executes other processes in the background as well. It might depend on them how much resources will be left to your "main query".

I'd send a frown to MS to get a confirmation or other explanation.
 
Upvote 0
34 columns and 1 row, same error. So not really heavy... Ok I'll try to get some help from MS.
If any other idea, would be really welcome.
 
Upvote 0
Ok, I partially solved it, from a raw sql query there was a lot of columns with undefined types. When I set a type to each column (which will now be my first action always, that I used to tell people to do it and I didn't) it works perfectly.

However. Once imported in PP, when I edit the PQ table, it always create a new connection in data/connections instead of just updating the one linked to the PQ table.

The reason I guess, is that I set the connection to command type default and command text blank, then it's not recognized.

So if I update a PQ table 5 times, I will have 5 new connections. Any idea on how to solve that?

Thanks,
Olivier.
 
Upvote 0
Solved it all!
If I leave the SQL statement in the command text from connection properties, it just updates it, reverts the command type to SQL but as the powerpivot connexion is Default, it's not a problem.
So all good!
 
Upvote 0

Forum statistics

Threads
1,215,731
Messages
6,126,535
Members
449,316
Latest member
sravya

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top