[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 182
  • Last Modified:

Powerpivot error when trying to refresh

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
jandro33
Asked:
jandro33
  • 2
1 Solution
 
Zack BarresseCEOCommented:
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
 
Martin LissRetired ProgrammerCommented:
I've requested that this question be deleted for the following reason:

Not enough information to confirm an answer.
0
 
Zack BarresseCEOCommented:
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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now