Solved

Powerpivot error when trying to refresh

Posted on 2014-02-28
5
161 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
  • 2
5 Comments
 
LVL 14

Expert Comment

by:Zack Barresse
Comment Utility
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 45

Expert Comment

by:Martin Liss
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Today companies are subjected to more-and-more data, and it won't stop any time soon.  But there are obvious opportunities for reducing data, particularly data duplicated among companies.
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Viewers will learn how to use the UPDATE and DELETE statements to change or remove existing data from their tables. Make a table: Update a specific column given a specific row using the UPDATE statement: Remove a set of values using the DELETE s…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

744 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now