Solved

Powerpivot error when trying to refresh

Posted on 2014-02-28
5
175 Views
Last Modified: 2014-10-30
I created a power pivot model that is connected to about 5 separate spread sheets. I am using 64 bit excel and have 8gb of ram. Recently the I have being getting the attached error message whenever I tried to refresh the pivot or add a measure. If I repeat the refresh it does eventually work. I found one blog post that suggested cleaning out the Vertipaq temporary files but could not find them on my computer. I also downloaded and installed the latest version of Powerpivot.

I appreciate any help.


Best regards,

Alex
0
Comment
Question by:jandro33
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 14

Expert Comment

by:Zack Barresse
ID: 39902219
What is the error? (Didn't see an attachment.) What version of Excel are you using? What version of Power Pivot are you using?

You should save refreshing the model for when you need to. Adding a measure can be a pain. I'd recommend shutting off the updates of the PivotTables while you add your measure, then turn it back on, so you're only refreshing one time when you're done. Excel has to open a connection to each of those closed workbooks every time, which can be fairly labor-intensive.

Here are a couple routines where you can toggle the pivots refresh ability...

Public Sub DisableRefreshOnAllPivotCaches(Optional WKB As Workbook)
    Dim PC                      As PivotCache
    If WKB Is Nothing Then
        If ActiveWorkbook Is Nothing Then Exit Function
        Set WKB = ActiveWorkbook
    End If
    For Each PC In WKB.PivotCaches
        PC.EnableRefresh = False
    Next
End Sub

Public Sub EnableRefreshOnAllPivotCaches(Optional WKB As Workbook)
    Dim PC                      As PivotCache
    If WKB Is Nothing Then
        If ActiveWorkbook Is Nothing Then Exit Function
        Set WKB = ActiveWorkbook
    End If
    For Each PC In WKB.PivotCaches
        PC.EnableRefresh = True
    Next
End Sub

Open in new window


HTH

Regards,
Zack Barresse
0
 
LVL 47

Expert Comment

by:Martin Liss
ID: 40412969
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
 
LVL 14

Accepted Solution

by:
Zack Barresse earned 500 total points
ID: 40412189
AFAIK, the answer I gave is the best they're going to get. Besides writing more efficient measures and re-structuring the model.
0

Featured Post

Office 365 Training for IT Pros

Learn how to provision tenants, synchronize on-premise Active Directory, implement Single Sign-On, customize Office deployment, and protect your organization with eDiscovery and DLP policies.  Only from Platform Scholar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A Stored Procedure in Microsoft SQL Server is a powerful feature that it can be used to execute the Data Manipulation Language (DML) or Data Definition Language (DDL). Depending on business requirements, a single Stored Procedure can return differe…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question